aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-24 09:18:39 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-24 09:45:56 -0300
commit3bbc07f94c3bf49e2828902dfeb3f6f2e6953336 (patch)
treeeabf27fc04fd80cb27275e5573b339b78ff89cf8 /src/v4l.h
parent00dca626855904e955ec4c164505a0bc34db671d (diff)
Prevent activating an already active size
Changing resolution is costly, as we need first to wait for pending buffers and stop streaming. So, optimize resolution switch by not trying to activate the already activated resolution.
Diffstat (limited to 'src/v4l.h')
-rw-r--r--src/v4l.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/v4l.h b/src/v4l.h
index 1c07641..b29bb42 100644
--- a/src/v4l.h
+++ b/src/v4l.h
@@ -86,6 +86,7 @@ typedef struct camera {
} cam;
void camera_cap (cam *);
+void try_set_win_info(cam * cam, int *x, int *y);
void set_win_info (cam * cam);
void get_pic_info (cam *);
void get_win_info (cam *);

Privacy Policy