libcamera v0.5.1 Supporting cameras in Linux since 2019 |

Loading...
Searching...
No Matches
property_ids.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019, Google Inc.
4 *
5 * Properties ID list
6 *
7 * This file is auto-generated. Do not edit.
8 */
9
10#pragma once
11
12#include <array>
13#include <map>
14#include <stdint.h>
15#include <string>
16
17#include <libcamera/controls.h>
18
19 namespace libcamera {
20
21 namespace properties {
22
23 extern const ControlIdMap properties;
24
25
26 enum {
27 LOCATION = 1,
28 ROTATION = 2,
29 MODEL = 3,
30 UNIT_CELL_SIZE = 4,
31 PIXEL_ARRAY_SIZE = 5,
32 PIXEL_ARRAY_OPTICAL_BLACK_RECTANGLES = 6,
33 PIXEL_ARRAY_ACTIVE_AREAS = 7,
34 SCALER_CROP_MAXIMUM = 8,
35 SENSOR_SENSITIVITY = 9,
36 SYSTEM_DEVICES = 10,
37};
38
39
40 enum LocationEnum {
41 CameraLocationFront = 0,
42 CameraLocationBack = 1,
43 CameraLocationExternal = 2,
44};
45 extern const std::array<const ControlValue, 3> LocationValues;
46 extern const std::map<std::string, int32_t> LocationNameValueMap;
47 extern const Control<int32_t> Location;
48 extern const Control<int32_t> Rotation;
49 extern const Control<std::string> Model;
50 extern const Control<Size> UnitCellSize;
51 extern const Control<Size> PixelArraySize;
52 extern const Control<Span<const Rectangle>> PixelArrayOpticalBlackRectangles;
53 extern const Control<Span<const Rectangle>> PixelArrayActiveAreas;
54 extern const Control<Rectangle> ScalerCropMaximum;
55 extern const Control<float> SensorSensitivity;
56 extern const Control<Span<const int64_t>> SystemDevices;
57
58 namespace draft {
59
60#define LIBCAMERA_HAS_DRAFT_VENDOR_PROPERTIES
61
62
63 enum {
64 COLOR_FILTER_ARRANGEMENT = 10001,
65};
66
67
68 enum ColorFilterArrangementEnum {
69 RGGB = 0,
70 GRBG = 1,
71 GBRG = 2,
72 BGGR = 3,
73 RGB = 4,
74 MONO = 5,
75};
76 extern const std::array<const ControlValue, 6> ColorFilterArrangementValues;
77 extern const std::map<std::string, int32_t> ColorFilterArrangementNameValueMap;
78 extern const Control<int32_t> ColorFilterArrangement;
79
80} /* namespace draft */
81
82} /* namespace properties */
83
84} /* namespace libcamera */
libcamera::Control
Describe a control and its intrinsic properties.
Definition controls.h:313
controls.h
Framework to manage controls related to an object.
libcamera::properties::draft
Namespace for draft properties.
Definition property_ids.h:58
libcamera::properties::draft::ColorFilterArrangementValues
const std::array< const ControlValue, 6 > ColorFilterArrangementValues
List of all ColorFilterArrangement supported values.
libcamera::properties::draft::ColorFilterArrangementNameValueMap
const std::map< std::string, int32_t > ColorFilterArrangementNameValueMap
Map of all ColorFilterArrangement supported value names (in std::string format) to value.
libcamera::properties::draft::ColorFilterArrangementEnum
ColorFilterArrangementEnum
Supported ColorFilterArrangement values.
Definition property_ids.h:68
libcamera::properties::draft::RGB
@ RGB
Sensor is not Bayer; output has 3 16-bit values for each pixel, instead of just 1 16-bit value per pi...
Definition property_ids.h:73
libcamera::properties::draft::BGGR
@ BGGR
BGGR Bayer pattern.
Definition property_ids.h:72
libcamera::properties::draft::MONO
@ MONO
Sensor is not Bayer; output consists of a single colour channel.
Definition property_ids.h:74
libcamera::properties::draft::RGGB
@ RGGB
RGGB Bayer pattern.
Definition property_ids.h:69
libcamera::properties::draft::GRBG
@ GRBG
GRBG Bayer pattern.
Definition property_ids.h:70
libcamera::properties::draft::GBRG
@ GBRG
GBRG Bayer pattern.
Definition property_ids.h:71
libcamera::properties::draft::ColorFilterArrangement
const Control< int32_t > ColorFilterArrangement
The arrangement of color filters on sensor; represents the colors in the top-left 2x2 section of the ...
libcamera::properties::properties
const ControlIdMap properties
List of all supported libcamera properties.
Definition property_ids.cpp:844
libcamera::properties::LocationEnum
LocationEnum
Supported Location values.
Definition property_ids.h:40
libcamera::properties::CameraLocationFront
@ CameraLocationFront
The camera is mounted on the front side of the device, facing the user.
Definition property_ids.h:41
libcamera::properties::CameraLocationExternal
@ CameraLocationExternal
The camera is attached to the device in a way that allows it to be moved freely.
Definition property_ids.h:43
libcamera::properties::CameraLocationBack
@ CameraLocationBack
The camera is mounted on the back side of the device, facing away from the user.
Definition property_ids.h:42
libcamera::properties::UnitCellSize
const Control< Size > UnitCellSize
The pixel unit cell physical size, in nanometers.
libcamera::properties::LocationNameValueMap
const std::map< std::string, int32_t > LocationNameValueMap
Map of all Location supported value names (in std::string format) to value.
libcamera::properties::PixelArraySize
const Control< Size > PixelArraySize
The camera sensor pixel array readable area vertical and horizontal sizes, in pixels.
libcamera::properties::Rotation
const Control< int32_t > Rotation
The camera physical mounting rotation. It is expressed as the angular difference in degrees between t...
libcamera::properties::PixelArrayOpticalBlackRectangles
const Control< Span< const Rectangle > > PixelArrayOpticalBlackRectangles
The pixel array region(s) which contain optical black pixels considered valid for calibration purpose...
libcamera::properties::SystemDevices
const Control< Span< const int64_t > > SystemDevices
A list of integer values of type dev_t denoting the major and minor device numbers of the underlying ...
libcamera::properties::ScalerCropMaximum
const Control< Rectangle > ScalerCropMaximum
The maximum valid rectangle for the controls::ScalerCrop control. This reflects the minimum mandatory...
libcamera::properties::Location
const Control< int32_t > Location
Camera mounting location.
libcamera::properties::LocationValues
const std::array< const ControlValue, 3 > LocationValues
List of all Location supported values.
libcamera::properties::SensorSensitivity
const Control< float > SensorSensitivity
The relative sensitivity of the chosen sensor mode.
libcamera::properties::PixelArrayActiveAreas
const Control< Span< const Rectangle > > PixelArrayActiveAreas
The PixelArrayActiveAreas property defines the (possibly multiple and overlapping) portions of the ca...
libcamera::properties::Model
const Control< std::string > Model
The model name shall to the extent possible describe the sensor. For most devices this is the model n...
libcamera
Top-level libcamera namespace.
Definition bound_method.h:15
libcamera::ControlIdMap
std::unordered_map< unsigned int, const ControlId * > ControlIdMap
A map of numerical control ID to ControlId.
Definition controls.h:364