|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
Draws an SDR picture with an Ultra HDR gain map as PQ, for HDR output. More...
#include <GainMapShaderGLES.h>
Public Member Functions | |
| CGainMapShaderGLES (const std::string &prefix) | |
| void | SetGainMap (const KODI::PICTURE::GainMapParams ¶ms, 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 |
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.
|
explicit |
|
inline |
|
inline |
|
overrideprotectedvirtual |
Reimplemented from Shaders::CShaderProgram.
|
overrideprotectedvirtual |
Reimplemented from Shaders::CShaderProgram.
|
inline |
| void CGainMapShaderGLES::SetGainMap | ( | const KODI::PICTURE::GainMapParams & | params, |
| float | weight ) |
Set before Enable(); weight 0 draws the picture without its gain map.
| void CGainMapShaderGLES::SetGainMapScale | ( | float | x, |
| float | y ) |