libcamera
v0.7.2
Supporting cameras in Linux since 2019
Toggle main menu visibility
Loading...
Searching...
No Matches
camera_sensor_properties.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
/*
3
* Copyright (C) 2021, Google Inc.
4
*
5
* Database of camera sensor properties
6
*/
7
8
#pragma once
9
10
#include <map>
11
#include <stdint.h>
12
#include <string>
13
14
#include <
libcamera/control_ids.h
>
15
#include <
libcamera/geometry.h
>
16
17
namespace
libcamera
{
18
19
struct
CameraSensorProperties
{
20
struct
SensorDelays
{
21
uint8_t
exposureDelay
;
22
uint8_t
gainDelay
;
23
uint8_t
vblankDelay
;
24
uint8_t
hblankDelay
;
25
};
26
27
static
const
CameraSensorProperties
*
get
(
const
std::string &sensor);
28
29
Size
unitCellSize
;
30
std::map<controls::draft::TestPatternModeEnum, int32_t>
testPatternModes
;
31
SensorDelays
sensorDelays
;
32
};
33
34
}
/* namespace libcamera */
libcamera::Size
Describe a two-dimensional size.
Definition
geometry.h:51
control_ids.h
Camera controls identifiers.
geometry.h
Data structures related to geometric objects.
libcamera
Top-level libcamera namespace.
Definition
backtrace.h:17
libcamera::CameraSensorProperties::SensorDelays
Sensor control application delay values.
Definition
camera_sensor_properties.h:20
libcamera::CameraSensorProperties::SensorDelays::exposureDelay
uint8_t exposureDelay
Number of frames between application of exposure control and effect.
Definition
camera_sensor_properties.h:21
libcamera::CameraSensorProperties::SensorDelays::vblankDelay
uint8_t vblankDelay
Number of frames between application of vblank control and effect.
Definition
camera_sensor_properties.h:23
libcamera::CameraSensorProperties::SensorDelays::gainDelay
uint8_t gainDelay
Number of frames between application of analogue gain control and effect.
Definition
camera_sensor_properties.h:22
libcamera::CameraSensorProperties::SensorDelays::hblankDelay
uint8_t hblankDelay
Number of frames between application of hblank control and effect.
Definition
camera_sensor_properties.h:24
libcamera::CameraSensorProperties
Database of camera sensor properties.
Definition
camera_sensor_properties.h:19
libcamera::CameraSensorProperties::testPatternModes
std::map< controls::draft::TestPatternModeEnum, int32_t > testPatternModes
Map that associates the TestPattern control value with the indexes of the corresponding sensor test p...
Definition
camera_sensor_properties.h:30
libcamera::CameraSensorProperties::sensorDelays
SensorDelays sensorDelays
Sensor control application delays.
Definition
camera_sensor_properties.h:31
libcamera::CameraSensorProperties::get
static const CameraSensorProperties * get(const std::string &sensor)
Retrieve the properties associated with a sensor.
Definition
camera_sensor_properties.cpp:81
libcamera::CameraSensorProperties::unitCellSize
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition
camera_sensor_properties.h:29
include
libcamera
internal
camera_sensor_properties.h
Generated by
1.18.0