Lines Matching full:plane

91   int plane = 0;  in read_yuv_frame()  local
95 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame()
97 int w = aom_img_plane_width(yuv_frame, plane); in read_yuv_frame()
98 const int h = aom_img_plane_height(yuv_frame, plane); in read_yuv_frame()
101 if (yuv_frame->fmt == AOM_IMG_FMT_NV12 && plane > 1) break; in read_yuv_frame()
102 if (yuv_frame->fmt == AOM_IMG_FMT_NV12 && plane == 1) w *= 2; in read_yuv_frame()
103 /* Determine the correct plane based on the image format. The for-loop in read_yuv_frame()
107 switch (plane) { in read_yuv_frame()
118 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame()
136 ptr += yuv_frame->stride[plane]; in read_yuv_frame()
247 int plane; in aom_img_write() local
250 for (plane = 0; plane < 3; ++plane) { in aom_img_write()
251 const unsigned char *buf = img->planes[plane]; in aom_img_write()
252 const int stride = img->stride[plane]; in aom_img_write()
253 int w = aom_img_plane_width(img, plane); in aom_img_write()
254 const int h = aom_img_plane_height(img, plane); in aom_img_write()
258 if (img->fmt == AOM_IMG_FMT_NV12 && plane > 1) break; in aom_img_write()
259 if (img->fmt == AOM_IMG_FMT_NV12 && plane == 1) w *= 2; in aom_img_write()
269 int plane; in aom_img_read() local
272 for (plane = 0; plane < 3; ++plane) { in aom_img_read()
273 unsigned char *buf = img->planes[plane]; in aom_img_read()
274 const int stride = img->stride[plane]; in aom_img_read()
275 int w = aom_img_plane_width(img, plane); in aom_img_read()
276 const int h = aom_img_plane_height(img, plane); in aom_img_read()
280 if (img->fmt == AOM_IMG_FMT_NV12 && plane > 1) break; in aom_img_read()
281 if (img->fmt == AOM_IMG_FMT_NV12 && plane == 1) w *= 2; in aom_img_read()
309 int plane; in highbd_img_upshift() local
322 for (plane = 0; plane < 3; plane++) { in highbd_img_upshift()
326 if (plane) { in highbd_img_upshift()
332 (const uint16_t *)(src->planes[plane] + y * src->stride[plane]); in highbd_img_upshift()
334 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in highbd_img_upshift()
344 int plane; in lowbd_img_upshift() local
358 for (plane = 0; plane < 3; plane++) { in lowbd_img_upshift()
362 if (plane) { in lowbd_img_upshift()
367 const uint8_t *p_src = src->planes[plane] + y * src->stride[plane]; in lowbd_img_upshift()
369 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in lowbd_img_upshift()
387 int plane; in aom_img_truncate_16_to_8() local
399 for (plane = 0; plane < 3; plane++) { in aom_img_truncate_16_to_8()
403 if (plane) { in aom_img_truncate_16_to_8()
409 (const uint16_t *)(src->planes[plane] + y * src->stride[plane]); in aom_img_truncate_16_to_8()
410 uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane]; in aom_img_truncate_16_to_8()
420 int plane; in highbd_img_downshift() local
433 for (plane = 0; plane < 3; plane++) { in highbd_img_downshift()
437 if (plane) { in highbd_img_downshift()
443 (const uint16_t *)(src->planes[plane] + y * src->stride[plane]); in highbd_img_downshift()
445 (uint16_t *)(dst->planes[plane] + y * dst->stride[plane]); in highbd_img_downshift()
453 int plane; in lowbd_img_downshift() local
466 for (plane = 0; plane < 3; plane++) { in lowbd_img_downshift()
470 if (plane) { in lowbd_img_downshift()
476 (const uint16_t *)(src->planes[plane] + y * src->stride[plane]); in lowbd_img_downshift()
477 uint8_t *p_dst = dst->planes[plane] + y * dst->stride[plane]; in lowbd_img_downshift()
541 // Related to I420, NV12 format has one luma "luminance" plane Y and one plane
544 // Y plane in aom_img_write_nv12()
557 // Interleaved U and V plane in aom_img_write_nv12()