staging/bcm2835-codec: Correct ENUM_FRAMESIZES stepsize to 2
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 5 Aug 2021 14:11:23 +0000 (15:11 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:23 +0000 (16:04 +0000)
Being YUV420 formats, the step size is always 2 to avoid part
chroma subsampling.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

index 3f15c20..96de610 100644 (file)
@@ -2222,10 +2222,10 @@ static int vidioc_enum_framesizes(struct file *file, void *fh,
 
        fsize->stepwise.min_width = MIN_W;
        fsize->stepwise.max_width = MAX_W;
-       fsize->stepwise.step_width = 1;
+       fsize->stepwise.step_width = 2;
        fsize->stepwise.min_height = MIN_H;
        fsize->stepwise.max_height = MAX_H;
-       fsize->stepwise.step_height = 1;
+       fsize->stepwise.step_height = 2;
 
        return 0;
 }