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