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
qandroidvideooutput.cpp File Reference

(e1b4840eb488165dcd3b1770aa7a64e0077e1907)

#include "qandroidvideooutput_p.h"
#include "androidsurfacetexture_p.h"
#include <rhi/qrhi.h>
#include <QtGui/private/qopenglextensions_p.h>
#include <private/qabstractvideobuffer_p.h>
#include <private/qvideoframeconverter_p.h>
#include <private/qplatformvideosink_p.h>
#include <qvideosink.h>
#include <qopenglcontext.h>
#include <qopenglfunctions.h>
#include <qvideoframeformat.h>
#include <qthread.h>
#include <qfile.h>
#include "qandroidvideooutput.moc"
#include "moc_qandroidvideooutput_p.cpp"
+ Include dependency graph for qandroidvideooutput.cpp:

Go to the source code of this file.

Classes

class  QAndroidVideoFrameTextures
 
class  QRhiWithThreadGuard
 
class  AndroidTextureVideoBuffer
 
class  ImageFromVideoFrameHelper
 
class  TextureCopy
 
class  AndroidTextureThread
 

Functions

static std::unique_ptr< QRhiGraphicsPipelinenewGraphicsPipeline (QRhi *rhi, QRhiShaderResourceBindings *shaderResourceBindings, QRhiRenderPassDescriptor *renderPassDescriptor, QShader vertexShader, QShader fragmentShader)
 
static QMatrix4x4 extTransformMatrix (AndroidSurfaceTexture *surfaceTexture)
 

Variables

static const float g_quad []
 

Function Documentation

◆ extTransformMatrix()

static QMatrix4x4 extTransformMatrix ( AndroidSurfaceTexture * surfaceTexture)
static

Definition at line 256 of file qandroidvideooutput.cpp.

References AndroidSurfaceTexture::getTransformMatrix().

Referenced by AndroidTextureThread::onFrameAvailable().

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

◆ newGraphicsPipeline()

static std::unique_ptr< QRhiGraphicsPipeline > newGraphicsPipeline ( QRhi * rhi,
QRhiShaderResourceBindings * shaderResourceBindings,
QRhiRenderPassDescriptor * renderPassDescriptor,
QShader vertexShader,
QShader fragmentShader )
static

Definition at line 179 of file qandroidvideooutput.cpp.

References QRhiVertexInputAttribute::Float2, QRhiShaderStage::Fragment, gp, QRhi::newGraphicsPipeline(), QRhiVertexInputLayout::setAttributes(), QRhiVertexInputLayout::setBindings(), QRhiGraphicsPipeline::TriangleFan, and QRhiShaderStage::Vertex.

+ Here is the call graph for this function:

Variable Documentation

◆ g_quad

const float g_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, 1.f,
1.f, -1.f, 1.f, 0.f
}

Definition at line 123 of file qandroidvideooutput.cpp.

Referenced by TextureCopy::TextureCopy().