MLK-24477-4:[8QM_MEK/8QXP_MEK]mxc:vpu_malone: report color space by try_fmt
gst will depend on the try_fmt api if driver don't report the correct color space in try_fmt gst may return fail Signed-off-by: Ming Qian <ming.qian@nxp.com> Reviewed-by: Shijie Qin <shijie.qin@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
ca331e5a4a
commit
b287e45d99
|
@ -1745,6 +1745,7 @@ static int v4l2_ioctl_try_fmt(struct file *file,
|
|||
struct v4l2_format *f
|
||||
)
|
||||
{
|
||||
struct vpu_ctx *ctx = v4l2_fh_to_ctx(fh);
|
||||
unsigned int table_size;
|
||||
|
||||
if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
|
||||
|
@ -1758,6 +1759,11 @@ static int v4l2_ioctl_try_fmt(struct file *file,
|
|||
} else
|
||||
return -EINVAL;
|
||||
|
||||
f->fmt.pix_mp.colorspace = ctx->colorspace;
|
||||
f->fmt.pix_mp.xfer_func = ctx->xfer_func;
|
||||
f->fmt.pix_mp.ycbcr_enc = ctx->ycbcr_enc;
|
||||
f->fmt.pix_mp.quantization = ctx->quantization;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue