Lines Matching refs:pix_fmt
176 static void rotate_prepare_format(struct v4l2_pix_format *pix_fmt) in rotate_prepare_format() argument
182 fmt = rotate_find_format(pix_fmt->pixelformat); in rotate_prepare_format()
186 width = ALIGN(pix_fmt->width, fmt->hsub); in rotate_prepare_format()
187 height = ALIGN(pix_fmt->height, fmt->vsub); in rotate_prepare_format()
206 pix_fmt->width = width; in rotate_prepare_format()
207 pix_fmt->height = height; in rotate_prepare_format()
208 pix_fmt->bytesperline = bpl; in rotate_prepare_format()
209 pix_fmt->sizeimage = sizeimage; in rotate_prepare_format()
429 struct v4l2_pix_format *pix_fmt; in rotate_queue_setup() local
432 pix_fmt = &ctx->src_fmt; in rotate_queue_setup()
434 pix_fmt = &ctx->dst_fmt; in rotate_queue_setup()
437 if (sizes[0] < pix_fmt->sizeimage) in rotate_queue_setup()
440 sizes[0] = pix_fmt->sizeimage; in rotate_queue_setup()
451 struct v4l2_pix_format *pix_fmt; in rotate_buf_prepare() local
454 pix_fmt = &ctx->src_fmt; in rotate_buf_prepare()
456 pix_fmt = &ctx->dst_fmt; in rotate_buf_prepare()
458 if (vb2_plane_size(vb, 0) < pix_fmt->sizeimage) in rotate_buf_prepare()
461 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in rotate_buf_prepare()