Lines Matching refs:img

69     vpx_image_t             img;
285 static void yuvconfig2image(vpx_image_t *img,
293 img->fmt = VPX_IMG_FMT_I420;
294 img->w = yv12->y_stride;
295 img->h = (yv12->y_height + 2 * VP8BORDERINPIXELS + 15) & ~15;
296 img->d_w = yv12->y_width;
297 img->d_h = yv12->y_height;
298 img->x_chroma_shift = 1;
299 img->y_chroma_shift = 1;
300 img->planes[VPX_PLANE_Y] = yv12->y_buffer;
301 img->planes[VPX_PLANE_U] = yv12->u_buffer;
302 img->planes[VPX_PLANE_V] = yv12->v_buffer;
303 img->planes[VPX_PLANE_ALPHA] = NULL;
304 img->stride[VPX_PLANE_Y] = yv12->y_stride;
305 img->stride[VPX_PLANE_U] = yv12->uv_stride;
306 img->stride[VPX_PLANE_V] = yv12->uv_stride;
307 img->stride[VPX_PLANE_ALPHA] = yv12->y_stride;
308 img->bps = 12;
309 img->user_priv = user_priv;
310 img->img_data = yv12->buffer_alloc;
311 img->img_data_owner = 0;
312 img->self_allocd = 0;
578 vpx_image_t *img = NULL;
613 yuvconfig2image(&ctx->img, &sd, ctx->user_priv);
615 img = &ctx->img;
616 *iter = img;
620 return img;
706 static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img,
710 yv12->y_buffer = img->planes[VPX_PLANE_Y];
711 yv12->u_buffer = img->planes[VPX_PLANE_U];
712 yv12->v_buffer = img->planes[VPX_PLANE_V];
714 yv12->y_crop_width = img->d_w;
715 yv12->y_crop_height = img->d_h;
716 yv12->y_width = img->d_w;
717 yv12->y_height = img->d_h;
721 yv12->y_stride = img->stride[VPX_PLANE_Y];
722 yv12->uv_stride = img->stride[VPX_PLANE_U];
724 yv12->border = (img->stride[VPX_PLANE_Y] - img->d_w) / 2;
741 image2yuvconfig(&frame->img, &sd);
763 image2yuvconfig(&frame->img, &sd);