summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/zap.svg
blob: 8fdafa934f9dabffa32765f1d1c676b1d28bc6db (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zap"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>
ndroid/jpeg/encoder.h?h=rcar-gen4&id=5d6f9025049011811acbadc9a3e33c1257a81a0f'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* 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() = default;

	virtual int configure(const libcamera::StreamConfiguration &cfg) = 0;
	virtual int encode(const libcamera::FrameBuffer &source,
			   libcamera::Span<uint8_t> destination,
			   libcamera::Span<const uint8_t> exifData,
			   unsigned int quality) = 0;
};

#endif /* __ANDROID_JPEG_ENCODER_H__ */