summaryrefslogtreecommitdiff
path: root/utils/ipc/generators/libcamera_templates/core_ipa_serializer.h.tmpl
blob: 5738a1aa340545dccc80059264202c77809f5cb6 (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
38
39
40
41
42
43
44
{#-
 # SPDX-License-Identifier: LGPL-2.1-or-later
 # Copyright (C) 2020, Google Inc.
-#}
{%- import "serializer.tmpl" as serializer -%}

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2020, Google Inc.
 *
 * core_ipa_serializer.h - Data serializer for core libcamera definitions for IPA
 *
 * This file is auto-generated. Do not edit.
 */

#pragma once

#include <tuple>
#include <vector>

#include <libcamera/ipa/core_ipa_interface.h>

#include "libcamera/internal/control_serializer.h"
#include "libcamera/internal/ipa_data_serializer.h"

namespace libcamera {

LOG_DECLARE_CATEGORY(IPADataSerializer)
{% for struct in structs_gen_serializer %}
template<>
class IPADataSerializer<{{struct|name}}>
{
public:
{{- serializer.serializer(struct, "")}}
{%- if struct|has_fd %}
{{serializer.deserializer_fd(struct, "")}}
{%- else %}
{{serializer.deserializer_no_fd(struct, "")}}
{{serializer.deserializer_fd_simple(struct, "")}}
{%- endif %}
};
{% endfor %}

} /* namespace libcamera */