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

#include <WinVideoFilter.h>

Inheritance diagram for COutputShader:
CWinShader

Public Member Functions

 COutputShader ()=default
 
 ~COutputShader ()=default
 
void ApplyEffectParameters (CD3DEffect &effect, unsigned sourceWidth, unsigned sourceHeight)
 
void GetDefines (DefinesMap &map) const
 
bool Create (bool useLUT, bool useDithering, int ditherDepth, bool toneMapping, ETONEMAPMETHOD toneMethod, bool HLGtoPQ)
 
void Render (CD3DTexture &sourceTexture, CRect sourceRect, const CPoint points[4], CD3DTexture &target, unsigned range=0, float contrast=0.5f, float brightness=0.5f)
 
void Render (CD3DTexture &sourceTexture, CRect sourceRect, CRect destRect, CD3DTexture &target, unsigned range=0, float contrast=0.5f, float brightness=0.5f)
 
void SetLUT (int lutSize, ID3D11ShaderResourceView *pLUTView)
 
void SetDisplayMetadata (bool hasDisplayMetadata, AVMasteringDisplayMetadata displayMetadata, bool hasLightMetadata, AVContentLightMetadata lightMetadata)
 
void SetToneMapParam (ETONEMAPMETHOD method, float param)
 
std::string GetDebugInfo ()
 

Static Public Member Functions

static bool CreateLUTView (int lutSize, uint16_t *lutData, bool isRGB, ID3D11ShaderResourceView **ppLUTView)
 

Additional Inherited Members

- Protected Member Functions inherited from CWinShader
 CWinShader ()=default
 
virtual ~CWinShader ()=default
 
virtual bool CreateVertexBuffer (unsigned int vertCount, unsigned int vertSize)
 
virtual bool LockVertexBuffer (void **data)
 
virtual bool UnlockVertexBuffer ()
 
virtual bool LoadEffect (const std::string &filename, DefinesMap *defines)
 
virtual bool Execute (const std::vector< CD3DTexture * > &targets, unsigned int vertexIndexStep)
 
virtual void SetStepParams (unsigned stepIndex)
 
virtual bool CreateInputLayout (D3D11_INPUT_ELEMENT_DESC *layout, unsigned numElements)
 
- Protected Attributes inherited from CWinShader
CD3DEffect m_effect
 
CD3DTexturem_target = nullptr
 

Constructor & Destructor Documentation

◆ COutputShader()

COutputShader::COutputShader ( )
explicitdefault

◆ ~COutputShader()

COutputShader::~COutputShader ( )
default

Member Function Documentation

◆ ApplyEffectParameters()

void COutputShader::ApplyEffectParameters ( CD3DEffect & effect,
unsigned sourceWidth,
unsigned sourceHeight )

◆ Create()

bool COutputShader::Create ( bool useLUT,
bool useDithering,
int ditherDepth,
bool toneMapping,
ETONEMAPMETHOD toneMethod,
bool HLGtoPQ )

◆ CreateLUTView()

bool COutputShader::CreateLUTView ( int lutSize,
uint16_t * lutData,
bool isRGB,
ID3D11ShaderResourceView ** ppLUTView )
static

◆ GetDebugInfo()

std::string COutputShader::GetDebugInfo ( )

◆ GetDefines()

void COutputShader::GetDefines ( DefinesMap & map) const

◆ Render() [1/2]

void COutputShader::Render ( CD3DTexture & sourceTexture,
CRect sourceRect,
const CPoint points[4],
CD3DTexture & target,
unsigned range = 0,
float contrast = 0.5f,
float brightness = 0.5f )

◆ Render() [2/2]

void COutputShader::Render ( CD3DTexture & sourceTexture,
CRect sourceRect,
CRect destRect,
CD3DTexture & target,
unsigned range = 0,
float contrast = 0.5f,
float brightness = 0.5f )

◆ SetDisplayMetadata()

void COutputShader::SetDisplayMetadata ( bool hasDisplayMetadata,
AVMasteringDisplayMetadata displayMetadata,
bool hasLightMetadata,
AVContentLightMetadata lightMetadata )

◆ SetLUT()

void COutputShader::SetLUT ( int lutSize,
ID3D11ShaderResourceView * pLUTView )

◆ SetToneMapParam()

void COutputShader::SetToneMapParam ( ETONEMAPMETHOD method,
float param )

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