summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-03-10 16:19:33 +0100
committerJacopo Mondi <jacopo@jmondi.org>2021-05-25 15:22:10 +0200
commit9133c5b2cc8403ca02a525845ed52bb2547bc377 (patch)
treedfe12eef0b59748f8be5f2f61106c325b5a5fdcf /src/android/camera_device.h
parent07c2a4257d9ef3bae35af1848f9f36ac8ce8044d (diff)
android: camera_device: Get properties from configuration
Open the HAL configuration file in the Camera HAL manager and get the camera properties for each created CameraDevice and initialize it with them. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index ae162a45..8190d929 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -30,6 +30,7 @@
#include "camera_worker.h"
#include "jpeg/encoder.h"
+struct CameraConfigData;
class CameraDevice : protected libcamera::Loggable
{
public:
@@ -37,7 +38,7 @@ public:
std::shared_ptr<libcamera::Camera> cam);
~CameraDevice();
- int initialize();
+ int initialize(const CameraConfigData *cameraConfigData);
int open(const hw_module_t *hardwareModule);
void close();