diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-12-23 13:34:20 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-12-23 15:05:26 -0200 |
commit | 4ee19584c0cf1048d5cc813ec82f9be249411d3f (patch) | |
tree | 50f9cbc08cdb8d5f87a733e5671b77a0dcd8d0fd /src/v4l.c | |
parent | 8956d6f5df867e911203e06db97313f30f57a98b (diff) |
Add zoom control
The icon was imported from gnome icon set
(https://github.com/GNOME/gnome-icon-theme) before changeset
e4fc9dade2d6411173bb84c0f1064eeac0b6a5fb, to ensure that it
matches the license of camorama project (GPL 2).
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/v4l.c')
-rw-r--r-- | src/v4l.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |