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

#include <VideoFilterShaderGL.h>

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

Public Member Functions

 BaseVideoFilterShader ()
 
 ~BaseVideoFilterShader () override
 
virtual bool GetTextureFilter (GLint &filter)
 
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 void OnCompiledAndLinked ()
 
virtual bool OnEnabled ()
 
virtual void OnDisabled ()
 
virtual GLuint ProgramHandle ()
 

Protected Attributes

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

◆ BaseVideoFilterShader()

BaseVideoFilterShader::BaseVideoFilterShader ( )

◆ ~BaseVideoFilterShader()

BaseVideoFilterShader::~BaseVideoFilterShader ( )
override

Member Function Documentation

◆ GetCoordLoc()

GLint Shaders::GL::BaseVideoFilterShader::GetCoordLoc ( )
inline

◆ GetTextureFilter()

virtual bool Shaders::GL::BaseVideoFilterShader::GetTextureFilter ( GLint & filter)
inlinevirtual

◆ GetVertexLoc()

GLint Shaders::GL::BaseVideoFilterShader::GetVertexLoc ( )
inline

◆ SetAlpha()

void Shaders::GL::BaseVideoFilterShader::SetAlpha ( GLfloat alpha)
inline

◆ SetHeight()

void Shaders::GL::BaseVideoFilterShader::SetHeight ( int h)
inline

◆ SetMatrices()

void Shaders::GL::BaseVideoFilterShader::SetMatrices ( const GLfloat * p,
const GLfloat * m )
inline

◆ SetNonLinStretch()

void Shaders::GL::BaseVideoFilterShader::SetNonLinStretch ( float stretch)
inline

◆ SetSourceTexture()

void Shaders::GL::BaseVideoFilterShader::SetSourceTexture ( GLint ytex)
inline

◆ SetWidth()

void Shaders::GL::BaseVideoFilterShader::SetWidth ( int w)
inline

Member Data Documentation

◆ m_alpha

GLfloat Shaders::GL::BaseVideoFilterShader::m_alpha
protected

◆ m_hAlpha

GLint Shaders::GL::BaseVideoFilterShader::m_hAlpha = -1
protected

◆ m_hCoord

GLint Shaders::GL::BaseVideoFilterShader::m_hCoord = -1
protected

◆ m_height

int Shaders::GL::BaseVideoFilterShader::m_height
protected

◆ m_hModel

GLint Shaders::GL::BaseVideoFilterShader::m_hModel = -1
protected

◆ m_hProj

GLint Shaders::GL::BaseVideoFilterShader::m_hProj = -1
protected

◆ m_hSourceTex

GLint Shaders::GL::BaseVideoFilterShader::m_hSourceTex = 0
protected

◆ m_hStepXY

GLint Shaders::GL::BaseVideoFilterShader::m_hStepXY = 0
protected

◆ m_hStretch

GLint Shaders::GL::BaseVideoFilterShader::m_hStretch = -1
protected

◆ m_hVertex

GLint Shaders::GL::BaseVideoFilterShader::m_hVertex = -1
protected

◆ m_model

const GLfloat* Shaders::GL::BaseVideoFilterShader::m_model = nullptr
protected

◆ m_proj

const GLfloat* Shaders::GL::BaseVideoFilterShader::m_proj = nullptr
protected

◆ m_sourceTexUnit

GLint Shaders::GL::BaseVideoFilterShader::m_sourceTexUnit = 0
protected

◆ m_stepX

float Shaders::GL::BaseVideoFilterShader::m_stepX
protected

◆ m_stepY

float Shaders::GL::BaseVideoFilterShader::m_stepY
protected

◆ m_stretch

float Shaders::GL::BaseVideoFilterShader::m_stretch
protected

◆ m_width

int Shaders::GL::BaseVideoFilterShader::m_width
protected

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