Skip to content

Commit ea3c104

Browse files
sandyol55pelwell
authored andcommitted
media: i2c: imx477: Fix crop height for 12Mpix 16:9
Struct definition doesn't match the cropped height of the mode causing Picamera2 ScalerCrop to distort any cropped images. Also causes the rpi-cam apps --list-cameras to report an incorrect mode crop height. Signed-off-by: Sandy Sutherland <ao_sutherland@outlook.com>
1 parent f2f68e7 commit ea3c104

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/i2c/imx477.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ static const struct imx477_mode supported_modes[] = {
884884
.left = IMX477_PIXEL_ARRAY_LEFT,
885885
.top = IMX477_PIXEL_ARRAY_TOP + 440,
886886
.width = 4056,
887-
.height = 3040,
887+
.height = 2160,
888888
},
889889
.frm_length_default = 10,
890890
.reg_list = {

0 commit comments

Comments
 (0)