Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Shaders::GL::ConvolutionFilterShader Class Reference

#include <VideoFilterShaderGL.h>

Inheritance diagram for Shaders::GL::ConvolutionFilterShader:
Shaders::GL::BaseVideoFilterShader Shaders::CGLSLShaderProgram Shaders::CShaderProgram

Public Member Functions

 ConvolutionFilterShader (ESCALINGMETHOD method, bool stretch, GLSLOutput *output=NULL)
 
 ~ConvolutionFilterShader () override
 
void OnCompiledAndLinked () override
 
bool OnEnabled () override
 
void OnDisabled () override
 
void Free ()
 
bool GetTextureFilter (GLint &filter) override
 
- Public Member Functions inherited from Shaders::GL::BaseVideoFilterShader
 BaseVideoFilterShader ()
 
 ~BaseVideoFilterShader () override
 
void SetSourceTexture (GLint ytex)
 
void SetWidth (int w)
 
void SetHeight (int h)
 
void SetNonLinStretch (float stretch)
 
void SetAlpha (GLfloat alpha)
 
GLint GetVertexLoc ()
 
GLint GetCoordLoc ()
 
void SetMatrices (const GLfloat *p, const GLfloat *m)
 
- Public Member Functions inherited from Shaders::CGLSLShaderProgram
 CGLSLShaderProgram ()
 
 CGLSLShaderProgram (const std::string &vert, const std::string &frag)
 
 ~CGLSLShaderProgram () override
 
bool Enable () override
 
void Disable () override
 
bool CompileAndLink () override
 
- Public Member Functions inherited from Shaders::CShaderProgram
 CShaderProgram ()=default
 
virtual ~CShaderProgram ()
 
bool OK () const
 
CVertexShaderVertexShader ()
 
CPixelShaderPixelShader ()
 
virtual GLuint ProgramHandle ()
 

Protected Attributes

GLuint m_kernelTex1 = 0
 
GLint m_hKernTex
 
ESCALINGMETHOD m_method
 
bool m_floattex
 
GLint m_internalformat
 
GLSLOutputm_glslOutput
 
- Protected Attributes inherited from Shaders::GL::BaseVideoFilterShader
int m_width
 
int m_height
 
float m_stepX
 
float m_stepY
 
float m_stretch
 
GLfloat m_alpha
 
GLint m_sourceTexUnit = 0
 
const GLfloat * m_proj = nullptr
 
const GLfloat * m_model = nullptr
 
GLint m_hSourceTex = 0
 
GLint m_hStepXY = 0
 
GLint m_hStretch = -1
 
GLint m_hAlpha = -1
 
GLint m_hVertex = -1
 
GLint m_hCoord = -1
 
GLint m_hProj = -1
 
GLint m_hModel = -1
 
- Protected Attributes inherited from Shaders::CGLSLShaderProgram
GLint m_lastProgram
 
bool m_validated = false
 
- Protected Attributes inherited from Shaders::CShaderProgram
CVertexShaderm_pVP = nullptr
 
CPixelShaderm_pFP = nullptr
 
GLuint m_shaderProgram = 0
 
bool m_ok = false
 

Additional Inherited Members

- Protected Member Functions inherited from Shaders::CGLSLShaderProgram
void Free ()
 

Constructor & Destructor Documentation

◆ ConvolutionFilterShader()

ConvolutionFilterShader::ConvolutionFilterShader ( ESCALINGMETHOD method,
bool stretch,
GLSLOutput * output = NULL )

◆ ~ConvolutionFilterShader()

ConvolutionFilterShader::~ConvolutionFilterShader ( )
override

Member Function Documentation

◆ Free()

void ConvolutionFilterShader::Free ( )

◆ GetTextureFilter()

bool Shaders::GL::ConvolutionFilterShader::GetTextureFilter ( GLint & filter)
inlineoverridevirtual

◆ OnCompiledAndLinked()

void ConvolutionFilterShader::OnCompiledAndLinked ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

◆ OnDisabled()

void ConvolutionFilterShader::OnDisabled ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

◆ OnEnabled()

bool ConvolutionFilterShader::OnEnabled ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

Member Data Documentation

◆ m_floattex

bool Shaders::GL::ConvolutionFilterShader::m_floattex
protected

◆ m_glslOutput

GLSLOutput* Shaders::GL::ConvolutionFilterShader::m_glslOutput
protected

◆ m_hKernTex

GLint Shaders::GL::ConvolutionFilterShader::m_hKernTex
protected

◆ m_internalformat

GLint Shaders::GL::ConvolutionFilterShader::m_internalformat
protected

◆ m_kernelTex1

GLuint Shaders::GL::ConvolutionFilterShader::m_kernelTex1 = 0
protected

◆ m_method

ESCALINGMETHOD Shaders::GL::ConvolutionFilterShader::m_method
protected

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