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_; }
45 const std::vector<MediaEntity *> &
entities()
const {
return entities_; }
48 MediaLink *
link(
const std::string &sourceName,
unsigned int sourceIdx,
49 const std::string &sinkName,
unsigned int sinkIdx);
68 struct media_v2_interface *findInterface(
const struct media_v2_topology &topology,
69 unsigned int entityId);
70 bool populateEntities(
const struct media_v2_topology &topology);
71 bool populatePads(
const struct media_v2_topology &topology);
72 bool populateLinks(
const struct media_v2_topology &topology);
73 void fixupEntityFlags(
struct media_v2_entity *entity);
79 std::string deviceNode_;
81 unsigned int version_;
88 std::map<unsigned int, MediaObject *> objects_;
89 std::vector<MediaEntity *> entities_;
Base class to support log message extensions.
Definition: log.h:83
Generic signal and slot communication mechanism.
Definition: signal.h:39
Signal & slot implementation.