aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4l.c')
-rw-r--r--src/v4l.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/v4l.c b/src/v4l.c
index c5aa797..10c4494 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -297,6 +297,14 @@ void get_pic_info(cam_t *cam)
} else {
cam->colour = -1;
}
+ i = v4l2_get_control(cam->dev, V4L2_CID_ZOOM_ABSOLUTE);
+ if (i >= 0) {
+ cam->zoom = i;
+ if (cam->debug == TRUE)
+ printf("zoom = %d\n", cam->zoom);
+ } else {
+ cam->zoom = -1;
+ }
i = v4l2_get_control(cam->dev, V4L2_CID_CONTRAST);
if (i >= 0) {
cam->contrast = i;

Privacy Policy