Loading...
Searching...
No Matches
camera_sensor_properties.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Google Inc.
*
* Database of camera sensor properties
*/
#pragma once
#include <map>
#include <stdint.h>
#include <string>
#include <libcamera/control_ids.h>
#include <libcamera/geometry.h>
namespace libcamera {
struct CameraSensorProperties {
struct SensorDelays {
uint8_t exposureDelay;
uint8_t gainDelay;
uint8_t vblankDelay;
uint8_t hblankDelay;
};
static const CameraSensorProperties *get(const std::string &sensor);
Size unitCellSize;
std::map<controls::draft::TestPatternModeEnum, int32_t> testPatternModes;
SensorDelays sensorDelays;
};
} /* namespace libcamera */
libcamera::Size
Describe a two-dimensional size.
Definition geometry.h:51
control_ids.h
Camera controls identifiers.
geometry.h
Data structures related to geometric objects.
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::CameraSensorProperties::SensorDelays
Sensor control application delay values.
Definition camera_sensor_properties.h:20
libcamera::CameraSensorProperties::SensorDelays::exposureDelay
uint8_t exposureDelay
Number of frames between application of exposure control and effect.
Definition camera_sensor_properties.h:21
libcamera::CameraSensorProperties::SensorDelays::vblankDelay
uint8_t vblankDelay
Number of frames between application of vblank control and effect.
Definition camera_sensor_properties.h:23
libcamera::CameraSensorProperties::SensorDelays::gainDelay
uint8_t gainDelay
Number of frames between application of analogue gain control and effect.
Definition camera_sensor_properties.h:22
libcamera::CameraSensorProperties::SensorDelays::hblankDelay
uint8_t hblankDelay
Number of frames between application of hblank control and effect.
Definition camera_sensor_properties.h:24
libcamera::CameraSensorProperties
Database of camera sensor properties.
Definition camera_sensor_properties.h:19
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:30
libcamera::CameraSensorProperties::sensorDelays
SensorDelays sensorDelays
Sensor control application delays.
Definition camera_sensor_properties.h:31
libcamera::CameraSensorProperties::get
static const CameraSensorProperties * get(const std::string &sensor)
Retrieve the properties associated with a sensor.
Definition camera_sensor_properties.cpp:81
libcamera::CameraSensorProperties::unitCellSize
Size unitCellSize
The physical size of a pixel, including pixel edges, in nanometers.
Definition camera_sensor_properties.h:29