libcamera: include/libcamera/internal/camera_sensor_properties.h Source File

libcamera v0.0.5 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 * camera_sensor_properties.h - Database of camera sensor properties
6 */
7
8#pragma once
9
10#include <map>
11#include <string>
12
13#include <libcamera/control_ids.h>
14#include <libcamera/geometry.h>
15
16namespace libcamera {
17
18 struct CameraSensorProperties {
19 static const CameraSensorProperties *get(const std::string &sensor);
20
21 Size unitCellSize;
22 std::map<controls::draft::TestPatternModeEnum, int32_t> testPatternModes;
23};
24
25} /* namespace libcamera */
libcamera::Size
Describe a two-dimensional size.
Definition: geometry.h:53
control_ids.h
Camera control identifiers.
geometry.h
Data structures related to geometric objects.
libcamera
Top-level libcamera namespace.
Definition: backtrace.h:17
libcamera::CameraSensorProperties
Database of camera sensor properties.
Definition: camera_sensor_properties.h:18
libcamera::CameraSensorProperties::get
static const CameraSensorProperties * get(const std::string &sensor)
Retrieve the properties associated with a sensor.
Definition: camera_sensor_properties.cpp:52
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:22
libcamera::CameraSensorProperties::unitCellSize
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition: camera_sensor_properties.h:21