summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-01-21 17:44:14 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-01-27 12:07:05 +0900
commit229653a59ba635b1649590aa119a4354989314a8 (patch)
tree91dd8707acbb3be0b88c4929c11a229e640f7177 /src/android/camera_device.h
parent3a3f6ae22e88c592425a4374734cd17df76d7db2 (diff)
android: camera_device: Load make and model from platform settings
In ChromeOS the camera make and model is saved in /var/cache/camera/camera.prop. Load and save these values at construction time, if available. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 597d11fc..4b0d8575 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -55,6 +55,8 @@ public:
return config_.get();
}
+ const std::string &maker() const { return maker_; }
+ const std::string &model() const { return model_; }
int facing() const { return facing_; }
int orientation() const { return orientation_; }
unsigned int maxJpegBufferSize() const { return maxJpegBufferSize_; }
@@ -125,6 +127,9 @@ private:
std::map<int, libcamera::PixelFormat> formatsMap_;
std::vector<CameraStream> streams_;
+ std::string maker_;
+ std::string model_;
+
int facing_;
int orientation_;