¡@

Home 

c++ Programming Glossary: cbcrx

Problems converting YV12 to RGB through GLSL

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

CbY ImgHeight y 4 int CrY ImgHeight chromaHeight 2 y 4 int CbCrX x 2 chromaWidth y 2 1 calculate x y of cr and cb pixels in the.. Y Cb anc Cr blocks are next to each other assert memblock CbCrX CbY ImgWidth pCb x 2 y 2 chromaWidth assert memblock CbCrX CrY.. CbCrX CbY ImgWidth pCb x 2 y 2 chromaWidth assert memblock CbCrX CrY ImgWidth pCr x 2 y 2 chromaWidth make sure the addresses..

Image scaling (KeepAspectRatioByExpanding) through OpenGL

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

float CrY ImgHeight chromaHeight_Half floor t.y 4.0 float CbCrX floor t.x 2.0 chromaWidth floor mod t.y 2.0 float Cb texture2DRect.. 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.. tex vec2 CbCrX CbY .x .5 float Cr texture2DRect tex vec2 CbCrX CrY .x .5 float y texture2DRect tex t .x redundant texture read..