The jpeg components are licensed under GPL-2.0-or-later. This is an oversight and unvoluntary. License them under the LGPL-2.1-or-later as the rest of the camera HAL implementation. Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
25 lines
626 B
C++
25 lines
626 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2020, Google Inc.
|
|
*
|
|
* encoder.h - Image encoding interface
|
|
*/
|
|
#ifndef __ANDROID_JPEG_ENCODER_H__
|
|
#define __ANDROID_JPEG_ENCODER_H__
|
|
|
|
#include <libcamera/buffer.h>
|
|
#include <libcamera/span.h>
|
|
#include <libcamera/stream.h>
|
|
|
|
class Encoder
|
|
{
|
|
public:
|
|
virtual ~Encoder() {};
|
|
|
|
virtual int configure(const libcamera::StreamConfiguration &cfg) = 0;
|
|
virtual int encode(const libcamera::FrameBuffer *source,
|
|
const libcamera::Span<uint8_t> &destination,
|
|
const libcamera::Span<const uint8_t> &exifData) = 0;
|
|
};
|
|
|
|
#endif /* __ANDROID_JPEG_ENCODER_H__ */
|