![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qvideowindow_p.h>
Public Member Functions | |
QVideoWindowPrivate (QVideoWindow *q) | |
~QVideoWindowPrivate () | |
bool | canRender () const |
QRhi * | rhi () const |
void | init () |
void | render () |
void | initRhi () |
void | resizeSwapChain () |
void | releaseSwapChain () |
void | updateTextures (QRhiResourceUpdateBatch *rub) |
void | updateSubtitle (QRhiResourceUpdateBatch *rub, const QSize &frameSize) |
void | setupGraphicsPipeline (QRhiGraphicsPipeline *pipeline, QRhiShaderResourceBindings *bindings, const QVideoFrameFormat &fmt) |
Definition at line 32 of file qvideowindow_p.h.
QVideoWindowPrivate::QVideoWindowPrivate | ( | QVideoWindow * | q | ) |
Definition at line 36 of file qvideowindow.cpp.
QVideoWindowPrivate::~QVideoWindowPrivate | ( | ) |
Definition at line 70 of file qvideowindow.cpp.
|
inline |
Definition at line 36 of file qvideowindow_p.h.
References m_useRhi.
void QVideoWindowPrivate::init | ( | ) |
Definition at line 279 of file qvideowindow.cpp.
References initialized, and initRhi().
Referenced by render().
void QVideoWindowPrivate::initRhi | ( | ) |
Definition at line 110 of file qvideowindow.cpp.
References m_vertexBufReady.
Referenced by init().
void QVideoWindowPrivate::releaseSwapChain | ( | ) |
Definition at line 298 of file qvideowindow.cpp.
References m_hasSwapChain.
Referenced by render().
void QVideoWindowPrivate::render | ( | ) |
Definition at line 306 of file qvideowindow.cpp.
References QRhiSwapChainHdrInfo::ColorComponentValue, init(), initialized, isExposed, m_hasSubtitle, m_hasSwapChain, m_vertexBufReady, q, QPaintEngine::QPainter, releaseSwapChain(), resizeSwapChain(), updateSubtitle(), and updateTextures().
void QVideoWindowPrivate::resizeSwapChain | ( | ) |
Definition at line 293 of file qvideowindow.cpp.
Referenced by render().
|
inline |
Definition at line 38 of file qvideowindow_p.h.
void QVideoWindowPrivate::setupGraphicsPipeline | ( | QRhiGraphicsPipeline * | pipeline, |
QRhiShaderResourceBindings * | bindings, | ||
const QVideoFrameFormat & | fmt ) |
Definition at line 177 of file qvideowindow.cpp.
void QVideoWindowPrivate::updateSubtitle | ( | QRhiResourceUpdateBatch * | rub, |
const QSize & | frameSize ) |
Definition at line 243 of file qvideowindow.cpp.
References m_hasSubtitle, and m_subtitleDirty.
Referenced by render().
void QVideoWindowPrivate::updateTextures | ( | QRhiResourceUpdateBatch * | rub | ) |
Definition at line 204 of file qvideowindow.cpp.
Referenced by render().
Qt::AspectRatioMode QVideoWindowPrivate::aspectRatioMode = Qt::KeepAspectRatio |
Definition at line 54 of file qvideowindow_p.h.
QBackingStore* QVideoWindowPrivate::backingStore = nullptr |
Definition at line 56 of file qvideowindow_p.h.
QVideoFrameFormat QVideoWindowPrivate::format |
Definition at line 88 of file qvideowindow_p.h.
bool QVideoWindowPrivate::initialized = false |
Definition at line 82 of file qvideowindow_p.h.
bool QVideoWindowPrivate::isExposed = false |
Definition at line 83 of file qvideowindow_p.h.
Referenced by render().
QRhi::Implementation QVideoWindowPrivate::m_graphicsApi = QRhi::Null |
Definition at line 78 of file qvideowindow_p.h.
std::unique_ptr<QRhiGraphicsPipeline> QVideoWindowPrivate::m_graphicsPipeline |
Definition at line 70 of file qvideowindow_p.h.
bool QVideoWindowPrivate::m_hasSubtitle = false |
Definition at line 87 of file qvideowindow_p.h.
Referenced by render(), and updateSubtitle().
bool QVideoWindowPrivate::m_hasSwapChain = false |
Definition at line 85 of file qvideowindow_p.h.
Referenced by releaseSwapChain(), and render().
std::unique_ptr<QRhiRenderPassDescriptor> QVideoWindowPrivate::m_renderPass |
Definition at line 63 of file qvideowindow_p.h.
std::unique_ptr<QRhi> QVideoWindowPrivate::m_rhi |
Definition at line 61 of file qvideowindow_p.h.
std::unique_ptr<QRhiShaderResourceBindings> QVideoWindowPrivate::m_shaderResourceBindings |
Definition at line 69 of file qvideowindow_p.h.
std::unique_ptr<QVideoSink> QVideoWindowPrivate::m_sink |
Definition at line 77 of file qvideowindow_p.h.
bool QVideoWindowPrivate::m_subtitleDirty = false |
Definition at line 86 of file qvideowindow_p.h.
Referenced by updateSubtitle().
QVideoTextureHelper::SubtitleLayout QVideoWindowPrivate::m_subtitleLayout |
Definition at line 79 of file qvideowindow_p.h.
std::unique_ptr<QRhiGraphicsPipeline> QVideoWindowPrivate::m_subtitlePipeline |
Definition at line 74 of file qvideowindow_p.h.
std::unique_ptr<QRhiShaderResourceBindings> QVideoWindowPrivate::m_subtitleResourceBindings |
Definition at line 73 of file qvideowindow_p.h.
std::unique_ptr<QRhiTexture> QVideoWindowPrivate::m_subtitleTexture |
Definition at line 72 of file qvideowindow_p.h.
std::unique_ptr<QRhiBuffer> QVideoWindowPrivate::m_subtitleUniformBuf |
Definition at line 75 of file qvideowindow_p.h.
std::unique_ptr<QRhiSwapChain> QVideoWindowPrivate::m_swapChain |
Definition at line 62 of file qvideowindow_p.h.
QVideoFrameTexturePool QVideoWindowPrivate::m_texturePool |
Definition at line 80 of file qvideowindow_p.h.
std::unique_ptr<QRhiSampler> QVideoWindowPrivate::m_textureSampler |
Definition at line 68 of file qvideowindow_p.h.
std::unique_ptr<QRhiBuffer> QVideoWindowPrivate::m_uniformBuf |
Definition at line 67 of file qvideowindow_p.h.
bool QVideoWindowPrivate::m_useRhi = true |
Definition at line 84 of file qvideowindow_p.h.
Referenced by canRender().
std::unique_ptr<QRhiBuffer> QVideoWindowPrivate::m_vertexBuf |
Definition at line 65 of file qvideowindow_p.h.
bool QVideoWindowPrivate::m_vertexBufReady = false |
Definition at line 66 of file qvideowindow_p.h.
QVideoWindow* QVideoWindowPrivate::q = nullptr |
Definition at line 53 of file qvideowindow_p.h.
Referenced by render().