libcamera  v0.0.0+3-3b6e2d50-dirty (2022-01-27T16:18:04+08:00)
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  * camera_sensor_properties.h - Database of camera sensor properties
6  */
7 #ifndef __LIBCAMERA_SENSOR_CAMERA_SENSOR_PROPERTIES_H__
8 #define __LIBCAMERA_SENSOR_CAMERA_SENSOR_PROPERTIES_H__
9 
10 #include <map>
11 #include <string>
12 
13 #include <libcamera/geometry.h>
14 
15 namespace libcamera {
16 
18  static const CameraSensorProperties *get(const std::string &sensor);
19 
21  std::map<int32_t, int32_t> testPatternModes;
22 };
23 
24 } /* namespace libcamera */
25 
26 #endif /* __LIBCAMERA_SENSOR_CAMERA_SENSOR_PROPERTIES_H__ */
Describe a two-dimensional size.
Definition: geometry.h:51
Data structures related to geometric objects.
Top-level libcamera namespace.
Definition: bound_method.h:15
Database of camera sensor properties.
Definition: camera_sensor_properties.h:17
static const CameraSensorProperties * get(const std::string &sensor)
Retrieve the properties associated with a sensor.
Definition: camera_sensor_properties.cpp:52
std::map< int32_t, int32_t > testPatternModes
Map that associates the indexes of the sensor test pattern modes as returned by V4L2_CID_TEST_PATTERN...
Definition: camera_sensor_properties.h:21
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition: camera_sensor_properties.h:20