staging: vc04_services: codec: Add support for 14bit Bayer formats
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 1 Jul 2020 09:50:12 +0000 (10:50 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 2 Jul 2020 14:35:32 +0000 (15:35 +0100)
Now that the 14bit Bayer formats have been defined within
V4L2, add them to the lookup table of V4L2/MMAL formats.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

index b9415f3..3fe8197 100644 (file)
@@ -311,6 +311,40 @@ static const struct bcm2835_codec_fmt supported_formats[] = {
                .size_multiplier_x2     = 2,
                .is_bayer               = true,
        }, {
+               /* 14 bit */
+               .fourcc                 = V4L2_PIX_FMT_SRGGB14P,
+               .depth                  = 14,
+               .bytesperline_align     = 32,
+               .flags                  = 0,
+               .mmal_fmt               = MMAL_ENCODING_BAYER_SRGGB14P,
+               .size_multiplier_x2     = 2,
+               .is_bayer               = true,
+       }, {
+               .fourcc                 = V4L2_PIX_FMT_SBGGR14P,
+               .depth                  = 14,
+               .bytesperline_align     = 32,
+               .flags                  = 0,
+               .mmal_fmt               = MMAL_ENCODING_BAYER_SBGGR14P,
+               .size_multiplier_x2     = 2,
+               .is_bayer               = true,
+
+       }, {
+               .fourcc                 = V4L2_PIX_FMT_SGRBG14P,
+               .depth                  = 14,
+               .bytesperline_align     = 32,
+               .flags                  = 0,
+               .mmal_fmt               = MMAL_ENCODING_BAYER_SGRBG14P,
+               .size_multiplier_x2     = 2,
+               .is_bayer               = true,
+       }, {
+               .fourcc                 = V4L2_PIX_FMT_SGBRG14P,
+               .depth                  = 14,
+               .bytesperline_align     = 32,
+               .flags                  = 0,
+               .mmal_fmt               = MMAL_ENCODING_BAYER_SGBRG14P,
+               .size_multiplier_x2     = 2,
+               .is_bayer               = true,
+       }, {
                /* 16 bit */
                .fourcc                 = V4L2_PIX_FMT_SRGGB16,
                .depth                  = 16,