Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGainMapShaderGLES Class Reference

Draws an SDR picture with an Ultra HDR gain map as PQ, for HDR output. More...

#include <GainMapShaderGLES.h>

Inheritance diagram for CGainMapShaderGLES:
Shaders::CGLSLShaderProgram Shaders::CShaderProgram

Public Member Functions

 CGainMapShaderGLES (const std::string &prefix)
 
void SetGainMap (const KODI::PICTURE::GainMapParams &params, float weight)
 Set before Enable(); weight 0 draws the picture without its gain map.
 
void SetGainMapScale (float x, float y)
 
void SetAlpha (float alpha)
 
GLint GetPosLoc () const
 
GLint GetTexLoc () const
 
- 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
 
CVertexShader * VertexShader ()
 
CPixelShader * PixelShader ()
 
virtual void OnDisabled ()
 
virtual GLuint ProgramHandle ()
 

Protected Member Functions

void OnCompiledAndLinked () override
 
bool OnEnabled () override
 
- Protected Member Functions inherited from Shaders::CGLSLShaderProgram
void Free ()
 

Additional Inherited Members

- Protected Attributes inherited from Shaders::CGLSLShaderProgram
GLint m_lastProgram
 
bool m_validated = false
 
- Protected Attributes inherited from Shaders::CShaderProgram
CVertexShader * m_pVP = nullptr
 
CPixelShader * m_pFP = nullptr
 
GLuint m_shaderProgram = 0
 
bool m_ok = false
 

Detailed Description

Draws an SDR picture with an Ultra HDR gain map as PQ, for HDR output.

Without a gain map it draws the SDR picture at the same white as the GUI.

Constructor & Destructor Documentation

◆ CGainMapShaderGLES()

CGainMapShaderGLES::CGainMapShaderGLES ( const std::string & prefix)
explicit

Member Function Documentation

◆ GetPosLoc()

GLint CGainMapShaderGLES::GetPosLoc ( ) const
inline

◆ GetTexLoc()

GLint CGainMapShaderGLES::GetTexLoc ( ) const
inline

◆ OnCompiledAndLinked()

void CGainMapShaderGLES::OnCompiledAndLinked ( )
overrideprotectedvirtual

Reimplemented from Shaders::CShaderProgram.

◆ OnEnabled()

bool CGainMapShaderGLES::OnEnabled ( )
overrideprotectedvirtual

Reimplemented from Shaders::CShaderProgram.

◆ SetAlpha()

void CGainMapShaderGLES::SetAlpha ( float alpha)
inline

◆ SetGainMap()

void CGainMapShaderGLES::SetGainMap ( const KODI::PICTURE::GainMapParams & params,
float weight )

Set before Enable(); weight 0 draws the picture without its gain map.

◆ SetGainMapScale()

void CGainMapShaderGLES::SetGainMapScale ( float x,
float y )

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