Add properties covering the sensor control application delays to both the static CameraSensorProperties definitions. The values used are taken from Raspberry Pi's CamHelper class definitions. Where no more specific values are known the delay struct is defined as empty and defaults supplied through the getter function. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
34 lines
672 B
C++
34 lines
672 B
C++
/* 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 */
|