android: camera_stream: Plumb process() with Camera3RequestDescriptor

Data (or broader context) required for post processing of a camera request
is saved via Camera3RequestDescriptor. Instead of passing individual
arguments to CameraStream::process(), pass the Camera3RequestDescriptor
pointer to it. All the arguments necessary to run the post-processor can
be accessed from the descriptor.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
Umang Jain 2021-10-19 17:17:54 +05:30
parent 1abdcf803d
commit 1976179623
8 changed files with 15 additions and 20 deletions

View file

@ -1153,9 +1153,8 @@ void CameraDevice::requestComplete(Request *request)
continue;
}
int ret = cameraStream->process(*src, buffer,
descriptor->settings_,
descriptor->resultMetadata_.get());
int ret = cameraStream->process(*src, buffer, descriptor);
/*
* Return the FrameBuffer to the CameraStream now that we're
* done processing it.