13 #include <linux/media.h> 28 unsigned int id()
const {
return id_; }
48 unsigned int flags()
const {
return flags_; }
49 int setEnabled(
bool enable);
51 std::string toString()
const;
58 MediaLink(
const struct media_v2_link *link,
71 unsigned int index()
const {
return index_; }
73 unsigned int flags()
const {
return flags_; }
74 const std::vector<MediaLink *> &
links()
const {
return links_; }
78 std::string toString()
const;
91 std::vector<MediaLink *> links_;
106 const std::string &
name()
const {
return name_; }
107 unsigned int function()
const {
return function_; }
108 unsigned int flags()
const {
return flags_; }
110 const std::string &
deviceNode()
const {
return deviceNode_; }
114 const std::vector<MediaPad *> &
pads()
const {
return pads_; }
117 const MediaPad *getPadByIndex(
unsigned int index)
const;
118 const MediaPad *getPadById(
unsigned int id)
const;
120 int setDeviceNode(
const std::string &deviceNode);
128 const struct media_v2_interface *iface);
132 void addAncillaryEntity(
MediaEntity *ancillaryEntity);
135 unsigned int function_;
138 std::string deviceNode_;
142 std::vector<MediaPad *> pads_;
143 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.
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition: geometry.cpp:91
A V4L2 subdevice as exposed by the Linux kernel.
Definition: v4l2_subdevice.h:73