libcamera  v0.4.0
Supporting cameras in Linux since 2019
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 
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 
30  std::map<controls::draft::TestPatternModeEnum, int32_t> testPatternModes;
32 };
33 
34 } /* namespace libcamera */
SensorDelays sensorDelays
Sensor control application delays.
Definition: camera_sensor_properties.h:31
uint8_t hblankDelay
Number of frames between application of hblank control and effect.
Definition: camera_sensor_properties.h:24
Camera controls identifiers.
Top-level libcamera namespace.
Definition: backtrace.h:17
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
uint8_t vblankDelay
Number of frames between application of vblank control and effect.
Definition: camera_sensor_properties.h:23
Describe a two-dimensional size.
Definition: geometry.h:52
Sensor control application delay values.
Definition: camera_sensor_properties.h:20
uint8_t gainDelay
Number of frames between application of analogue gain control and effect.
Definition: camera_sensor_properties.h:22
Database of camera sensor properties.
Definition: camera_sensor_properties.h:19
Data structures related to geometric objects.
uint8_t exposureDelay
Number of frames between application of exposure control and effect.
Definition: camera_sensor_properties.h:21
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition: camera_sensor_properties.h:29