Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QLinuxMediaDevice Class Reference

#include <qlinuxmediadevice.h>

+ Collaboration diagram for QLinuxMediaDevice:

Classes

class  CaptureSubDevice
 
class  OutputSubDevice
 

Public Member Functions

 QLinuxMediaDevice (const QString &devicePath)
 
 ~QLinuxMediaDevice ()
 
QString model ()
 
QString deviceName ()
 
bool resetLinks ()
 
struct media_link * parseLink (const QString &link)
 
struct media_pad * parsePad (const QString &pad)
 
bool enableLink (struct media_link *link)
 
bool disableLink (struct media_link *link)
 
struct media_entity * getEntity (const QString &name)
 
int openVideoDevice (const QString &name)
 

Static Public Member Functions

static int openVideoDevice (media_pad *pad)
 
static bool setSubdevFormat (struct media_pad *pad, const QSize &size, uint32_t mbusFormat=MEDIA_BUS_FMT_ARGB8888_1X32)
 
static bool setSubdevAlpha (int subdevFd, qreal alpha)
 
static bool setSubdevSelection (struct media_pad *pad, const QRect &geometry, uint target)
 
static bool setSubdevCrop (struct media_pad *pad, const QRect &geometry)
 
static bool setSubdevCompose (struct media_pad *pad, const QRect &geometry)
 

Detailed Description

Definition at line 17 of file qlinuxmediadevice.h.

Constructor & Destructor Documentation

◆ QLinuxMediaDevice()

QLinuxMediaDevice::QLinuxMediaDevice ( const QString & devicePath)

Definition at line 156 of file qlinuxmediadevice.cpp.

References deviceName(), model(), qCDebug, qFatal, and resetLinks().

+ Here is the call graph for this function:

◆ ~QLinuxMediaDevice()

QLinuxMediaDevice::~QLinuxMediaDevice ( )

Definition at line 175 of file qlinuxmediadevice.cpp.

Member Function Documentation

◆ deviceName()

QString QLinuxMediaDevice::deviceName ( )

Definition at line 186 of file qlinuxmediadevice.cpp.

References QString::split().

Referenced by QLinuxMediaDevice(), openVideoDevice(), and openVideoDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ disableLink()

bool QLinuxMediaDevice::disableLink ( struct media_link * link)

Definition at line 231 of file qlinuxmediadevice.cpp.

References qWarning.

Referenced by QVsp2BlendingDevice::disableInput().

+ Here is the caller graph for this function:

◆ enableLink()

bool QLinuxMediaDevice::enableLink ( struct media_link * link)

Definition at line 222 of file qlinuxmediadevice.cpp.

References qWarning.

Referenced by QVsp2BlendingDevice::enableInput().

+ Here is the caller graph for this function:

◆ getEntity()

struct media_entity * QLinuxMediaDevice::getEntity ( const QString & name)

Definition at line 261 of file qlinuxmediadevice.cpp.

References qWarning, and safeGetEntity().

Referenced by openVideoDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ model()

QString QLinuxMediaDevice::model ( )

Definition at line 181 of file qlinuxmediadevice.cpp.

Referenced by QLinuxMediaDevice().

+ Here is the caller graph for this function:

◆ openVideoDevice() [1/2]

int QLinuxMediaDevice::openVideoDevice ( const QString & name)

Definition at line 271 of file qlinuxmediadevice.cpp.

References deviceName(), getEntity(), open(), and qCDebug.

Referenced by QVsp2BlendingDevice::QVsp2BlendingDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openVideoDevice() [2/2]

int QLinuxMediaDevice::openVideoDevice ( media_pad * pad)
static

Definition at line 521 of file qlinuxmediadevice.cpp.

References deviceName(), open(), and qCDebug.

+ Here is the call graph for this function:

◆ parseLink()

struct media_link * QLinuxMediaDevice::parseLink ( const QString & link)

Definition at line 201 of file qlinuxmediadevice.cpp.

References qWarning, and QString::toStdString().

+ Here is the call graph for this function:

◆ parsePad()

struct media_pad * QLinuxMediaDevice::parsePad ( const QString & pad)

Definition at line 212 of file qlinuxmediadevice.cpp.

References qWarning, and QString::toStdString().

+ Here is the call graph for this function:

◆ resetLinks()

bool QLinuxMediaDevice::resetLinks ( )

Definition at line 191 of file qlinuxmediadevice.cpp.

References qCDebug, and qWarning.

Referenced by QLinuxMediaDevice().

+ Here is the caller graph for this function:

◆ setSubdevAlpha()

bool QLinuxMediaDevice::setSubdevAlpha ( int subdevFd,
qreal alpha )
static

Definition at line 552 of file qlinuxmediadevice.cpp.

References qErrnoWarning().

Referenced by QVsp2BlendingDevice::setInputAlpha().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSubdevCompose()

bool QLinuxMediaDevice::setSubdevCompose ( struct media_pad * pad,
const QRect & geometry )
static

Definition at line 587 of file qlinuxmediadevice.cpp.

References setSubdevSelection().

Referenced by QVsp2BlendingDevice::setInputPosition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSubdevCrop()

bool QLinuxMediaDevice::setSubdevCrop ( struct media_pad * pad,
const QRect & geometry )
static

Definition at line 582 of file qlinuxmediadevice.cpp.

References setSubdevSelection().

+ Here is the call graph for this function:

◆ setSubdevFormat()

bool QLinuxMediaDevice::setSubdevFormat ( struct media_pad * pad,
const QSize & size,
uint32_t mbusFormat = MEDIA_BUS_FMT_ARGB8888_1X32 )
static

Definition at line 529 of file qlinuxmediadevice.cpp.

References mediaBusFmtToString(), Q_ASSERT, qCDebug, and qWarning.

Referenced by QVsp2BlendingDevice::QVsp2BlendingDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSubdevSelection()

bool QLinuxMediaDevice::setSubdevSelection ( struct media_pad * pad,
const QRect & geometry,
uint target )
static

Definition at line 564 of file qlinuxmediadevice.cpp.

References QRect::height(), QRect::isValid(), QRect::left(), Q_ASSERT, qWarning, rect, ret, QRect::top(), and QRect::width().

Referenced by setSubdevCompose(), and setSubdevCrop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: