7 #ifndef __LIBCAMERA_INTERNAL_V4L2_SUBDEVICE_H__ 8 #define __LIBCAMERA_INTERNAL_V4L2_SUBDEVICE_H__ 37 using Formats = std::map<unsigned int, std::vector<SizeRange>>;
51 int getSelection(
unsigned int pad,
unsigned int target,
53 int setSelection(
unsigned int pad,
unsigned int target,
56 Formats formats(
unsigned int pad);
59 Whence whence = ActiveFormat);
61 Whence whence = ActiveFormat);
63 static std::unique_ptr<V4L2Subdevice>
64 fromEntityName(
const MediaDevice *media,
const std::string &entity);
67 std::string logPrefix()
const override;
72 std::vector<unsigned int> enumPadCodes(
unsigned int pad);
73 std::vector<SizeRange> enumPadSizes(
unsigned int pad,
Utilities to help constructing class interfaces.
Base class for V4L2VideoDevice and V4L2Subdevice.
Definition: v4l2_device.h:26
The format operation applies to TRY formats.
Definition: v4l2_subdevice.h:41
Top-level libcamera namespace.
Definition: bound_method.h:15
const MediaEntity * entity() const
Retrieve the media entity associated with the subdevice.
Definition: v4l2_subdevice.h:49
Describe a two-dimensional size.
Definition: geometry.h:50
std::map< unsigned int, std::vector< SizeRange > > Formats
A map of supported media bus formats to frame sizes.
Definition: v4l2_subdevice.h:37
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
Describe a rectangle's position and dimensions.
Definition: geometry.h:206
Common base for V4L2 devices and subdevices.
The format operation applies to ACTIVE formats.
Definition: v4l2_subdevice.h:40
Data structures related to geometric objects.
Whence
Specify the type of format for getFormat() and setFormat() operations.
Definition: v4l2_subdevice.h:39
A V4L2 subdevice as exposed by the Linux kernel.
Definition: v4l2_subdevice.h:34