13 #include <linux/media.h> 28 unsigned int id()
const {
return id_; }
48 unsigned int flags()
const {
return flags_; }
49 int setEnabled(
bool enable);
56 MediaLink(
const struct media_v2_link *link,
67 unsigned int index()
const {
return index_; }
69 unsigned int flags()
const {
return flags_; }
70 const std::vector<MediaLink *> &
links()
const {
return links_; }
85 std::vector<MediaLink *> links_;
98 const std::string &
name()
const {
return name_; }
99 unsigned int function()
const {
return function_; }
100 unsigned int flags()
const {
return flags_; }
102 const std::string &
deviceNode()
const {
return deviceNode_; }
106 const std::vector<MediaPad *> &
pads()
const {
return pads_; }
109 const MediaPad *getPadByIndex(
unsigned int index)
const;
110 const MediaPad *getPadById(
unsigned int id)
const;
112 int setDeviceNode(
const std::string &deviceNode);
120 const struct media_v2_interface *iface);
124 void addAncillaryEntity(
MediaEntity *ancillaryEntity);
127 unsigned int function_;
130 std::string deviceNode_;
134 std::vector<MediaPad *> pads_;
135 std::vector<MediaEntity *> ancillaryEntities_;
Utilities to help constructing class interfaces.
Top-level libcamera namespace.
Definition: backtrace.h:17
V4L2VideoDevice object and API.
Definition: v4l2_videodevice.h:187
#define LIBCAMERA_DISABLE_COPY_AND_MOVE(klass)
Disable copy and move construction and assignment of the klass.
A V4L2 subdevice as exposed by the Linux kernel.
Definition: v4l2_subdevice.h:73