aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-21 12:54:29 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-21 12:54:29 (GMT)
commit1dd7df69fbb10b77b29d96648e18392097891ddf (patch)
tree73fca3bda9c9290cb38a679ce942ebba79351164 /src/v4l.c
parent115a30ce7f2508c764a3fb13cf67b1f0fb5946d0 (diff)
Fix maximum resolution on scalable cameras
When the camera is scalable, right now it shows the max res as 3/4 of the real one. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/v4l.c')
-rw-r--r--src/v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4l.c b/src/v4l.c
index d54bbfb..32c09d9 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -118,7 +118,7 @@ void get_supported_resolutions(cam_t *cam)
frmsize.discrete.height,
get_max_fps_discrete(cam, &frmsize));
} else if (frmsize.type == V4L2_FRMSIZE_TYPE_STEPWISE) {
- for (i = 0; i < 4; i++) {
+ for (i = 0; i <= 4; i++) {
x = frmsize.stepwise.min_width +
i * (frmsize.stepwise.max_width -
frmsize.stepwise.min_width) / 4;

Privacy Policy