Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 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.

◆ disableLink()

bool QLinuxMediaDevice::disableLink ( struct media_link * link)

Definition at line 231 of file qlinuxmediadevice.cpp.

◆ enableLink()

bool QLinuxMediaDevice::enableLink ( struct media_link * link)

Definition at line 222 of file qlinuxmediadevice.cpp.

Referenced by QVsp2BlendingDevice::QVsp2BlendingDevice(), and 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.

◆ model()

QString QLinuxMediaDevice::model ( )

Definition at line 181 of file qlinuxmediadevice.cpp.

◆ openVideoDevice() [1/2]

int QLinuxMediaDevice::openVideoDevice ( const QString & name)

Definition at line 271 of file qlinuxmediadevice.cpp.

◆ openVideoDevice() [2/2]

int QLinuxMediaDevice::openVideoDevice ( media_pad * pad)
static

Definition at line 521 of file qlinuxmediadevice.cpp.

Referenced by QLinuxMediaDevice::CaptureSubDevice::CaptureSubDevice(), QLinuxMediaDevice::OutputSubDevice::OutputSubDevice(), and QVsp2BlendingDevice::QVsp2BlendingDevice().

Here is the caller graph for this function:

◆ parseLink()

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

Definition at line 201 of file qlinuxmediadevice.cpp.

◆ parsePad()

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

Definition at line 212 of file qlinuxmediadevice.cpp.

◆ resetLinks()

bool QLinuxMediaDevice::resetLinks ( )

Definition at line 191 of file qlinuxmediadevice.cpp.

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.

◆ setSubdevCompose()

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

Definition at line 587 of file qlinuxmediadevice.cpp.

Referenced by QVsp2BlendingDevice::setInputPosition().

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.

◆ 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.

◆ setSubdevSelection()

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

Definition at line 564 of file qlinuxmediadevice.cpp.


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