From 568865a6c14355d74349dea61fee06e09f11dfd7 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 18 May 2022 19:19:20 +0200 Subject: cam: Use script parser to set controls Add a "--script" option to the cam test application to allow specify a capture script to be used to drive the capture session. Add to the CameraSession class a script parser instance, created conditionally to the OptCaptureScript option. If the script parser has been created, use it at queueRequest time to retrieve the list of controls that has to be associated with a Request, and populate Request::controls() with it before queueing it to the Camera. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/cam/main.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cam/main.h') diff --git a/src/cam/main.h b/src/cam/main.h index 62f7bbc9..51b87927 100644 --- a/src/cam/main.h +++ b/src/cam/main.h @@ -21,4 +21,5 @@ enum { OptListControls = 256, OptStrictFormats = 257, OptMetadata = 258, + OptCaptureScript = 259, }; -- cgit v1.2.1