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

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

Completed in 25 milliseconds