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>.
|
#include <QtMultimedia/qtmultimediaglobal.h>
#include <QtMultimedia/qtvideo.h>
#include <QtMultimedia/private/qmaybe_p.h>
#include <QtCore/qsize.h>
#include <QtCore/qurl.h>
#include <QtGui/rhi/qrhi.h>
Go to the source code of this file.
Classes | |
struct | Fraction |
Functions | |
Q_MULTIMEDIA_EXPORT Fraction | qRealToFraction (qreal value) |
Q_MULTIMEDIA_EXPORT QSize | qCalculateFrameSize (QSize resolution, Fraction pixelAspectRatio) |
Q_MULTIMEDIA_EXPORT QSize | qRotatedFrameSize (QSize size, int rotation) |
QSize | qRotatedFrameSize (QSize size, QtVideo::Rotation rotation) |
Q_MULTIMEDIA_EXPORT QSize | qRotatedFrameSize (const QVideoFrame &frame) |
Q_MULTIMEDIA_EXPORT QUrl | qMediaFromUserInput (QUrl fileName) |
Q_MULTIMEDIA_EXPORT bool | qIsAutoHdrEnabled () |
Q_MULTIMEDIA_EXPORT QRhiSwapChain::Format | qGetRequiredSwapChainFormat (const QVideoFrameFormat &format) |
Q_MULTIMEDIA_EXPORT bool | qShouldUpdateSwapChainFormat (QRhiSwapChain *swapChain, QRhiSwapChain::Format requiredSwapChainFormat) |
Definition at line 44 of file qmultimediautils.cpp.
References QSize::height(), and QSize::width().
Q_MULTIMEDIA_EXPORT QRhiSwapChain::Format qGetRequiredSwapChainFormat | ( | const QVideoFrameFormat & | format | ) |
Definition at line 81 of file qmultimediautils.cpp.
References QRhiSwapChain::HDRExtendedSrgbLinear, and QRhiSwapChain::SDR.
Referenced by QVideoWindowPrivate::render().
Q_MULTIMEDIA_EXPORT bool qIsAutoHdrEnabled | ( | ) |
Definition at line 74 of file qmultimediautils.cpp.
References qEnvironmentVariableIntValue().
Referenced by qShouldUpdateSwapChainFormat().
Definition at line 66 of file qmultimediautils.cpp.
References QUrl::AssumeLocalFile, QDir::currentPath(), QUrl::fromUserInput(), QString::isEmpty(), QUrl::scheme(), QUrl::toString(), and url.
Referenced by QMediaPlayerPrivate::setMedia(), and QAudioDecoder::setSource().
Definition at line 12 of file qmultimediautils.cpp.
References d1, d2, and qAbs().
Referenced by QFFmpeg::adjustFrameRate(), qt_adjusted_frame_duration(), and qt_device_format_pixel_aspect_ratio().
Q_MULTIMEDIA_EXPORT QSize qRotatedFrameSize | ( | const QVideoFrame & | frame | ) |
Definition at line 61 of file qmultimediautils.cpp.
References frame, qRotatedFrameSize(), and QWidget::size.
Definition at line 55 of file qmultimediautils.cpp.
References Q_ASSERT.
Referenced by QVideoFrame::paint(), qImageFromVideoFrame(), qRotatedFrameSize(), qRotatedFrameSize(), and QPlatformVideoSink::setVideoFrame().
|
inline |
Definition at line 44 of file qmultimediautils_p.h.
References qRotatedFrameSize(), and qToUnderlying().
Q_MULTIMEDIA_EXPORT bool qShouldUpdateSwapChainFormat | ( | QRhiSwapChain * | swapChain, |
QRhiSwapChain::Format | requiredSwapChainFormat ) |
Definition at line 90 of file qmultimediautils.cpp.
References QRhiSwapChain::format(), QRhiSwapChain::isFormatSupported(), and qIsAutoHdrEnabled().
Referenced by QVideoWindowPrivate::render().