Lines Matching full:plane
84 int plane = 0; in read_yuv_frame() local
88 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame()
90 int w = vpx_img_plane_width(yuv_frame, plane); in read_yuv_frame()
91 const int h = vpx_img_plane_height(yuv_frame, plane); in read_yuv_frame()
94 if (yuv_frame->fmt == VPX_IMG_FMT_NV12 && plane > 1) break; in read_yuv_frame()
96 if (yuv_frame->fmt == VPX_IMG_FMT_NV12 && plane == 1) w = (w + 1) & ~1; in read_yuv_frame()
97 /* Determine the correct plane based on the image format. The for-loop in read_yuv_frame()
101 switch (plane) { in read_yuv_frame()
112 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame()
130 ptr += yuv_frame->stride[plane]; in read_yuv_frame()
210 int vpx_img_plane_width(const vpx_image_t *img, int plane) { in vpx_img_plane_width() argument
211 if (plane > 0 && img->x_chroma_shift > 0) in vpx_img_plane_width()
217 int vpx_img_plane_height(const vpx_image_t *img, int plane) { in vpx_img_plane_height() argument
218 if (plane > 0 && img->y_chroma_shift > 0) in vpx_img_plane_height()
225 int plane; in vpx_img_write() local
228 for (plane = 0; plane < 3; ++plane) { in vpx_img_write()
229 const unsigned char *buf = img->planes[plane]; in vpx_img_write()
230 const int stride = img->stride[plane]; in vpx_img_write()
231 int w = vpx_img_plane_width(img, plane); in vpx_img_write()
232 const int h = vpx_img_plane_height(img, plane); in vpx_img_write()
236 if (img->fmt == VPX_IMG_FMT_NV12 && plane > 1) break; in vpx_img_write()
238 if (img->fmt == VPX_IMG_FMT_NV12 && plane == 1) w = (w + 1) & ~1; in vpx_img_write()
248 int plane; in vpx_img_read() local
251 for (plane = 0; plane < 3; ++plane) { in vpx_img_read()
252 unsigned char *buf = img->planes[plane]; in vpx_img_read()
253 const int stride = img->stride[plane]; in vpx_img_read()
254 int w = vpx_img_plane_width(img, plane); in vpx_img_read()
255 const int h = vpx_img_plane_height(img, plane); in vpx_img_read()
259 if (img->fmt == VPX_IMG_FMT_NV12 && plane > 1) break; in vpx_img_read()
261 if (img->fmt == VPX_IMG_FMT_NV12 && plane == 1) w = (w + 1) & ~1; in vpx_img_read()
372 int plane; in highbd_img_upshift() local
386 for (plane = 0; plane < 3; plane++) { in highbd_img_upshift()
390 if (plane) { in highbd_img_upshift()
396 (uint16_t *)(src->planes[plane] + y * src->stride[plane]); in highbd_img_upshift()
398 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in highbd_img_upshift()
408 int plane; in lowbd_img_upshift() local
422 for (plane = 0; plane < 3; plane++) { in lowbd_img_upshift()
426 if (plane) { in lowbd_img_upshift()
431 uint8_t *p_src = src->planes[plane] + y * src->stride[plane]; in lowbd_img_upshift()
433 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in lowbd_img_upshift()
450 int plane; in vpx_img_truncate_16_to_8() local
463 for (plane = 0; plane < 3; plane++) { in vpx_img_truncate_16_to_8()
467 if (plane) { in vpx_img_truncate_16_to_8()
473 (uint16_t *)(src->planes[plane] + y * src->stride[plane]); in vpx_img_truncate_16_to_8()
474 uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane]; in vpx_img_truncate_16_to_8()
484 int plane; in highbd_img_downshift() local
498 for (plane = 0; plane < 3; plane++) { in highbd_img_downshift()
502 if (plane) { in highbd_img_downshift()
508 (uint16_t *)(src->planes[plane] + y * src->stride[plane]); in highbd_img_downshift()
510 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in highbd_img_downshift()
518 int plane; in lowbd_img_downshift() local
532 for (plane = 0; plane < 3; plane++) { in lowbd_img_downshift()
536 if (plane) { in lowbd_img_downshift()
542 (uint16_t *)(src->planes[plane] + y * src->stride[plane]); in lowbd_img_downshift()
543 uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane]; in lowbd_img_downshift()