]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] exynos-gsc: Add support for NV{16,21,61}M pixel formats
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 1 Feb 2017 20:05:22 +0000 (18:05 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Mar 2017 11:02:14 +0000 (08:02 -0300)
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>
drivers/media/platform/exynos-gsc/gsc-core.c

index 0f0c389f889713ad024eda400ea1f70799710dae..59a6342018307170a3d5143e9ee061c08c688589 100644 (file)
@@ -111,6 +111,15 @@ static const struct gsc_fmt gsc_formats[] = {
                .corder         = GSC_CBCR,
                .num_planes     = 1,
                .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",
                .pixelformat    = V4L2_PIX_FMT_NV61,
@@ -120,6 +129,15 @@ static const struct gsc_fmt gsc_formats[] = {
                .corder         = GSC_CRCB,
                .num_planes     = 1,
                .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",
                .pixelformat    = V4L2_PIX_FMT_YUV420,
@@ -157,6 +175,15 @@ static const struct gsc_fmt gsc_formats[] = {
                .corder         = GSC_CRCB,
                .num_planes     = 1,
                .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",
                .pixelformat    = V4L2_PIX_FMT_NV12M,