From 22ab0b41936886fe65da9a6a386b69b7ce22620d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 10 Aug 2022 01:01:22 +0300 Subject: utils: gen-controls: Improve YAML notation for variable-size array controls Array controls specify the array size through the YAML 'size' element, which stores a list of values, one per dimension. Variable-size arrays currently use an empty 'size' list, which prevents describing the number of dimensions of the array. Improve this by using the same notation for fixed-size and variable-size array controls. Dimensions that are not fixed are described as a string instead of an integer, such as [n], [n,3] or [w,h]. The strings have currently no special meaning, this may change in the future. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain --- src/libcamera/property_ids.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcamera/property_ids.yaml') diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index 960e2544..cb55e0ed 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -497,7 +497,7 @@ controls: - PixelArrayOpticalBlackRectangles: type: Rectangle - size: [] + size: [n] description: | The pixel array region(s) which contain optical black pixels considered valid for calibration purposes. @@ -592,7 +592,7 @@ controls: - PixelArrayActiveAreas: type: Rectangle - size: [] + size: [n] description: | The PixelArrayActiveAreas property defines the (possibly multiple and overlapping) portions of the camera sensor readable pixel matrix -- cgit v1.2.1