Loading...
Searching...
No Matches
ipa_controls.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* IPA Control handling
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
namespace libcamera {
extern "C" {
#endif
#define IPA_CONTROLS_FORMAT_VERSION 2
enum ipa_controls_id_map_type {
IPA_CONTROL_ID_MAP_CONTROLS,
IPA_CONTROL_ID_MAP_PROPERTIES,
IPA_CONTROL_ID_MAP_V4L2,
};
struct ipa_controls_header {
uint32_t version;
uint32_t handle;
uint32_t entries;
uint32_t size;
uint32_t data_offset;
enum ipa_controls_id_map_type id_map_type;
uint32_t reserved[2];
};
struct ipa_control_value_entry {
uint8_t type;
uint8_t is_array;
uint16_t count;
uint32_t offset;
uint32_t reserved[2];
};
struct ipa_control_list_entry {
uint32_t id;
struct ipa_control_value_entry value;
};
struct ipa_control_info_entry {
uint32_t id;
uint32_t type;
uint8_t direction;
uint8_t padding[7];
struct ipa_control_value_entry min;
struct ipa_control_value_entry max;
struct ipa_control_value_entry def;
};
#ifdef __cplusplus
} /* namespace libcamera */
}
#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:49
libcamera::ipa_control_info_entry::direction
uint8_t direction
Definition ipa_controls.h:52
libcamera::ipa_control_info_entry::type
uint32_t type
Definition ipa_controls.h:51
libcamera::ipa_control_info_entry::id
uint32_t id
Definition ipa_controls.h:50
libcamera::ipa_control_info_entry::max
struct ipa_control_value_entry max
Definition ipa_controls.h:55
libcamera::ipa_control_info_entry::def
struct ipa_control_value_entry def
Definition ipa_controls.h:56
libcamera::ipa_control_info_entry::min
struct ipa_control_value_entry min
Definition ipa_controls.h:54
libcamera::ipa_control_info_entry::padding
uint8_t padding[7]
Definition ipa_controls.h:53
libcamera::ipa_control_list_entry
Description of a serialized ControlList entry.
Definition ipa_controls.h:44
libcamera::ipa_control_list_entry::id
uint32_t id
Definition ipa_controls.h:45
libcamera::ipa_control_list_entry::value
struct ipa_control_value_entry value
Definition ipa_controls.h:46
libcamera::ipa_control_value_entry
Description of a serialized ControlValue entry.
Definition ipa_controls.h:36
libcamera::ipa_control_value_entry::reserved
uint32_t reserved[2]
Definition ipa_controls.h:41
libcamera::ipa_control_value_entry::type
uint8_t type
Definition ipa_controls.h:37
libcamera::ipa_control_value_entry::count
uint16_t count
Definition ipa_controls.h:39
libcamera::ipa_control_value_entry::is_array
uint8_t is_array
Definition ipa_controls.h:38
libcamera::ipa_control_value_entry::offset
uint32_t offset
Definition ipa_controls.h:40
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