[libcamera-devel] [PATCH] android: camera_stream: Set right format for processor output buffer
Hirokazu Honda
hiroh at chromium.org
Tue Oct 5 11:27:57 CEST 2021
CameraStream always sets the format of processor output buffer to
MJPEG. This fixes the issue.
Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
---
src/android/camera_stream.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
index e80f842d..db8d854b 100644
--- a/src/android/camera_stream.cpp
+++ b/src/android/camera_stream.cpp
@@ -168,7 +168,7 @@ int CameraStream::process(const FrameBuffer &source,
* separate thread.
*/
const StreamConfiguration &output = configuration();
- CameraBuffer dest(*camera3Dest.buffer, formats::MJPEG, output.size,
+ CameraBuffer dest(*camera3Dest.buffer, output.pixelFormat, output.size,
PROT_READ | PROT_WRITE);
if (!dest.isValid()) {
LOG(HAL, Error) << "Failed to map android blob buffer";
--
2.33.0.800.g4c38ced690-goog
More information about the libcamera-devel
mailing list