620ad14248579aa4e2c69e944f50282910bad8d2
[openwrt/staging/mans0n.git] /
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
5 formats
6
7 The firmware ISP component now allows for processing of mono
8 images, so add those formats for use by the simple ISP device.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 .../bcm2835-codec/bcm2835-v4l2-codec.c | 41 +++++++++++++++++++
13 1 file changed, 41 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 @@ -344,6 +344,47 @@ static const struct bcm2835_codec_fmt su
18 .size_multiplier_x2 = 2,
19 .is_bayer = true,
20 }, {
21 + /* Monochrome MIPI formats */
22 + /* 8 bit */
23 + .fourcc = V4L2_PIX_FMT_GREY,
24 + .depth = 8,
25 + .bytesperline_align = 32,
26 + .flags = 0,
27 + .mmal_fmt = MMAL_ENCODING_GREY,
28 + .size_multiplier_x2 = 2,
29 + }, {
30 + /* 10 bit */
31 + .fourcc = V4L2_PIX_FMT_Y10P,
32 + .depth = 10,
33 + .bytesperline_align = 32,
34 + .flags = 0,
35 + .mmal_fmt = MMAL_ENCODING_Y10P,
36 + .size_multiplier_x2 = 2,
37 + }, {
38 + /* 12 bit */
39 + .fourcc = V4L2_PIX_FMT_Y12P,
40 + .depth = 12,
41 + .bytesperline_align = 32,
42 + .flags = 0,
43 + .mmal_fmt = MMAL_ENCODING_Y12P,
44 + .size_multiplier_x2 = 2,
45 + }, {
46 + /* 14 bit */
47 + .fourcc = V4L2_PIX_FMT_Y14P,
48 + .depth = 14,
49 + .bytesperline_align = 32,
50 + .flags = 0,
51 + .mmal_fmt = MMAL_ENCODING_Y14P,
52 + .size_multiplier_x2 = 2,
53 + }, {
54 + /* 16 bit */
55 + .fourcc = V4L2_PIX_FMT_Y16,
56 + .depth = 16,
57 + .bytesperline_align = 32,
58 + .flags = 0,
59 + .mmal_fmt = MMAL_ENCODING_Y16,
60 + .size_multiplier_x2 = 2,
61 + }, {
62 /* Compressed formats */
63 .fourcc = V4L2_PIX_FMT_H264,
64 .depth = 0,