Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidvideooutput.cpp File Reference
#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  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 239 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 162 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 106 of file qandroidvideooutput.cpp.

Referenced by TextureCopy::TextureCopy().