File: module_ipa_serializer.h.tmpl

package info (click to toggle)
libcamera 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,380 kB
  • sloc: cpp: 81,540; python: 18,107; ansic: 12,608; sh: 1,258; makefile: 56
file content (40 lines) | stat: -rw-r--r-- 891 bytes parent folder | download
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
{#-
 # 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.
 *
 * Image Processing Algorithm data serializer for {{module_name}}
 *
 * This file is auto-generated. Do not edit.
 */

#pragma once

#include <tuple>
#include <vector>

#include <libcamera/ipa/{{module_name}}_ipa_interface.h>
#include <libcamera/ipa/core_ipa_serializer.h>

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

namespace libcamera {

LOG_DECLARE_CATEGORY(IPADataSerializer)
{% for struct in structs_nonempty %}
template<>
class IPADataSerializer<{{struct|name_full}}>
{
public:
{{- serializer.serializer(struct)}}
{{- serializer.deserializer(struct)}}
};
{% endfor %}

} /* namespace libcamera */