diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/v4l2_subdevice.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_subdevice.h b/include/libcamera/internal/v4l2_subdevice.h index a1d3144c..00be17bb 100644 --- a/include/libcamera/internal/v4l2_subdevice.h +++ b/include/libcamera/internal/v4l2_subdevice.h @@ -61,6 +61,12 @@ public: ActiveFormat = V4L2_SUBDEV_FORMAT_ACTIVE, }; + class Routing : public std::vector<struct v4l2_subdev_route> + { + public: + std::string toString() const; + }; + explicit V4L2Subdevice(const MediaEntity *entity); ~V4L2Subdevice(); @@ -80,6 +86,9 @@ public: int setFormat(unsigned int pad, V4L2SubdeviceFormat *format, Whence whence = ActiveFormat); + int getRouting(Routing *routing, Whence whence = ActiveFormat); + int setRouting(Routing *routing, Whence whence = ActiveFormat); + const std::string &model(); const V4L2SubdeviceCapability &caps() const { return caps_; } |