From 1c18c451f3a48507e876cfdb03c0a6f2187f62cb Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Wed, 30 Nov 2022 13:31:08 +0000 Subject: lib/timer: Add timer infrastructure Some sources simply fill the buffers passed by the USB subsystem and return them as quickly as possible. Particularly with compressed formats operating at superspeed this rapidly results in unrealistic frame rates. Add infrastructure that allows us to define a specific framerate and introduce blocking calls that constrain those sources to the framerates expected by the host. Reviewed-by: Kieran Bingham Signed-off-by: Daniel Scally --- lib/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index f6991d5..a0d67d5 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -6,6 +6,7 @@ libuvcgadget_sources = files([ 'jpg-source.c', 'stream.c', 'test-source.c', + 'timer.c', 'uvc.c', 'v4l2.c', 'v4l2-source.c', -- cgit v1.2.3