summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 7be9e119..3e472c71 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -47,7 +47,8 @@ struct CameraStream {
class CameraDevice : protected libcamera::Loggable
{
public:
- CameraDevice(unsigned int id, const std::shared_ptr<libcamera::Camera> &camera);
+ static std::shared_ptr<CameraDevice> create(unsigned int id,
+ const std::shared_ptr<libcamera::Camera> &cam);
~CameraDevice();
int initialize();
@@ -72,6 +73,8 @@ protected:
std::string logPrefix() const override;
private:
+ CameraDevice(unsigned int id, const std::shared_ptr<libcamera::Camera> &camera);
+
struct Camera3RequestDescriptor {
Camera3RequestDescriptor(unsigned int frameNumber,
unsigned int numBuffers);