[media] v4l2-ioctl.c: log the new ycbcr_enc and quantization fields
Log the new ycbcr_enc and quantization fields. Note that it now also logs the flags field for the multiplanar buffer type. This was forgotten when the flags field was added. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
11ff030c73
commit
736d96b597
|
@ -257,7 +257,7 @@ static void v4l_print_format(const void *arg, bool write_only)
|
||||||
pr_cont(", width=%u, height=%u, "
|
pr_cont(", width=%u, height=%u, "
|
||||||
"pixelformat=%c%c%c%c, field=%s, "
|
"pixelformat=%c%c%c%c, field=%s, "
|
||||||
"bytesperline=%u, sizeimage=%u, colorspace=%d, "
|
"bytesperline=%u, sizeimage=%u, colorspace=%d, "
|
||||||
"flags %u\n",
|
"flags %x, ycbcr_enc=%u, quantization=%u\n",
|
||||||
pix->width, pix->height,
|
pix->width, pix->height,
|
||||||
(pix->pixelformat & 0xff),
|
(pix->pixelformat & 0xff),
|
||||||
(pix->pixelformat >> 8) & 0xff,
|
(pix->pixelformat >> 8) & 0xff,
|
||||||
|
@ -265,21 +265,24 @@ static void v4l_print_format(const void *arg, bool write_only)
|
||||||
(pix->pixelformat >> 24) & 0xff,
|
(pix->pixelformat >> 24) & 0xff,
|
||||||
prt_names(pix->field, v4l2_field_names),
|
prt_names(pix->field, v4l2_field_names),
|
||||||
pix->bytesperline, pix->sizeimage,
|
pix->bytesperline, pix->sizeimage,
|
||||||
pix->colorspace, pix->flags);
|
pix->colorspace, pix->flags, pix->ycbcr_enc,
|
||||||
|
pix->quantization);
|
||||||
break;
|
break;
|
||||||
case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
|
case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
|
||||||
case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE:
|
case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE:
|
||||||
mp = &p->fmt.pix_mp;
|
mp = &p->fmt.pix_mp;
|
||||||
pr_cont(", width=%u, height=%u, "
|
pr_cont(", width=%u, height=%u, "
|
||||||
"format=%c%c%c%c, field=%s, "
|
"format=%c%c%c%c, field=%s, "
|
||||||
"colorspace=%d, num_planes=%u\n",
|
"colorspace=%d, num_planes=%u, flags=%x, "
|
||||||
|
"ycbcr_enc=%u, quantization=%u\n",
|
||||||
mp->width, mp->height,
|
mp->width, mp->height,
|
||||||
(mp->pixelformat & 0xff),
|
(mp->pixelformat & 0xff),
|
||||||
(mp->pixelformat >> 8) & 0xff,
|
(mp->pixelformat >> 8) & 0xff,
|
||||||
(mp->pixelformat >> 16) & 0xff,
|
(mp->pixelformat >> 16) & 0xff,
|
||||||
(mp->pixelformat >> 24) & 0xff,
|
(mp->pixelformat >> 24) & 0xff,
|
||||||
prt_names(mp->field, v4l2_field_names),
|
prt_names(mp->field, v4l2_field_names),
|
||||||
mp->colorspace, mp->num_planes);
|
mp->colorspace, mp->num_planes, mp->flags,
|
||||||
|
mp->ycbcr_enc, mp->quantization);
|
||||||
for (i = 0; i < mp->num_planes; i++)
|
for (i = 0; i < mp->num_planes; i++)
|
||||||
printk(KERN_DEBUG "plane %u: bytesperline=%u sizeimage=%u\n", i,
|
printk(KERN_DEBUG "plane %u: bytesperline=%u sizeimage=%u\n", i,
|
||||||
mp->plane_fmt[i].bytesperline,
|
mp->plane_fmt[i].bytesperline,
|
||||||
|
|
Loading…
Reference in New Issue