[libcamera-devel,0/1] cam: Add Rectangle type parsing in capture script
mbox series

Message ID 20220622160226.42220-1-dse@thaumatec.com
Headers show
Series
  • cam: Add Rectangle type parsing in capture script
Related show

Message

Daniel Semkowicz June 22, 2022, 4:02 p.m. UTC
Hi,

This change adds the Rectangle type parsing in capture script.
This allows usage of controls that use rectangle, for example AfWindows.

Example usage in capture script:

frames: 
  - 10:
      AfWindows:
        - [ 10, 20, 100, 200 ]
        - [ 500, 500, 100, 100 ]
      
or

frames: 
  - 10:
      AfWindows: [[ 10, 20, 100, 200 ]]

Best regards
Daniel Semkowicz

Daniel Semkowicz (1):
  cam: Add Rectangle type parsing in capture script

 src/cam/capture_script.cpp | 104 +++++++++++++++++++++++++++++++++----
 src/cam/capture_script.h   |   9 +++-
 2 files changed, 102 insertions(+), 11 deletions(-)