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>.
Loading...
Searching...
No Matches
qvideowindow.cpp File Reference

(38c85f0fb274f9dd989bd7601791209589fab94a)

#include "qvideowindow_p.h"
#include <QPlatformSurfaceEvent>
#include <qfile.h>
#include <qpainter.h>
#include <private/qguiapplication_p.h>
#include <private/qmemoryvideobuffer_p.h>
#include <private/qmultimediautils_p.h>
#include <qpa/qplatformintegration.h>
#include "moc_qvideowindow_p.cpp"
+ Include dependency graph for qvideowindow.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QSurface::SurfaceType platformSurfaceType ()
 
static QShader vwGetShader (const QString &name)
 

Variables

static const float g_vw_quad []
 

Function Documentation

◆ platformSurfaceType()

static QT_BEGIN_NAMESPACE QSurface::SurfaceType platformSurfaceType ( )
static

Definition at line 15 of file qvideowindow.cpp.

References Qt::AA_ForceRasterWidgets, QSurface::Direct3DSurface, QSurface::MetalSurface, QPlatformIntegration::OpenGL, QSurface::OpenGLSurface, QGuiApplicationPrivate::platformIntegration(), QPlatformIntegration::RasterGLSurface, QSurface::RasterGLSurface, QSurface::RasterSurface, and QCoreApplication::testAttribute().

Referenced by QVideoWindowPrivate::QVideoWindowPrivate().

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

◆ vwGetShader()

static QShader vwGetShader ( const QString & name)
static

Definition at line 102 of file qvideowindow.cpp.

References QShader::fromSerialized(), and QIODeviceBase::ReadOnly.

Referenced by QVideoWindowPrivate::setupGraphicsPipeline().

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

Variable Documentation

◆ g_vw_quad

const float g_vw_quad[]
static
Initial value:
= {
-1.f, -1.f, 0.f, 0.f,
-1.f, 1.f, 0.f, 1.f,
1.f, -1.f, 1.f, 0.f,
1.f, 1.f, 1.f, 1.f,
-1.f, -1.f, 0.f, 1.f,
-1.f, 1.f, 1.f, 1.f,
1.f, -1.f, 0.f, 0.f,
1.f, 1.f, 1.f, 0.f,
-1.f, -1.f, 1.f, 1.f,
-1.f, 1.f, 1.f, 0.f,
1.f, -1.f, 0.f, 1.f,
1.f, 1.f, 0.f, 0.f,
-1.f, -1.f, 1.f, 0.f,
-1.f, 1.f, 0.f, 0.f,
1.f, -1.f, 1.f, 1.f,
1.f, 1.f, 0.f, 1.f
}

Definition at line 77 of file qvideowindow.cpp.

Referenced by QVideoWindowPrivate::initRhi(), and QVideoWindowPrivate::render().