44 using Formats = std::map<unsigned int, std::vector<SizeRange>>;
58 int getSelection(
unsigned int pad,
unsigned int target,
60 int setSelection(
unsigned int pad,
unsigned int target,
63 Formats formats(
unsigned int pad);
66 Whence whence = ActiveFormat);
68 Whence whence = ActiveFormat);
70 const std::string &model();
72 static std::unique_ptr<V4L2Subdevice>
73 fromEntityName(
const MediaDevice *media,
const std::string &entity);
76 std::string logPrefix()
const override;
81 std::vector<unsigned int> enumPadCodes(
unsigned int pad);
82 std::vector<SizeRange> enumPadSizes(
unsigned int pad,
Utilities to help constructing class interfaces.
Base class for V4L2VideoDevice and V4L2Subdevice.
Definition: v4l2_device.h:29
The format operation applies to TRY formats.
Definition: v4l2_subdevice.h:48
Class and enums to represent color spaces.
Top-level libcamera namespace.
Definition: backtrace.h:17
const MediaEntity * entity() const
Retrieve the media entity associated with the subdevice.
Definition: v4l2_subdevice.h:56
Describe a two-dimensional size.
Definition: geometry.h:52
std::map< unsigned int, std::vector< SizeRange > > Formats
A map of supported media bus formats to frame sizes.
Definition: v4l2_subdevice.h:44
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
Describe a rectangle's position and dimensions.
Definition: geometry.h:242
Common base for V4L2 devices and subdevices.
The format operation applies to ACTIVE formats.
Definition: v4l2_subdevice.h:47
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition: geometry.cpp:91
Data structures related to geometric objects.
Whence
Specify the type of format for getFormat() and setFormat() operations.
Definition: v4l2_subdevice.h:46
A V4L2 subdevice as exposed by the Linux kernel.
Definition: v4l2_subdevice.h:41