diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-11-02 17:05:56 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-11-25 12:07:17 +0100 |
commit | b35f04b3c19487de903b67340fcfb801557295d3 (patch) | |
tree | d84c2346112c9f3de7e9182589847632a912a573 /src/apps/cam/capture_script.h | |
parent | 87f5d12718b0ad83e2dd7fbbfe48e404ebaec092 (diff) |
cam: capture_script: Support parsing array controls
Add support for parsing array controls to the cam capture script.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/apps/cam/capture_script.h')
-rw-r--r-- | src/apps/cam/capture_script.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apps/cam/capture_script.h b/src/apps/cam/capture_script.h index 7a0ddebb..40042c03 100644 --- a/src/apps/cam/capture_script.h +++ b/src/apps/cam/capture_script.h @@ -56,6 +56,11 @@ private: int parseFrame(EventPtr event); int parseControl(EventPtr event, libcamera::ControlList &controls); + libcamera::ControlValue parseScalarControl(const libcamera::ControlId *id, + const std::string repr); + libcamera::ControlValue parseArrayControl(const libcamera::ControlId *id, + const std::vector<std::string> &repr); + std::string parseScalar(); libcamera::ControlValue parseRectangles(); std::vector<std::vector<std::string>> parseArrays(); |