summaryrefslogtreecommitdiff
path: root/src/android/camera_stream.h
diff options
context:
space:
mode:
authorUmang Jain <email@uajain.com>2020-10-16 11:07:54 +0530
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-16 10:23:10 +0100
commitb2b8c4dc941b979ddf5e9013530e76c67e6a12fe (patch)
tree3eaeb0150a536b18619a14bcdfa16a771104ee29 /src/android/camera_stream.h
parent3d946a2e609ced0331563558e120361f153ef442 (diff)
android: jpeg: Port to PostProcessor interface
Port the CameraStream's JPEG-encoding bits to PostProcessorJpeg. This encapsulates the encoder and EXIF generation code into the PostProcessorJpeg layer and removes these specifics related to JPEG, from the CameraStream itself. Signed-off-by: Umang Jain <email@uajain.com> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Change-Id: Id9e6e9b2bec83493a90e5e126298a2bb2ed2232a
Diffstat (limited to 'src/android/camera_stream.h')
-rw-r--r--src/android/camera_stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/camera_stream.h b/src/android/camera_stream.h
index d3925fb5..c367a5f9 100644
--- a/src/android/camera_stream.h
+++ b/src/android/camera_stream.h
@@ -19,10 +19,10 @@
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
-class Encoder;
class CameraDevice;
class CameraMetadata;
class MappedCamera3Buffer;
+class PostProcessor;
class CameraStream
{
@@ -130,7 +130,6 @@ private:
camera3_stream_t *camera3Stream_;
unsigned int index_;
- std::unique_ptr<Encoder> encoder_;
std::unique_ptr<libcamera::FrameBufferAllocator> allocator_;
std::vector<libcamera::FrameBuffer *> buffers_;
/*
@@ -138,6 +137,7 @@ private:
* an std::vector in CameraDevice.
*/
std::unique_ptr<std::mutex> mutex_;
+ std::unique_ptr<PostProcessor> postProcessor_;
};
#endif /* __ANDROID_CAMERA_STREAM__ */