diff options
Diffstat (limited to 'src/v4l2/MediaControl.h')
| -rw-r--r-- | src/v4l2/MediaControl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/v4l2/MediaControl.h b/src/v4l2/MediaControl.h index 80b4ce9..540937f 100644 --- a/src/v4l2/MediaControl.h +++ b/src/v4l2/MediaControl.h @@ -242,6 +242,17 @@ class MediaControl { */ int getVCMI2CAddr(const char* vcmName, std::string* vcmI2CAddr); + // PRIVACY_MODE_S + /** + * \brief Get privacy control device name + * + * \param [out]name: the device name which has privacy control + * + * \return 0 if succeed or error value if error + */ + int getPrivacyDeviceName(std::string* name); + // PRIVACY_MODE_E + /** * \brief Set up media controller pipe * @@ -275,6 +286,7 @@ class MediaControl { // VIRTUAL_CHANNEL_E int getLensName(std::string* lensName); + bool checkAvailableSensor(const std::string& sensorEntityName); bool checkAvailableSensor(const std::string& sensorEntityName, const std::string& sinkEntityName); /** @@ -306,6 +318,7 @@ class MediaControl { int getDevnameFromSysfs(MediaEntity* entity); MediaEntity* getEntityById(uint32_t id); MediaEntity* getEntityByName(const char* name); + bool checkHasSource(const MediaEntity* sink, const std::string& source); // set up entity link. |
