libcamera v0.7.0+1595-4b6c47bd-nvm
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#include <string_view>
17
18#include <libcamera/controls.h>
19
20namespace libcamera {
21
22namespace properties {
23
24extern const ControlIdMap properties;
25
26
27enum {
28 LOCATION = 1,
29 ROTATION = 2,
30 MODEL = 3,
31 UNIT_CELL_SIZE = 4,
32 PIXEL_ARRAY_SIZE = 5,
33 PIXEL_ARRAY_OPTICAL_BLACK_RECTANGLES = 6,
34 PIXEL_ARRAY_ACTIVE_AREAS = 7,
35 SCALER_CROP_MAXIMUM = 8,
36 SENSOR_SENSITIVITY = 9,
37 SYSTEM_DEVICES = 10,
38 PIPELINE_HANDLER = 11,
39};
40
41
47extern const std::array<const ControlValue, 3> LocationValues;
48extern const std::map<std::string, int32_t> LocationNameValueMap;
49extern const Control<int32_t> Location;
50#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_LOCATION
51extern const Control<int32_t> Rotation;
52#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_ROTATION
54#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_MODEL
55extern const Control<Size> UnitCellSize;
56#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_UNIT_CELL_SIZE
57extern const Control<Size> PixelArraySize;
58#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_PIXEL_ARRAY_SIZE
60#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_PIXEL_ARRAY_OPTICAL_BLACK_RECTANGLES
62#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_PIXEL_ARRAY_ACTIVE_AREAS
64#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_SCALER_CROP_MAXIMUM
66#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_SENSOR_SENSITIVITY
68#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_SYSTEM_DEVICES
70#define LIBCAMERA_HAS_LIBCAMERA_VENDOR_PROPERTIES_PIPELINE_HANDLER
71
72namespace draft {
73
74#define LIBCAMERA_HAS_DRAFT_VENDOR_PROPERTIES
75
76
77enum {
78 COLOR_FILTER_ARRANGEMENT = 10001,
79};
80
81
83 RGGB = 0,
84 GRBG = 1,
85 GBRG = 2,
86 BGGR = 3,
87 RGB = 4,
88 MONO = 5,
89};
90extern const std::array<const ControlValue, 6> ColorFilterArrangementValues;
91extern const std::map<std::string, int32_t> ColorFilterArrangementNameValueMap;
93#define LIBCAMERA_HAS_DRAFT_VENDOR_PROPERTIES_COLOR_FILTER_ARRANGEMENT
94
95} /* namespace draft */
96
97} /* namespace properties */
98
99} /* namespace libcamera */
Describe a control and its intrinsic properties.
Definition controls.h:313
Vector class.
Definition vector.h:35
Framework to manage controls related to an object.
const std::map< std::string, int32_t > ColorFilterArrangementNameValueMap
Map of all ColorFilterArrangement supported value names (in std::string format) to value.
const std::array< const ControlValue, 6 > ColorFilterArrangementValues
List of all ColorFilterArrangement supported values.
const Control< int32_t > ColorFilterArrangement
The arrangement of color filters on sensor; represents the colors in the top-left 2x2 section of the ...
ColorFilterArrangementEnum
Supported ColorFilterArrangement values.
Definition property_ids.h:82
@ GBRG
GBRG Bayer pattern.
Definition property_ids.h:85
@ GRBG
GRBG Bayer pattern.
Definition property_ids.h:84
@ MONO
Sensor is not Bayer; output consists of a single colour channel.
Definition property_ids.h:88
@ RGGB
RGGB Bayer pattern.
Definition property_ids.h:83
@ BGGR
BGGR Bayer pattern.
Definition property_ids.h:86
const ControlIdMap properties
List of all supported libcamera properties.
Definition property_ids.cpp:855
const Control< std::string_view > Model
The model name shall to the extent possible describe the sensor. For most devices this is the model n...
LocationEnum
Supported Location values.
Definition property_ids.h:42
@ CameraLocationFront
The camera is mounted on the front side of the device, facing the user.
Definition property_ids.h:43
@ CameraLocationBack
The camera is mounted on the back side of the device, facing away from the user.
Definition property_ids.h:44
@ CameraLocationExternal
The camera is attached to the device in a way that allows it to be moved freely.
Definition property_ids.h:45
const Control< Span< const Rectangle > > PixelArrayOpticalBlackRectangles
The pixel array region(s) which contain optical black pixels considered valid for calibration purpose...
const std::array< const ControlValue, 3 > LocationValues
List of all Location supported values.
const Control< int32_t > Rotation
The camera physical mounting rotation. It is expressed as the angular difference in degrees between t...
const Control< std::string_view > PipelineHandler
The name of the pipeline handler that manages this camera device.o.
Definition camera.h:161
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 ...
const Control< Rectangle > ScalerCropMaximum
The maximum valid rectangle for the controls::ScalerCrop control. This reflects the minimum mandatory...
const Control< Size > PixelArraySize
The camera sensor pixel array readable area vertical and horizontal sizes, in pixels.
const Control< float > SensorSensitivity
The relative sensitivity of the chosen sensor mode.
const std::map< std::string, int32_t > LocationNameValueMap
Map of all Location supported value names (in std::string format) to value.
const Control< Size > UnitCellSize
The pixel unit cell physical size, in nanometers.
const Control< Span< const Rectangle > > PixelArrayActiveAreas
The PixelArrayActiveAreas property defines the (possibly multiple and overlapping) portions of the ca...
const Control< int32_t > Location
Camera mounting location.
Top-level libcamera namespace.
Definition backtrace.h:17
std::unordered_map< unsigned int, const ControlId * > ControlIdMap
A map of numerical control ID to ControlId.
Definition controls.h:362