summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-10-03 11:28:47 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-10-07 16:07:44 +0200
commit9e95d5e4531039f8e21c65ea88be9ad6aaa1ced0 (patch)
treeddfafef1ab03c7fe27e181233a8ccd4e9ea56f63 /src/android/camera_device.h
parent160bb0998bc47abefeb876be1ecbff9534960dbc (diff)
android: camera_device: Move processing to CameraStream
Move the JPEG processing procedure to the individual CameraStream by augmenting the class with a CameraStream::process() method. This allows removing the CameraStream::encoder() method. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 4e326fa3..826023b4 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -20,6 +20,7 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
+#include "libcamera/internal/buffer.h"
#include "libcamera/internal/log.h"
#include "libcamera/internal/message.h"
@@ -28,6 +29,12 @@
class CameraMetadata;
+class MappedCamera3Buffer : public libcamera::MappedBuffer
+{
+public:
+ MappedCamera3Buffer(const buffer_handle_t camera3buffer, int flags);
+};
+
class CameraDevice : protected libcamera::Loggable
{
public:
@@ -50,6 +57,7 @@ public:
int facing() const { return facing_; }
int orientation() const { return orientation_; }
+ unsigned int maxJpegBufferSize() const { return maxJpegBufferSize_; }
void setCallbacks(const camera3_callback_ops_t *callbacks);
const camera_metadata_t *getStaticMetadata();