first implementation of --soft-fps

This commit is contained in:
Devaev Maxim
2018-11-02 02:32:28 +03:00
parent 77b5e6eabc
commit fb6331b64a
5 changed files with 38 additions and 15 deletions

View File

@@ -84,6 +84,7 @@ struct device_t *device_init() {
dev->standard = V4L2_STD_UNKNOWN;
dev->n_buffers = max_u(sysconf(_SC_NPROCESSORS_ONLN), 1) + 1;
dev->n_workers = dev->n_buffers;
dev->soft_fps = 30;
dev->timeout = 1;
dev->error_delay = 1;
dev->run = run;