media: v4l2-ioctl.c: Unify YCbCr/YUV terms in format descriptions
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sat, 15 Oct 2022 09:11:05 +0000 (11:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:04 +0000 (13:32 +0100)
[ Upstream commit 6a394d563dffb60c150d87dc6678994ef8028c53 ]

Format descriptions use YCbCr and YUV terms interchangeably. Let's unify
them so they all use YUV. While YCbCr is actually correct term here, YUV
is shorter and thus it also fixes too long description of P010 tiled
format.

Fixes: 3c8e19d3d3f9 ("media: Add P010 tiled format")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c

index fddba75..6876ec2 100644 (file)
@@ -1347,23 +1347,23 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
        case V4L2_PIX_FMT_YUV420:       descr = "Planar YUV 4:2:0"; break;
        case V4L2_PIX_FMT_HI240:        descr = "8-bit Dithered RGB (BTTV)"; break;
        case V4L2_PIX_FMT_M420:         descr = "YUV 4:2:0 (M420)"; break;
-       case V4L2_PIX_FMT_NV12:         descr = "Y/CbCr 4:2:0"; break;
-       case V4L2_PIX_FMT_NV21:         descr = "Y/CrCb 4:2:0"; break;
-       case V4L2_PIX_FMT_NV16:         descr = "Y/CbCr 4:2:2"; break;
-       case V4L2_PIX_FMT_NV61:         descr = "Y/CrCb 4:2:2"; break;
-       case V4L2_PIX_FMT_NV24:         descr = "Y/CbCr 4:4:4"; break;
-       case V4L2_PIX_FMT_NV42:         descr = "Y/CrCb 4:4:4"; break;
-       case V4L2_PIX_FMT_P010:         descr = "10-bit Y/CbCr 4:2:0"; break;
-       case V4L2_PIX_FMT_NV12_4L4:     descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break;
-       case V4L2_PIX_FMT_NV12_16L16:   descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break;
-       case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;
-       case V4L2_PIX_FMT_P010_4L4:     descr = "10-bit Y/CbCr 4:2:0 (4x4 Linear)"; break;
-       case V4L2_PIX_FMT_NV12M:        descr = "Y/CbCr 4:2:0 (N-C)"; break;
-       case V4L2_PIX_FMT_NV21M:        descr = "Y/CrCb 4:2:0 (N-C)"; break;
-       case V4L2_PIX_FMT_NV16M:        descr = "Y/CbCr 4:2:2 (N-C)"; break;
-       case V4L2_PIX_FMT_NV61M:        descr = "Y/CrCb 4:2:2 (N-C)"; break;
-       case V4L2_PIX_FMT_NV12MT:       descr = "Y/CbCr 4:2:0 (64x32 MB, N-C)"; break;
-       case V4L2_PIX_FMT_NV12MT_16X16: descr = "Y/CbCr 4:2:0 (16x16 MB, N-C)"; break;
+       case V4L2_PIX_FMT_NV12:         descr = "Y/UV 4:2:0"; break;
+       case V4L2_PIX_FMT_NV21:         descr = "Y/VU 4:2:0"; break;
+       case V4L2_PIX_FMT_NV16:         descr = "Y/UV 4:2:2"; break;
+       case V4L2_PIX_FMT_NV61:         descr = "Y/VU 4:2:2"; break;
+       case V4L2_PIX_FMT_NV24:         descr = "Y/UV 4:4:4"; break;
+       case V4L2_PIX_FMT_NV42:         descr = "Y/VU 4:4:4"; break;
+       case V4L2_PIX_FMT_P010:         descr = "10-bit Y/UV 4:2:0"; break;
+       case V4L2_PIX_FMT_NV12_4L4:     descr = "Y/UV 4:2:0 (4x4 Linear)"; break;
+       case V4L2_PIX_FMT_NV12_16L16:   descr = "Y/UV 4:2:0 (16x16 Linear)"; break;
+       case V4L2_PIX_FMT_NV12_32L32:   descr = "Y/UV 4:2:0 (32x32 Linear)"; break;
+       case V4L2_PIX_FMT_P010_4L4:     descr = "10-bit Y/UV 4:2:0 (4x4 Linear)"; break;
+       case V4L2_PIX_FMT_NV12M:        descr = "Y/UV 4:2:0 (N-C)"; break;
+       case V4L2_PIX_FMT_NV21M:        descr = "Y/VU 4:2:0 (N-C)"; break;
+       case V4L2_PIX_FMT_NV16M:        descr = "Y/UV 4:2:2 (N-C)"; break;
+       case V4L2_PIX_FMT_NV61M:        descr = "Y/VU 4:2:2 (N-C)"; break;
+       case V4L2_PIX_FMT_NV12MT:       descr = "Y/UV 4:2:0 (64x32 MB, N-C)"; break;
+       case V4L2_PIX_FMT_NV12MT_16X16: descr = "Y/UV 4:2:0 (16x16 MB, N-C)"; break;
        case V4L2_PIX_FMT_YUV420M:      descr = "Planar YUV 4:2:0 (N-C)"; break;
        case V4L2_PIX_FMT_YVU420M:      descr = "Planar YVU 4:2:0 (N-C)"; break;
        case V4L2_PIX_FMT_YUV422M:      descr = "Planar YUV 4:2:2 (N-C)"; break;