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:
parent
1abdcf803d
commit
1976179623
8 changed files with 15 additions and 20 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "../camera_device.h"
|
||||
#include "../camera_metadata.h"
|
||||
#include "../camera_request.h"
|
||||
#include "encoder_libjpeg.h"
|
||||
#include "exif.h"
|
||||
|
||||
|
@ -99,14 +100,15 @@ void PostProcessorJpeg::generateThumbnail(const FrameBuffer &source,
|
|||
|
||||
int PostProcessorJpeg::process(const FrameBuffer &source,
|
||||
CameraBuffer *destination,
|
||||
const CameraMetadata &requestMetadata,
|
||||
CameraMetadata *resultMetadata)
|
||||
Camera3RequestDescriptor *request)
|
||||
{
|
||||
if (!encoder_)
|
||||
return 0;
|
||||
|
||||
ASSERT(destination->numPlanes() == 1);
|
||||
|
||||
const CameraMetadata &requestMetadata = request->settings_;
|
||||
CameraMetadata *resultMetadata = request->resultMetadata_.get();
|
||||
camera_metadata_ro_entry_t entry;
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue