Miam-Player  0.8.0
A nice music player
QtAV::ConvolutionShader Class Referenceabstract

The ConvolutionShader class Uniform u_Kernel is used. More...

#include <ConvolutionShader.h>

Inheritance diagram for QtAV::ConvolutionShader:
QtAV::VideoShader

Public Member Functions

 ConvolutionShader ()
 
int kernelRadius () const
 kernelRadius Default is 1, i.e. More...
 
void setKernelRadius (int value)
 TODO: update shader program if radius is changed. mark dirty program. More...
 
int kernelSize () const
 
- Public Member Functions inherited from QtAV::VideoShader
 VideoShader ()
 
virtual ~VideoShader ()
 
virtual char const *const * attributeNames () const
 attributeNames Array must end with null. More...
 
virtual const char * vertexShader () const
 vertexShader mvp uniform: u_Matrix Vertex shader in: a_Position, a_TexCoordsN (see attributeNames()) Vertex shader out: v_TexCoordsN More...
 
virtual const char * fragmentShader () const
 
virtual void initialize (QOpenGLShaderProgram *shaderProgram=0)
 initialize More...
 
int uniformLocation (const char *name) const
 
int textureLocationCount () const
 textureLocationCount number of texture locations is 1: packed RGB number of channels: yuv or plannar RGB More...
 
int textureLocation (int index) const
 
int matrixLocation () const
 
int colorMatrixLocation () const
 
int opacityLocation () const
 
int channelMapLocation () const
 
int texelSizeLocation () const
 
int textureSizeLocation () const
 
VideoFormat videoFormat () const
 
int textureTarget () const
 
QOpenGLShaderProgram * program ()
 
bool update (VideoMaterial *material)
 update Upload textures, setup uniforms before rendering. More...
 

Protected Member Functions

virtual const float * kernel () const =0
 
const QByteArray & kernelUniformHeader () const
 
const QByteArray & kernelSample () const
 
void setKernelUniformValue ()
 
 ConvolutionShader (ConvolutionShaderPrivate &d)
 
- Protected Member Functions inherited from QtAV::VideoShader
void rebuildLater ()
 rebuild shader program before next rendering. call this if shader code is updated More...
 
 VideoShader (VideoShaderPrivate &d)
 

Detailed Description

The ConvolutionShader class Uniform u_Kernel is used.

Constructor & Destructor Documentation

◆ ConvolutionShader() [1/2]

QtAV::ConvolutionShader::ConvolutionShader ( )

◆ ConvolutionShader() [2/2]

QtAV::ConvolutionShader::ConvolutionShader ( ConvolutionShaderPrivate &  d)
protected

Member Function Documentation

◆ kernel()

virtual const float* QtAV::ConvolutionShader::kernel ( ) const
protectedpure virtual

◆ kernelRadius()

int QtAV::ConvolutionShader::kernelRadius ( ) const

kernelRadius Default is 1, i.e.

3x3 kernel kernelSize is (2*kernelRadius()+1)^2

Returns

◆ kernelSample()

const QByteArray& QtAV::ConvolutionShader::kernelSample ( ) const
protected

◆ kernelSize()

int QtAV::ConvolutionShader::kernelSize ( ) const

◆ kernelUniformHeader()

const QByteArray& QtAV::ConvolutionShader::kernelUniformHeader ( ) const
protected

◆ setKernelRadius()

void QtAV::ConvolutionShader::setKernelRadius ( int  value)

TODO: update shader program if radius is changed. mark dirty program.

◆ setKernelUniformValue()

void QtAV::ConvolutionShader::setKernelUniformValue ( )
protected

The documentation for this class was generated from the following file: