Lines Matching refs:width
34 int width; member
52 int width, int height, in color_convert_common() argument
66 ctx.width = width; in color_convert_common()
72 for (j = 0; j < width; j++) { in color_convert_common()
73 nB = *(pY + i * width + j); in color_convert_common()
82 for (j = 0; j < width; j++) { in color_convert_common()
83 nY = *(pY + i * width + j); in color_convert_common()
84 nV = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in color_convert_common()
85 nU = *(pUV + (i/2) * width + bytes_per_pixel * (j/2) + 1); in color_convert_common()
126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb()
142 offset = ctx->i * ctx->width + ctx->j; in common_rgb_cb()
148 offset = (ctx->height - 1 - ctx->i) * ctx->width + ctx->j; in common_rgb_cb()
151 offset = (ctx->width - 1 - ctx->j) * ctx->height + ctx->i; in common_rgb_cb()
194 int width, in convert() argument
211 header_size = snprintf(header, sizeof(header), "P6\n%d %d\n255\n", height, width); in convert()
213 header_size = snprintf(header, sizeof(header), "P6\n%d %d\n255\n", width, height); in convert()
226 outsize = header_size + width * height * bpp; in convert()
240 in = mmap(0, width * height * 3 / 2, PROT_READ, MAP_PRIVATE, ifd, 0); in convert()
259 INFO("Converting %dx%d YUV 4:2:0 to RGB24...\n", width, height); in convert()
260 color_convert_common(in, in + width * height, in convert()
261 width, height, in convert()
273 int height, width, gray, rotate; in main() local
281 &width, in main()
295 if (height < 0 || width < 0) { in main()
316 INFO("width: %d\n", width); in main()
333 height, width, gray, in main()