Lines Matching refs:width
41 static int YUV_blend_with_pic(int width, int height,
73 if (width != 640 || height != 480) { /* need to scale the pic */
74 pic_y = (unsigned char *)malloc(width * height);
75 pic_u = (unsigned char *)malloc(width * height/4);
76 pic_v = (unsigned char *)malloc(width * height/4);
81 pic_y, width, height);
83 pic_u, width/2, height/2);
85 pic_v, width/2, height/2);
97 unsigned char *q = pic_y + row * width;
98 for (col=0; col<width; col++, q++) {
124 unsigned char *qU = pic_u + row/v_factor_to_nv12 * width/2;
125 unsigned char *qV = pic_v + row/v_factor_to_nv12 * width/2;
127 for (col=0; col<width/2; col++, qU++, qV++) {
146 static int yuvgen_planar(int width, int height,
168 memset(Y_row, 0xff, width);
172 for (jj=0; jj<width; jj++) {
198 memset(U_row, uv_value, width);
201 memset (U_row,uv_value,width/2);
202 memset (V_row,uv_value,width/2);
221 YUV_blend_with_pic(width,height,
276 yuvgen_planar(surface_image.width, surface_image.height,