aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-21 10:03:53 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-23 17:57:52 (GMT)
commitaa973596fd61d4e91f66cf53ab51cbed9042be30 (patch)
tree6815e1ceefb698496f35a1d5d7dcf9941d6f5313 /src/v4l.c
parent2a14f1057ec37923a88dc7dea381299a32a22f7f (diff)
Optimize the logic with sets control values
No need to write all controls when just one changes.
Diffstat (limited to 'src/v4l.c')
-rw-r--r--src/v4l.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/v4l.c b/src/v4l.c
index f0b44de..b6483a4 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -161,24 +161,6 @@ void camera_cap(cam * cam)
}
}
-void
-set_pic_info(cam* cam) {
- int result;
- unsigned int v4l2_pixfmt;
- struct v4l2_format fmt;
-
- char *msg;
- if(cam->debug) {
- g_message("SET PIC");
- }
-
- v4l2_set_control(cam->dev, V4L2_CID_BRIGHTNESS, cam->brightness);
- v4l2_set_control(cam->dev, V4L2_CID_HUE, cam->hue);
- v4l2_set_control(cam->dev, V4L2_CID_CONTRAST, cam->contrast);
- v4l2_set_control(cam->dev, V4L2_CID_SATURATION, cam->colour);
- v4l2_set_control(cam->dev, V4L2_CID_WHITENESS, cam->whiteness);
-}
-
void get_pic_info(cam * cam){
char *msg;
int i;

Privacy Policy