camera: improve FPS handling

This commit is contained in:
Kamil Trzcinski
2023-02-23 16:48:19 +01:00
parent a24e100983
commit 21ce78a277
3 changed files with 22 additions and 8 deletions

View File

@ -47,10 +47,6 @@ int camera_configure_pipeline(camera_t *camera, buffer_list_t *capture)
if (capture) {
capture->do_timestamps = true;
if (camera->options.fps > 0) {
capture->fmt.interval_us = 1000 * 1000 / camera->options.fps;
}
switch (capture->fmt.format) {
case V4L2_PIX_FMT_SRGGB10P:
case V4L2_PIX_FMT_SGRBG10P: