7 #ifndef __LIBCAMERA_INTERNAL_MEDIA_DEVICE_H__ 8 #define __LIBCAMERA_INTERNAL_MEDIA_DEVICE_H__ 15 #include <linux/media.h> 32 bool busy()
const {
return acquired_; }
38 bool valid()
const {
return valid_; }
40 const std::string
driver()
const {
return driver_; }
41 const std::string
deviceNode()
const {
return deviceNode_; }
42 const std::string
model()
const {
return model_; }
43 unsigned int version()
const {
return version_; }
46 const std::vector<MediaEntity *> &
entities()
const {
return entities_; }
49 MediaLink *
link(
const std::string &sourceName,
unsigned int sourceIdx,
50 const std::string &sinkName,
unsigned int sinkIdx);
69 struct media_v2_interface *findInterface(
const struct media_v2_topology &topology,
70 unsigned int entityId);
71 bool populateEntities(
const struct media_v2_topology &topology);
72 bool populatePads(
const struct media_v2_topology &topology);
73 bool populateLinks(
const struct media_v2_topology &topology);
74 void fixupEntityFlags(
struct media_v2_entity *entity);
77 int setupLink(
const MediaLink *link,
unsigned int flags);
80 std::string deviceNode_;
82 unsigned int version_;
83 unsigned int hwRevision_;
90 std::map<unsigned int, MediaObject *> objects_;
91 std::vector<MediaEntity *> entities_;
Base class to support log message extensions.
Definition: log.h:84
Top-level libcamera namespace.
Definition: bound_method.h:15
Signal & slot implementation.
Generic signal and slot communication mechanism.
Definition: object.h:20