e261f6257004849f2c761176f1b75f991ac07cb5
[openwrt/openwrt.git] /
1 From 34963c9fb717bc47131b662c34a472c4f717f7fe Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 1 Jul 2020 10:50:12 +0100
4 Subject: [PATCH] staging: vc04_services: codec: Add support for
5 14bit Bayer formats
6
7 Now that the 14bit Bayer formats have been defined within
8 V4L2, add them to the lookup table of V4L2/MMAL formats.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 .../bcm2835-codec/bcm2835-v4l2-codec.c | 34 +++++++++++++++++++
13 1 file changed, 34 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 @@ -311,6 +311,40 @@ static const struct bcm2835_codec_fmt su
18 .size_multiplier_x2 = 2,
19 .is_bayer = true,
20 }, {
21 + /* 14 bit */
22 + .fourcc = V4L2_PIX_FMT_SRGGB14P,
23 + .depth = 14,
24 + .bytesperline_align = 32,
25 + .flags = 0,
26 + .mmal_fmt = MMAL_ENCODING_BAYER_SRGGB14P,
27 + .size_multiplier_x2 = 2,
28 + .is_bayer = true,
29 + }, {
30 + .fourcc = V4L2_PIX_FMT_SBGGR14P,
31 + .depth = 14,
32 + .bytesperline_align = 32,
33 + .flags = 0,
34 + .mmal_fmt = MMAL_ENCODING_BAYER_SBGGR14P,
35 + .size_multiplier_x2 = 2,
36 + .is_bayer = true,
37 +
38 + }, {
39 + .fourcc = V4L2_PIX_FMT_SGRBG14P,
40 + .depth = 14,
41 + .bytesperline_align = 32,
42 + .flags = 0,
43 + .mmal_fmt = MMAL_ENCODING_BAYER_SGRBG14P,
44 + .size_multiplier_x2 = 2,
45 + .is_bayer = true,
46 + }, {
47 + .fourcc = V4L2_PIX_FMT_SGBRG14P,
48 + .depth = 14,
49 + .bytesperline_align = 32,
50 + .flags = 0,
51 + .mmal_fmt = MMAL_ENCODING_BAYER_SGBRG14P,
52 + .size_multiplier_x2 = 2,
53 + .is_bayer = true,
54 + }, {
55 /* 16 bit */
56 .fourcc = V4L2_PIX_FMT_SRGGB16,
57 .depth = 16,