blob: 542674b95b46a36d8f90e2cacf6cfa411b6a7609 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef MEDIADEVICE_H
#define MEDIADEVICE_H
#include <QString>
#include <QStringList>
#include <QList>
enum MediaDeviceStreamDirection
{
CAPTURE,
PLAYBACK
};
struct MediaDeviceInfo
{
QString device;
QString humanReadable;
int index;
// Compressed formats this device can deliver by itself, as FFmpeg codec
// names, most preferred first. Filled in for cameras that offer such a
// stream (see VideoDevice::CompressedFormats), empty otherwise.
QStringList compressedFormats;
};
class MediaDevice
{
public:
MediaDevice();
virtual ~MediaDevice();
virtual QList<MediaDeviceInfo> Enumerate(enum MediaDeviceStreamDirection) = 0;
virtual void Capture() = 0;
virtual void Play() = 0;
virtual void Close() = 0;
};
#endif // MEDIADEVICE_H
|