diff options
author | Hirokazu Honda <hiroh@chromium.org> | 2021-10-05 18:27:57 +0900 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-10-06 09:23:38 +0530 |
commit | 4c992d6975b0135ec61b3239ceeaef2ea3125387 (patch) | |
tree | b976f854bdbec6fb008938762b7c9d3d30c0eadb /src/android | |
parent | a733e0647a2c3cbbacac9110b01afa1e2a2d68d7 (diff) |
android: camera_stream: Set right format for processor output buffer
CameraStream always sets the format of processor output buffer to
MJPEG. This fixes the issue.
Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/camera_stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |