The base class of polymorphic classes is required to declare a destructor. Several of these are empty, and can thus be declared as defaulted. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
29 lines
726 B
C++
29 lines
726 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2020, Google Inc.
|
|
*
|
|
* post_processor.h - CameraStream Post Processing Interface
|
|
*/
|
|
#ifndef __ANDROID_POST_PROCESSOR_H__
|
|
#define __ANDROID_POST_PROCESSOR_H__
|
|
|
|
#include <libcamera/buffer.h>
|
|
#include <libcamera/span.h>
|
|
#include <libcamera/stream.h>
|
|
|
|
class CameraMetadata;
|
|
|
|
class PostProcessor
|
|
{
|
|
public:
|
|
virtual ~PostProcessor() = default;
|
|
|
|
virtual int configure(const libcamera::StreamConfiguration &inCfg,
|
|
const libcamera::StreamConfiguration &outCfg) = 0;
|
|
virtual int process(const libcamera::FrameBuffer &source,
|
|
libcamera::Span<uint8_t> destination,
|
|
CameraMetadata *metadata) = 0;
|
|
};
|
|
|
|
#endif /* __ANDROID_POST_PROCESSOR_H__ */
|