4d74cd62ca06e7efe4665f573df71d0664946c10
[openwrt/staging/neocturne.git] /
1 From c1c9a3f124f3273fc076651f3f89d1746d5bee77 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 5 Aug 2021 15:11:23 +0100
4 Subject: [PATCH] staging/bcm2835-codec: Correct ENUM_FRAMESIZES
5 stepsize to 2
6
7 Being YUV420 formats, the step size is always 2 to avoid part
8 chroma subsampling.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
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 @@ -2222,10 +2222,10 @@ static int vidioc_enum_framesizes(struct
18
19 fsize->stepwise.min_width = MIN_W;
20 fsize->stepwise.max_width = MAX_W;
21 - fsize->stepwise.step_width = 1;
22 + fsize->stepwise.step_width = 2;
23 fsize->stepwise.min_height = MIN_H;
24 fsize->stepwise.max_height = MAX_H;
25 - fsize->stepwise.step_height = 1;
26 + fsize->stepwise.step_height = 2;
27
28 return 0;
29 }