59ff0888b29d4bc58375148d55e02ef2653081c7
[openwrt/staging/dangole.git] /
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
6
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.
9
10 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
11 ---
12 .../vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 7 +++++++
13 1 file changed, 7 insertions(+)
14
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,
20 }, {
21 + .fourcc = V4L2_PIX_FMT_RGBA32,
22 + .depth = 32,
23 + .bytesperline_align = { 32, 32, 32, 32 },
24 + .flags = 0,
25 + .mmal_fmt = MMAL_ENCODING_RGBA,
26 + .size_multiplier_x2 = 2,
27 + }, {
28 /* Bayer formats */
29 /* 8 bit */
30 .fourcc = V4L2_PIX_FMT_SRGGB8,