MF Discovery extended

This commit is contained in:
Paulchen Panther
2021-05-19 19:59:54 +02:00
parent 8d8ee8b3cd
commit 5f0ad931ba
5 changed files with 162 additions and 119 deletions

View File

@@ -49,6 +49,16 @@ public:
GUID guid = GUID_NULL;
};
struct DeviceControls
{
QString property = QString();
int minValue = 0;
int maxValue = 0;
int step = 0;
int default = 0;
int currentValue = 0;
};
MFGrabber();
~MFGrabber() override;
@@ -91,6 +101,7 @@ private:
QString _currentDeviceName,
_newDeviceName;
QMap<QString, QList<DeviceProperties>> _deviceProperties;
QMap<QString, QList<DeviceControls>> _deviceControls;
HRESULT _hr;
IMFSourceReader* _sourceReader;
SourceReaderCB* _sourceReaderCB;