mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
libcamera: camera: Introduce SensorConfiguration
Introduce SensorConfiguration in the libcamera API. The SensorConfiguration is part of the CameraConfiguration class and allows applications to control the sensor settings. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
9780f46f64
commit
1602043e62
2 changed files with 175 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <initializer_list>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
|
@ -19,6 +20,7 @@
|
|||
#include <libcamera/base/signal.h>
|
||||
|
||||
#include <libcamera/controls.h>
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/request.h>
|
||||
#include <libcamera/stream.h>
|
||||
#include <libcamera/transform.h>
|
||||
|
@ -30,6 +32,30 @@ class FrameBufferAllocator;
|
|||
class PipelineHandler;
|
||||
class Request;
|
||||
|
||||
class SensorConfiguration
|
||||
{
|
||||
public:
|
||||
unsigned int bitDepth = 0;
|
||||
|
||||
Rectangle analogCrop;
|
||||
|
||||
struct {
|
||||
unsigned int binX = 1;
|
||||
unsigned int binY = 1;
|
||||
} binning;
|
||||
|
||||
struct {
|
||||
unsigned int xOddInc = 1;
|
||||
unsigned int xEvenInc = 1;
|
||||
unsigned int yOddInc = 1;
|
||||
unsigned int yEvenInc = 1;
|
||||
} skipping;
|
||||
|
||||
Size outputSize;
|
||||
|
||||
bool isValid() const;
|
||||
};
|
||||
|
||||
class CameraConfiguration
|
||||
{
|
||||
public:
|
||||
|
@ -66,6 +92,7 @@ public:
|
|||
bool empty() const;
|
||||
std::size_t size() const;
|
||||
|
||||
std::optional<SensorConfiguration> sensorConfig;
|
||||
Transform transform;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue