libcamera v0.0.0+1-ab0bf965
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
15namespace 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 TestPattern control value with the indexes of the corresponding sensor test p...
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