mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
android: camera_stream: Support PostProcessorYuv in CameraStream
CameraStream creates PostProcessorYuv if the destination format is NV12. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
76819971b9
commit
13b76d6209
2 changed files with 13 additions and 5 deletions
|
@ -1131,12 +1131,12 @@ void CameraDevice::requestComplete(Request *request)
|
|||
resultMetadata = std::make_unique<CameraMetadata>(0, 0);
|
||||
}
|
||||
|
||||
/* Handle any JPEG compression. */
|
||||
/* Handle post-processing. */
|
||||
for (camera3_stream_buffer_t &buffer : descriptor.buffers_) {
|
||||
CameraStream *cameraStream =
|
||||
static_cast<CameraStream *>(buffer.stream->priv);
|
||||
|
||||
if (cameraStream->camera3Stream().format != HAL_PIXEL_FORMAT_BLOB)
|
||||
if (cameraStream->type() == CameraStream::Type::Direct)
|
||||
continue;
|
||||
|
||||
FrameBuffer *src = request->findBuffer(cameraStream->stream());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue