Lines Matching refs:plane
84 int plane = 0;
87 for (plane = 0; plane < 3; ++plane) {
89 const int w = (plane ? (1 + yuv_frame->d_w) / 2 : yuv_frame->d_w);
90 const int h = (plane ? (1 + yuv_frame->d_h) / 2 : yuv_frame->d_h);
93 /* Determine the correct plane based on the image format. The for-loop
97 switch (plane) {
107 ptr = yuv_frame->planes[plane];
125 ptr += yuv_frame->stride[plane];
206 int vpx_img_plane_width(const vpx_image_t *img, int plane) {
207 if (plane > 0 && img->x_chroma_shift > 0)
213 int vpx_img_plane_height(const vpx_image_t *img, int plane) {
214 if (plane > 0 && img->y_chroma_shift > 0)
221 int plane;
223 for (plane = 0; plane < 3; ++plane) {
224 const unsigned char *buf = img->planes[plane];
225 const int stride = img->stride[plane];
226 const int w = vpx_img_plane_width(img, plane);
227 const int h = vpx_img_plane_height(img, plane);
238 int plane;
240 for (plane = 0; plane < 3; ++plane) {
241 unsigned char *buf = img->planes[plane];
242 const int stride = img->stride[plane];
243 const int w = vpx_img_plane_width(img, plane);
244 const int h = vpx_img_plane_height(img, plane);