Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsMultimediaUtils Namespace Reference

Functions

Q_MULTIMEDIA_EXPORT QVideoFrameFormat::PixelFormat pixelFormatFromMediaSubtype (const GUID &subtype)
 
Q_MULTIMEDIA_EXPORT GUID videoFormatForCodec (QMediaFormat::VideoCodec codec)
 
Q_MULTIMEDIA_EXPORT QMediaFormat::VideoCodec codecForVideoFormat (GUID format)
 
Q_MULTIMEDIA_EXPORT GUID audioFormatForCodec (QMediaFormat::AudioCodec codec)
 
Q_MULTIMEDIA_EXPORT QMediaFormat::AudioCodec codecForAudioFormat (GUID format)
 
Q_MULTIMEDIA_EXPORT GUID containerForVideoFileFormat (QMediaFormat::FileFormat format)
 
Q_MULTIMEDIA_EXPORT GUID containerForAudioFileFormat (QMediaFormat::FileFormat format)
 
Q_MULTIMEDIA_EXPORT QString errorString (HRESULT hr)
 

Function Documentation

◆ audioFormatForCodec()

GUID QWindowsMultimediaUtils::audioFormatForCodec ( QMediaFormat::AudioCodec  codec)

Definition at line 119 of file qwindowsmultimediautils.cpp.

References QMediaFormat::AAC, QMediaFormat::AC3, QMediaFormat::ALAC, codec, QMediaFormat::EAC3, QMediaFormat::FLAC, QMediaFormat::MP3, QMediaFormat::Opus, QMediaFormat::Vorbis, QMediaFormat::Wave, and QMediaFormat::WMA.

Referenced by QWindowsMediaDeviceSession::startRecording().

+ Here is the caller graph for this function:

◆ codecForAudioFormat()

QMediaFormat::AudioCodec QWindowsMultimediaUtils::codecForAudioFormat ( GUID  format)

Definition at line 147 of file qwindowsmultimediautils.cpp.

References QMediaFormat::AAC, QMediaFormat::AC3, QMediaFormat::ALAC, QMediaFormat::EAC3, QMediaFormat::FLAC, QMediaFormat::MP3, QMediaFormat::Opus, QMediaFormat::Unspecified, QMediaFormat::Vorbis, QMediaFormat::Wave, and QMediaFormat::WMA.

Referenced by codecForFormat(), and metaDataValue().

+ Here is the caller graph for this function:

◆ codecForVideoFormat()

QMediaFormat::VideoCodec QWindowsMultimediaUtils::codecForVideoFormat ( GUID  format)

Definition at line 89 of file qwindowsmultimediautils.cpp.

References QMediaFormat::AV1, QMediaFormat::H264, QMediaFormat::H265, QMediaFormat::MotionJPEG, QMediaFormat::MPEG1, QMediaFormat::MPEG2, QMediaFormat::MPEG4, QMediaFormat::Unspecified, QMediaFormat::VP8, QMediaFormat::VP9, and QMediaFormat::WMV.

Referenced by codecForFormat(), and metaDataValue().

+ Here is the caller graph for this function:

◆ containerForAudioFileFormat()

GUID QWindowsMultimediaUtils::containerForAudioFileFormat ( QMediaFormat::FileFormat  format)

◆ containerForVideoFileFormat()

GUID QWindowsMultimediaUtils::containerForVideoFileFormat ( QMediaFormat::FileFormat  format)

Definition at line 174 of file qwindowsmultimediautils.cpp.

References QMediaFormat::AVI, QMediaFormat::MPEG4, QMM_MFTranscodeContainerType_ASF, QMM_MFTranscodeContainerType_AVI, QMM_MFTranscodeContainerType_MPEG4, and QMediaFormat::WMV.

Referenced by QWindowsMediaDeviceSession::startRecording().

+ Here is the caller graph for this function:

◆ errorString()

QString QWindowsMultimediaUtils::errorString ( HRESULT  hr)

Definition at line 208 of file qwindowsmultimediautils.cpp.

References QString::fromStdString(), and QStringLiteral.

Referenced by calculateVideoFrameStride(), createCaptureFramePool(), createScreenCaptureItem(), createWindowCaptureItem(), findScreen(), findScreenForWindow(), QUwpTextureVideoBuffer::map(), setCameraReaderFormat(), and QUwpTextureVideoBuffer::unmap().

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

◆ pixelFormatFromMediaSubtype()

◆ videoFormatForCodec()

GUID QWindowsMultimediaUtils::videoFormatForCodec ( QMediaFormat::VideoCodec  codec)

Definition at line 61 of file qwindowsmultimediautils.cpp.

References QMediaFormat::AV1, codec, QMediaFormat::H264, QMediaFormat::H265, QMediaFormat::MotionJPEG, QMediaFormat::MPEG1, QMediaFormat::MPEG2, QMediaFormat::MPEG4, QMediaFormat::VP8, QMediaFormat::VP9, and QMediaFormat::WMV.

Referenced by QWindowsMediaDeviceSession::startRecording().

+ Here is the caller graph for this function: