Lines Matching defs:plane
256 static int v4l2_buf_to_bufref(V4L2Buffer *in, int plane, AVBufferRef **buf)
260 if (plane >= in->num_planes)
264 *buf = av_buffer_create((char *)in->plane_info[plane].mm_addr + in->planes[plane].data_offset,
265 in->plane_info[plane].length, v4l2_free_buffer, in, 0);
276 static int v4l2_bufref_to_buf(V4L2Buffer *out, int plane, const uint8_t* data, int size, int offset)
280 if (plane >= out->num_planes)
283 length = out->plane_info[plane].length;
286 memcpy((uint8_t*)out->plane_info[plane].mm_addr+offset, data, FFMIN(size, length-offset));
289 out->planes[plane].bytesused = bytesused;
290 out->planes[plane].length = length;
380 planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1);