1 From 6e6861281012b9ac99b85b9e2703cad35d91c279 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 1 Jul 2020 10:38:12 +0100
4 Subject: [PATCH] staging: vc04_services: codec: Add support for mono
7 The firmware ISP component now allows for processing of mono
8 images, so add those formats for use by the simple ISP device.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 .../bcm2835-codec/bcm2835-v4l2-codec.c | 41 +++++++++++++++++++
13 1 file changed, 41 insertions(+)
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -344,6 +344,47 @@ static const struct bcm2835_codec_fmt su
18 .size_multiplier_x2 = 2,
21 + /* Monochrome MIPI formats */
23 + .fourcc = V4L2_PIX_FMT_GREY,
25 + .bytesperline_align = 32,
27 + .mmal_fmt = MMAL_ENCODING_GREY,
28 + .size_multiplier_x2 = 2,
31 + .fourcc = V4L2_PIX_FMT_Y10P,
33 + .bytesperline_align = 32,
35 + .mmal_fmt = MMAL_ENCODING_Y10P,
36 + .size_multiplier_x2 = 2,
39 + .fourcc = V4L2_PIX_FMT_Y12P,
41 + .bytesperline_align = 32,
43 + .mmal_fmt = MMAL_ENCODING_Y12P,
44 + .size_multiplier_x2 = 2,
47 + .fourcc = V4L2_PIX_FMT_Y14P,
49 + .bytesperline_align = 32,
51 + .mmal_fmt = MMAL_ENCODING_Y14P,
52 + .size_multiplier_x2 = 2,
55 + .fourcc = V4L2_PIX_FMT_Y16,
57 + .bytesperline_align = 32,
59 + .mmal_fmt = MMAL_ENCODING_Y16,
60 + .size_multiplier_x2 = 2,
62 /* Compressed formats */
63 .fourcc = V4L2_PIX_FMT_H264,