|
virtual bool | ReadPresetFile (const std::string &presetPath)=0 |
| Reads/Parses a shader preset file and loads its state to the object. What this state is is implementation specific. More...
|
|
virtual bool | RenderUpdate (const CPoint dest[], IShaderTexture *source, IShaderTexture *target)=0 |
| Updates state if needed and renderes the preset to the target texture. More...
|
|
virtual void | SetSpeed (double speed)=0 |
| Informs about the speed of playback. More...
|
|
virtual void | SetVideoSize (const unsigned videoWidth, const unsigned videoHeight)=0 |
| Size of the input/source frame in pixels. More...
|
|
virtual bool | SetShaderPreset (const std::string &shaderPresetPath)=0 |
| Set the preset to be rendered on the next frame. More...
|
|
virtual const std::string & | GetShaderPreset () const =0 |
| Gets the full path to the shader preset. More...
|
|
virtual ShaderPassVec & | GetPasses ()=0 |
| Gets the passes of the loaded preset. More...
|
|
◆ GetPasses()
virtual ShaderPassVec& KODI::SHADER::IShaderPreset::GetPasses |
( |
| ) |
|
|
pure virtual |
◆ GetShaderPreset()
virtual const std::string& KODI::SHADER::IShaderPreset::GetShaderPreset |
( |
| ) |
const |
|
pure virtual |
◆ ReadPresetFile()
virtual bool KODI::SHADER::IShaderPreset::ReadPresetFile |
( |
const std::string & |
presetPath | ) |
|
|
pure virtual |
Reads/Parses a shader preset file and loads its state to the object. What this state is is implementation specific.
- Parameters
-
presetPath | Full path of the preset file. |
- Returns
- True on successful parsing, false on failed.
Implemented in KODI::SHADER::CShaderPresetGL, and KODI::SHADER::CShaderPresetDX.
◆ RenderUpdate()
Updates state if needed and renderes the preset to the target texture.
- Parameters
-
dest | Coordinates of the 4 corners of the output viewport/window |
source | Input texture. The source of the video frame, in is original resolution (unscaled) |
target | The target texture. The texture that the final result will be rendered in. |
- Returns
- Returns false if updating or rendering failed, true if both succeeded.
Implemented in KODI::SHADER::CShaderPresetGL, and KODI::SHADER::CShaderPresetDX.
◆ SetShaderPreset()
virtual bool KODI::SHADER::IShaderPreset::SetShaderPreset |
( |
const std::string & |
shaderPresetPath | ) |
|
|
pure virtual |
◆ SetSpeed()
virtual void KODI::SHADER::IShaderPreset::SetSpeed |
( |
double |
speed | ) |
|
|
pure virtual |
◆ SetVideoSize()
virtual void KODI::SHADER::IShaderPreset::SetVideoSize |
( |
const unsigned |
videoWidth, |
|
|
const unsigned |
videoHeight |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: