1 From 64bab887e1861c3db19a37cfab41a45e296e2cc1 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Mon, 7 Mar 2022 10:00:33 +0000
4 Subject: [PATCH] staging: vc04_services: codec: Add support for
5 V4L2_PIX_FMT_RGBA32 format
7 We already support V4L2_PIX_FMT_BGR32 which is the same thing with red
8 and blue swapped, so it makes sense to include this variant as well.
10 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
12 .../vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 7 +++++++
13 1 file changed, 7 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 @@ -241,6 +241,13 @@ static const struct bcm2835_codec_fmt su
18 .mmal_fmt = MMAL_ENCODING_BGRA,
19 .size_multiplier_x2 = 2,
21 + .fourcc = V4L2_PIX_FMT_RGBA32,
23 + .bytesperline_align = { 32, 32, 32, 32 },
25 + .mmal_fmt = MMAL_ENCODING_RGBA,
26 + .size_multiplier_x2 = 2,
30 .fourcc = V4L2_PIX_FMT_SRGGB8,