![]() |
Qt 6.x
The Qt SDK
|
#include <qffmpeghwaccel_p.h>
Public Member Functions | |
~HWAccel () | |
AVHWDeviceType | deviceType () const |
AVBufferRef * | hwDeviceContextAsBuffer () const |
AVHWDeviceContext * | hwDeviceContext () const |
AVPixelFormat | hwFormat () const |
AVHWFramesConstraintsUPtr | constraints () const |
void | createFramesContext (AVPixelFormat swFormat, const QSize &size) |
AVBufferRef * | hwFramesContextAsBuffer () const |
AVHWFramesContext * | hwFramesContext () const |
Static Public Member Functions | |
static std::unique_ptr< HWAccel > | create (AVHWDeviceType deviceType) |
static std::pair< const AVCodec *, std::unique_ptr< HWAccel > > | findEncoderWithHwAccel (AVCodecID id, const std::function< bool(const HWAccel &)> &hwAccelPredicate=nullptr) |
static std::pair< const AVCodec *, std::unique_ptr< HWAccel > > | findDecoderWithHwAccel (AVCodecID id, const std::function< bool(const HWAccel &)> &hwAccelPredicate=nullptr) |
static AVPixelFormat | format (AVFrame *frame) |
static const std::vector< AVHWDeviceType > & | encodingDeviceTypes () |
static const std::vector< AVHWDeviceType > & | decodingDeviceTypes () |
Definition at line 84 of file qffmpeghwaccel_p.h.
|
default |
AVHWFramesConstraintsUPtr QFFmpeg::HWAccel::constraints | ( | ) | const |
Definition at line 256 of file qffmpeghwaccel.cpp.
References hwDeviceContextAsBuffer().
Referenced by QFFmpeg::findTargetSWFormat().
|
static |
Definition at line 216 of file qffmpeghwaccel.cpp.
References deviceType(), and QFFmpeg::loadHWContext().
Referenced by QFFmpeg::findCodecWithHwAccel().
Definition at line 282 of file qffmpeghwaccel.cpp.
References QFFmpeg::err2str(), hwFormat(), qCDebug, and qWarning.
Referenced by QFFmpeg::VideoRenderer::renderInternal().
|
static |
Definition at line 240 of file qffmpeghwaccel.cpp.
References QFFmpeg::deviceTypes().
Referenced by findDecoderWithHwAccel().
AVHWDeviceType QFFmpeg::HWAccel::deviceType | ( | ) | const |
Definition at line 277 of file qffmpeghwaccel.cpp.
References hwDeviceContext().
Referenced by create(), and hwFormat().
|
static |
Definition at line 234 of file qffmpeghwaccel.cpp.
References QFFmpeg::deviceTypes().
Referenced by findEncoderWithHwAccel().
|
static |
Definition at line 271 of file qffmpeghwaccel.cpp.
References decodingDeviceTypes(), QFFmpeg::findAVDecoder(), and QFFmpeg::findCodecWithHwAccel().
|
static |
Definition at line 263 of file qffmpeghwaccel.cpp.
References encodingDeviceTypes(), QFFmpeg::findAVEncoder(), and QFFmpeg::findCodecWithHwAccel().
Referenced by QFFmpeg::findHwEncoder().
|
static |
Definition at line 224 of file qffmpeghwaccel.cpp.
References frame, hwFramesContext(), and Q_ASSERT.
Referenced by QFFmpegVideoBuffer::QFFmpegVideoBuffer().
AVHWDeviceContext * QFFmpeg::HWAccel::hwDeviceContext | ( | ) | const |
Definition at line 246 of file qffmpeghwaccel.cpp.
Referenced by deviceType().
|
inline |
Definition at line 104 of file qffmpeghwaccel_p.h.
Referenced by constraints().
AVPixelFormat QFFmpeg::HWAccel::hwFormat | ( | ) | const |
Definition at line 251 of file qffmpeghwaccel.cpp.
References deviceType(), and QFFmpeg::pixelFormatForHwDevice().
Referenced by QFFmpeg::calculateTargetFormatScore(), and createFramesContext().
AVHWFramesContext * QFFmpeg::HWAccel::hwFramesContext | ( | ) | const |
Definition at line 306 of file qffmpeghwaccel.cpp.
Referenced by format(), and QFFmpeg::VideoRenderer::renderInternal().
|
inline |
Definition at line 110 of file qffmpeghwaccel_p.h.
Referenced by QFFmpeg::VideoRenderer::renderInternal().