[media] exynos-gsc: Add support for NV{16,21,61}M pixel formats

Those are useful formats that should be handled.

Signed-off-by: Thibault Saunier <thibault.saunier@osg.samsung.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Thibault Saunier 2017-02-01 18:05:22 -02:00 committed by Mauro Carvalho Chehab
parent d7f3e33df4
commit 1abfa3b352

View File

@ -111,6 +111,15 @@ static const struct gsc_fmt gsc_formats[] = {
.corder = GSC_CBCR, .corder = GSC_CBCR,
.num_planes = 1, .num_planes = 1,
.num_comp = 2, .num_comp = 2,
}, {
.name = "YUV 4:2:2 non-contig, Y/CbCr",
.pixelformat = V4L2_PIX_FMT_NV16M,
.depth = { 8, 8 },
.color = GSC_YUV422,
.yorder = GSC_LSB_Y,
.corder = GSC_CBCR,
.num_planes = 2,
.num_comp = 2,
}, { }, {
.name = "YUV 4:2:2 planar, Y/CrCb", .name = "YUV 4:2:2 planar, Y/CrCb",
.pixelformat = V4L2_PIX_FMT_NV61, .pixelformat = V4L2_PIX_FMT_NV61,
@ -120,6 +129,15 @@ static const struct gsc_fmt gsc_formats[] = {
.corder = GSC_CRCB, .corder = GSC_CRCB,
.num_planes = 1, .num_planes = 1,
.num_comp = 2, .num_comp = 2,
}, {
.name = "YUV 4:2:2 non-contig, Y/CrCb",
.pixelformat = V4L2_PIX_FMT_NV61M,
.depth = { 8, 8 },
.color = GSC_YUV422,
.yorder = GSC_LSB_Y,
.corder = GSC_CRCB,
.num_planes = 2,
.num_comp = 2,
}, { }, {
.name = "YUV 4:2:0 planar, YCbCr", .name = "YUV 4:2:0 planar, YCbCr",
.pixelformat = V4L2_PIX_FMT_YUV420, .pixelformat = V4L2_PIX_FMT_YUV420,
@ -157,6 +175,15 @@ static const struct gsc_fmt gsc_formats[] = {
.corder = GSC_CRCB, .corder = GSC_CRCB,
.num_planes = 1, .num_planes = 1,
.num_comp = 2, .num_comp = 2,
}, {
.name = "YUV 4:2:0 non-contig. 2p, Y/CrCb",
.pixelformat = V4L2_PIX_FMT_NV21M,
.depth = { 8, 4 },
.color = GSC_YUV420,
.yorder = GSC_LSB_Y,
.corder = GSC_CRCB,
.num_planes = 2,
.num_comp = 2,
}, { }, {
.name = "YUV 4:2:0 non-contig. 2p, Y/CbCr", .name = "YUV 4:2:0 non-contig. 2p, Y/CbCr",
.pixelformat = V4L2_PIX_FMT_NV12M, .pixelformat = V4L2_PIX_FMT_NV12M,