Lines Matching full:img
236 static int read_frame(FILE *f, vpx_image_t *img, unsigned int file_type,
243 if (y4m_input_fetch_frame(y4m, f, img) < 0)
262 int w = (plane ? (1 + img->d_w) / 2 : img->d_w);
263 int h = (plane ? (1 + img->d_h) / 2 : img->d_h);
273 ptr = img->planes[img->fmt==VPX_IMG_FMT_YV12? VPX_PLANE_V : VPX_PLANE_U];
276 ptr = img->planes[img->fmt==VPX_IMG_FMT_YV12?VPX_PLANE_U : VPX_PLANE_V];
279 ptr = img->planes[plane];
293 ptr += img->stride[plane];