Home
last modified time | relevance | path

Searched refs:yuvTexHeight (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp79 const int yuvTexHeight = 480; variable
85 const int yuvTexOffsetV = yuvTexStrideY * yuvTexHeight;
87 const int yuvTexOffsetU = yuvTexOffsetV + yuvTexStrideV * yuvTexHeight/2;
95 int blockHeight = yuvTexHeight > 16 ? yuvTexHeight / 16 : 1; in setupYuvTexSurface()
96 yuvTexBuffer = new GraphicBuffer(yuvTexWidth, yuvTexHeight, yuvTexFormat, in setupYuvTexSurface()
105 for (int y = 0; y < yuvTexHeight; y++) { in setupYuvTexSurface()
110 if (x < yuvTexWidth / 2 && y < yuvTexHeight / 2) { in setupYuvTexSurface()
114 } else if (x < yuvTexWidth / 4 && y < yuvTexHeight / 4) { in setupYuvTexSurface()
151 GLint crop[4] = { 0, 0, yuvTexWidth, yuvTexHeight }; in setupYuvTexSurface()
/frameworks/native/opengl/tests/gl2_yuvtex/
Dgl2_yuvtex.cpp184 const int yuvTexHeight = 480; variable
195 int blockHeight = yuvTexHeight > 16 ? yuvTexHeight / 16 : 1; in setupYuvTexSurface()
196 yuvTexBuffer = new GraphicBuffer(yuvTexWidth, yuvTexHeight, yuvTexFormat, in setupYuvTexSurface()
199 int yuvTexOffsetV = yuvTexStrideY * yuvTexHeight; in setupYuvTexSurface()
201 int yuvTexOffsetU = yuvTexOffsetV + yuvTexStrideV * yuvTexHeight/2; in setupYuvTexSurface()
210 for (int y = 0; y < yuvTexHeight; y++) { in setupYuvTexSurface()
215 if (x < yuvTexWidth / 2 && y < yuvTexHeight / 2) { in setupYuvTexSurface()
219 } else if (x < yuvTexWidth / 4 && y < yuvTexHeight / 4) { in setupYuvTexSurface()