Move ExtCtrlIoctl to UsbCameraProperty::DeviceQuery.

This commit is contained in:
Peter Johnson
2016-12-22 22:44:46 -08:00
parent adbca532c0
commit ced2608afd
3 changed files with 51 additions and 45 deletions

View File

@@ -8,6 +8,7 @@
#ifndef CS_USBCAMERAPROPERTY_H_
#define CS_USBCAMERAPROPERTY_H_
#include <memory>
#include <mutex>
#ifdef __linux__
@@ -45,6 +46,8 @@ class UsbCameraProperty : public PropertyImpl {
#endif
UsbCameraProperty(const struct v4l2_queryctrl& ctrl);
static std::unique_ptr<UsbCameraProperty> DeviceQuery(int fd, __u32* id);
bool DeviceGet(std::unique_lock<std::mutex>& lock, int fd);
bool DeviceSet(std::unique_lock<std::mutex>& lock, int fd) const;
bool DeviceSet(std::unique_lock<std::mutex>& lock, int fd, int newValue,