summaryrefslogtreecommitdiff
path: root/src/android/camera_stream.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-10-02 19:22:24 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-10-07 16:07:43 +0200
commit5cf64b26a24d1430eed9523ca5899bdd3faf203b (patch)
tree1055799fd073bc7dc246d945cc4c645f9822b8c2 /src/android/camera_stream.cpp
parent5fbda0dfda8dbf85022356e117fff47b184461f6 (diff)
android: camera_stream: Break out CameraStream
Break CameraStream out of the CameraDevice class. No functional changes, only the code is moved. 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_stream.cpp')
-rw-r--r--src/android/camera_stream.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
new file mode 100644
index 00000000..cd9084ae
--- /dev/null
+++ b/src/android/camera_stream.cpp
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2020, Google Inc.
+ *
+ * camera_stream.cpp - Camera HAL stream
+ */
+
+#include "camera_stream.h"
+
+#include "jpeg/encoder.h"
+
+using namespace libcamera;
+
+CameraStream::CameraStream(PixelFormat format, Size size,
+ unsigned int index, Encoder *encoder)
+ : format_(format), size_(size), index_(index), encoder_(encoder)
+{
+}