libcamera v0.4.0
Supporting cameras in Linux since 2019
 
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
15#include <libcamera/geometry.h>
16
17namespace libcamera {
18
20 struct SensorDelays {
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 */
Describe a two-dimensional size.
Definition geometry.h:53
Camera controls identifiers.
Data structures related to geometric objects.
Top-level libcamera namespace.
Definition backtrace.h:17
Sensor control application delay values.
Definition camera_sensor_properties.h:20
uint8_t exposureDelay
Number of frames between application of exposure control and effect.
Definition camera_sensor_properties.h:21
uint8_t vblankDelay
Number of frames between application of vblank control and effect.
Definition camera_sensor_properties.h:23
uint8_t gainDelay
Number of frames between application of analogue gain control and effect.
Definition camera_sensor_properties.h:22
uint8_t hblankDelay
Number of frames between application of hblank control and effect.
Definition camera_sensor_properties.h:24
Database of camera sensor properties.
Definition camera_sensor_properties.h:19
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
SensorDelays sensorDelays
Sensor control application delays.
Definition camera_sensor_properties.h:31
static const CameraSensorProperties * get(const std::string &sensor)
Retrieve the properties associated with a sensor.
Definition camera_sensor_properties.cpp:81
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition camera_sensor_properties.h:29