summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-12-18 11:47:52 +0100
committerJacopo Mondi <jacopo@jmondi.org>2021-05-10 15:08:26 +0200
commitcdfcb05bedd22670f42581188d9ffd07a283fb4c (patch)
tree148cc5feb8e13e052c743b4f56000ecfdcfedaf4 /include
parenta58a94e4c21465ede803c48162f1f791188a17f4 (diff)
libcamera: camera_sensor: Register static properties
Register static properties in the CameraSensor class by inspecting the camera sensor properties database. Static properties are overridden by properties retrieved from the kernel interface at run-time if any overlap between the two sets occurs. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/camera_sensor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index 3e98f71b..3fa3a419 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -77,6 +77,7 @@ private:
int generateId();
int validateSensorDriver();
void initVimcDefaultProperties();
+ void initStaticProperties();
int initProperties();
const MediaEntity *entity_;