summaryrefslogtreecommitdiff
path: root/binary_data.h
blob: 6f7e55a1681ed2056a8406886cc195bdf48c87bf (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
27
28
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: Apache-2.0 */
/*
 * Copyright (C) 2021, Google Inc.
 *
 * binary_data.h - AIQ Binary Data Wrapper
 */

#include <vector>

#include <ia_imaging/ia_aiq.h>

#include <libcamera/base/class.h>

#ifndef __IPA_IPU3_BINARY_DATA__
#define __IPA_IPU3_BINARY_DATA__

namespace libcamera::ipa::ipu3 {

class BinaryData
{
public:
	BinaryData();

	int load(const char *filename);
	ia_binary_data *data() { return &iaBinaryData_; }

private:
	LIBCAMERA_DISABLE_COPY_AND_MOVE(BinaryData)

	ia_binary_data iaBinaryData_;
	std::vector<uint8_t> data_;
};

} /* namespace libcamera::ipa::ipu3 */

#endif /* __IPA_IPU3_BINARY_DATA__ */