qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
30 struct AVFormatContext;
32 struct AVDeviceInfoList;
void open()
Opens the device again. Never fails.
static QVector< QPair< QString, QString > > getDeviceList()
Get device list with desciption.
std::atomic_int refcount
Number of times the device was opened.
static QVector< QPair< QString, QString > > getRawDeviceListGeneric()
Get raw device list.
static QVector< VideoMode > getScreenModes()
Get list of resolutions and position of screens.
static QVector< VideoMode > getVideoModes(QString devName)
Get the list of video modes for a device.
static bool betterPixelFormat(uint32_t a, uint32_t b)
Compare two pixel formats.
static bool getDefaultInputFormat()
Sets CameraDevice::iformat to default.
AVFormatContext * context
Context of the open device, must always be valid.
static QMutex iformatLock
static QMutex openDeviceLock
Describes a video mode supported by a device.
bool close()
Closes the device. Never fails.
const QString devName
Short name of the device.
static QString getPixelFormatString(uint32_t pixel_format)
Get the name of the pixel format of a video mode.
CameraDevice(const QString &devName, AVFormatContext *context)
static bool isScreen(const QString &devName)
Checks if a device name specifies a display.
static QString getDefaultDeviceName()
Get the default device name.
static QHash< QString, CameraDevice * > openDevices