¡@

Home 

c++ Programming Glossary: cby

Problems converting YV12 to RGB through GLSL

http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl

for int y 0 y ImgHeight y for int x 0 x ImgWidth x int CbY ImgHeight y 4 int CrY ImgHeight chromaHeight 2 y 4 int CbCrX.. anc Cr blocks are next to each other assert memblock CbCrX CbY ImgWidth pCb x 2 y 2 chromaWidth assert memblock CbCrX CrY ImgWidth.. are correct and they are GLubyte cb memblock CbCrX CbY ImgWidth GLubyte cr memblock CbCrX CrY ImgWidth GLubyte Y memblock..

Image scaling (KeepAspectRatioByExpanding) through OpenGL

http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl

0 .xy get texcoord from fixed function pipeline float CbY ImgHeight floor t.y 4.0 float CrY ImgHeight chromaHeight_Half.. floor mod t.y 2.0 float Cb texture2DRect tex vec2 CbCrX CbY .x .5 float Cr texture2DRect tex vec2 CbCrX CrY .x .5 float..