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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 376d001e..49a2e7f3 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -29,16 +29,15 @@ class CameraMetadata;
struct CameraStream {
public:
- CameraStream(libcamera::PixelFormat, libcamera::Size, unsigned int i);
- ~CameraStream();
+ CameraStream(libcamera::PixelFormat, libcamera::Size, unsigned int i,
+ Encoder *e = nullptr);
unsigned int index() const { return index_; }
+ Encoder *encoder() const { return encoder_.get(); }
libcamera::PixelFormat format;
libcamera::Size size;
- Encoder *jpeg;
-
private:
/*
* The index of the libcamera StreamConfiguration as added during
@@ -46,6 +45,7 @@ private:
* one or more streams to the Android framework.
*/
unsigned int index_;
+ std::unique_ptr<Encoder> encoder_;
};
class CameraDevice : protected libcamera::Loggable