ixp4xx: remove linux 3.10 support
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0190-V4L2-Add-support-for-more-image-formats.patch
1 From 2999c8b8c0b45cf22121f57d8efe4c55d4065898 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dsteve@broadcom.com>
3 Date: Fri, 4 Apr 2014 16:57:45 +0100
4 Subject: [PATCH 190/196] V4L2: Add support for more image formats
5
6 Adds YVU420 (YV12), YVU420SP (NV21), and BGR888.
7
8 Signed-off-by: Dave Stevenson <dsteve@broadcom.com>
9 ---
10  drivers/media/platform/bcm2835/bcm2835-camera.c | 24 ++++++++++++++++++++++++
11  1 file changed, 24 insertions(+)
12
13 diff --git a/drivers/media/platform/bcm2835/bcm2835-camera.c b/drivers/media/platform/bcm2835/bcm2835-camera.c
14 index b1eac21..fd8e2e2 100644
15 --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
17 @@ -150,6 +150,30 @@ static struct mmal_fmt formats[] = {
18          .depth = 12,
19          .mmal_component = MMAL_COMPONENT_CAMERA,
20          },
21 +       {
22 +        .name = "RGB24 (BE)",
23 +        .fourcc = V4L2_PIX_FMT_BGR24,
24 +        .flags = 0,
25 +        .mmal = MMAL_ENCODING_RGB24,
26 +        .depth = 24,
27 +        .mmal_component = MMAL_COMPONENT_CAMERA,
28 +        },
29 +       {
30 +        .name = "4:2:0, packed YVU",
31 +        .fourcc = V4L2_PIX_FMT_YVU420,
32 +        .flags = 0,
33 +        .mmal = MMAL_ENCODING_YV12,
34 +        .depth = 12,
35 +        .mmal_component = MMAL_COMPONENT_CAMERA,
36 +        },
37 +       {
38 +        .name = "4:2:0, packed, NV21",
39 +        .fourcc = V4L2_PIX_FMT_NV21,
40 +        .flags = 0,
41 +        .mmal = MMAL_ENCODING_NV21,
42 +        .depth = 12,
43 +        .mmal_component = MMAL_COMPONENT_CAMERA,
44 +        },
45  };
46  
47  static struct mmal_fmt *get_format(struct v4l2_format *f)
48 -- 
49 1.9.1
50