7 #ifndef __LIBCAMERA_INTERNAL_CAMERA_SENSOR_H__ 8 #define __LIBCAMERA_INTERNAL_CAMERA_SENSOR_H__ 25 struct V4L2SubdeviceFormat;
51 const std::string &
model()
const {
return model_; }
53 const std::vector<unsigned int> &
mbusCodes()
const {
return mbusCodes_; }
54 const std::vector<Size> &
sizes()
const {
return sizes_; }
58 const Size &size)
const;
62 ControlList getControls(
const std::vector<uint32_t> &ids);
69 std::string logPrefix()
const override;
73 std::unique_ptr<V4L2Subdevice> subdev_;
80 std::vector<unsigned int> mbusCodes_;
81 std::vector<Size> sizes_;
uint64_t pixelRate
The number of pixels produced in a second.
Definition: camera_sensor.h:36
Report the image sensor characteristics.
Definition: camera_sensor.h:27
const std::vector< Size > & sizes() const
Retrieve the frame sizes supported by the camera sensor.
Definition: camera_sensor.h:54
const std::vector< unsigned int > & mbusCodes() const
Retrieve the media bus codes supported by the camera sensor.
Definition: camera_sensor.h:53
const std::string & model() const
Retrieve the sensor model name.
Definition: camera_sensor.h:51
Base class to support log message extensions.
Definition: log.h:82
const Size & resolution() const
Retrieve the camera sensor resolution.
Definition: camera_sensor.h:55
Definition: bound_method.h:15
Rectangle analogCrop
The portion of the pixel array active area which is read-out and processed.
Definition: camera_sensor.h:33
Describe a two-dimensional size.
Definition: geometry.h:30
const ControlList & properties() const
Retrieve the camera sensor properties.
Definition: camera_sensor.h:65
Size outputSize
The size of the images produced by the camera sensor.
Definition: camera_sensor.h:34
A map of ControlId to ControlInfo.
Definition: controls.h:296
Describe a rectangle's position and dimensions.
Definition: geometry.h:15
std::string model
The image sensor model name.
Definition: camera_sensor.h:28
A camera sensor based on V4L2 subdevices.
Definition: camera_sensor.h:40
uint32_t lineLength
Total line length in pixels.
Definition: camera_sensor.h:37
uint32_t bitsPerPixel
The number of bits per pixel of the image format produced by the image sensor.
Definition: camera_sensor.h:30
const MediaEntity * entity() const
Retrieve the sensor media entity.
Definition: camera_sensor.h:52
const ControlIdMap controls
List of all supported libcamera controls.
Definition: control_ids.cpp:291
Associate a list of ControlId with their values for an object.
Definition: controls.h:341
Framework to manage controls related to an object.
Data structures related to geometric objects.
Size activeAreaSize
The size of the pixel array active area of the sensor.
Definition: camera_sensor.h:32