support setting focus and autofocus with V4L2

also refactor property range handling and opencv property to V4L2
translation.
This commit is contained in:
Pavel Rojtberg
2015-10-08 16:56:18 +02:00
committed by Pavel Rojtberg
parent 484c68cbb8
commit f7981a8ae8
3 changed files with 131 additions and 326 deletions

View File

@@ -133,7 +133,9 @@ enum { CAP_PROP_POS_MSEC =0,
CAP_PROP_TILT =34,
CAP_PROP_ROLL =35,
CAP_PROP_IRIS =36,
CAP_PROP_SETTINGS =37
CAP_PROP_SETTINGS =37,
CAP_PROP_BUFFERSIZE =38,
CAP_PROP_AUTOFOCUS =39
};