libcamera: include/libcamera/ipa/ipa_controls.h Source File

libcamera v0.3.2 Supporting cameras in Linux since 2019

Loading...
Searching...
No Matches
ipa_controls.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019, Google Inc.
4 *
5 * IPA Control handling
6 */
7
8#pragma once
9
10#include <stdint.h>
11
12#ifdef __cplusplus
13namespace libcamera {
14
15extern "C" {
16#endif
17
18#define IPA_CONTROLS_FORMAT_VERSION 1
19
20 enum ipa_controls_id_map_type {
21 IPA_CONTROL_ID_MAP_CONTROLS,
22 IPA_CONTROL_ID_MAP_PROPERTIES,
23 IPA_CONTROL_ID_MAP_V4L2,
24};
25
26 struct ipa_controls_header {
27 uint32_t version;
28 uint32_t handle;
29 uint32_t entries;
30 uint32_t size;
31 uint32_t data_offset;
32 enum ipa_controls_id_map_type id_map_type;
33 uint32_t reserved[2];
34};
35
36 struct ipa_control_value_entry {
37 uint32_t id;
38 uint8_t type;
39 uint8_t is_array;
40 uint16_t count;
41 uint32_t offset;
42 uint32_t padding[1];
43};
44
45 struct ipa_control_info_entry {
46 uint32_t id;
47 uint32_t type;
48 uint32_t offset;
49 uint32_t padding[1];
50};
51
52#ifdef __cplusplus
53} /* namespace libcamera */
54
55}
56#endif
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::ipa_controls_id_map_type
ipa_controls_id_map_type
Enumerates the different control id map types.
Definition ipa_controls.h:20
libcamera::IPA_CONTROL_ID_MAP_CONTROLS
@ IPA_CONTROL_ID_MAP_CONTROLS
The numerical control identifier are resolved to a ControlId * using the global controls::controls id...
Definition ipa_controls.h:21
libcamera::IPA_CONTROL_ID_MAP_PROPERTIES
@ IPA_CONTROL_ID_MAP_PROPERTIES
The numerical control identifier are resolved to a ControlId * using the global properties::propertie...
Definition ipa_controls.h:22
libcamera::IPA_CONTROL_ID_MAP_V4L2
@ IPA_CONTROL_ID_MAP_V4L2
ControlId for V4L2 defined controls are created by the video device that enumerates them,...
Definition ipa_controls.h:23
libcamera::ipa_control_info_entry
Description of a serialized ControlInfo entry.
Definition ipa_controls.h:45
libcamera::ipa_control_info_entry::type
uint32_t type
Definition ipa_controls.h:47
libcamera::ipa_control_info_entry::id
uint32_t id
Definition ipa_controls.h:46
libcamera::ipa_control_info_entry::padding
uint32_t padding[1]
Definition ipa_controls.h:49
libcamera::ipa_control_info_entry::offset
uint32_t offset
Definition ipa_controls.h:48
libcamera::ipa_control_value_entry
Description of a serialized ControlValue entry.
Definition ipa_controls.h:36
libcamera::ipa_control_value_entry::padding
uint32_t padding[1]
Definition ipa_controls.h:42
libcamera::ipa_control_value_entry::type
uint8_t type
Definition ipa_controls.h:38
libcamera::ipa_control_value_entry::count
uint16_t count
Definition ipa_controls.h:40
libcamera::ipa_control_value_entry::is_array
uint8_t is_array
Definition ipa_controls.h:39
libcamera::ipa_control_value_entry::id
uint32_t id
Definition ipa_controls.h:37
libcamera::ipa_control_value_entry::offset
uint32_t offset
Definition ipa_controls.h:41
libcamera::ipa_controls_header
Serialized control packet header.
Definition ipa_controls.h:26
libcamera::ipa_controls_header::version
uint32_t version
Definition ipa_controls.h:27
libcamera::ipa_controls_header::id_map_type
enum ipa_controls_id_map_type id_map_type
Definition ipa_controls.h:32
libcamera::ipa_controls_header::entries
uint32_t entries
Definition ipa_controls.h:29
libcamera::ipa_controls_header::size
uint32_t size
Definition ipa_controls.h:30
libcamera::ipa_controls_header::data_offset
uint32_t data_offset
Definition ipa_controls.h:31
libcamera::ipa_controls_header::handle
uint32_t handle
Definition ipa_controls.h:28
libcamera::ipa_controls_header::reserved
uint32_t reserved[2]
Definition ipa_controls.h:33