Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
CConvolutionShaderSeparable Class Reference

#include <WinVideoFilter.h>

Inheritance diagram for CConvolutionShaderSeparable:
CConvolutionShader CWinShader

Public Member Functions

 CConvolutionShaderSeparable ()=default
 
 ~CConvolutionShaderSeparable ()=default
 
bool Create (ESCALINGMETHOD method, const std::shared_ptr< COutputShader > &pOutputShader=nullptr) override
 
void Render (CD3DTexture &sourceTexture, CD3DTexture &target, CRect sourceRect, CRect destRect, bool useLimitRange) override
 
- Public Member Functions inherited from CConvolutionShader
virtual ~CConvolutionShader ()=default
 

Protected Member Functions

bool ChooseIntermediateD3DFormat ()
 
bool CreateIntermediateRenderTarget (unsigned int width, unsigned int height)
 
bool ClearIntermediateRenderTarget ()
 
void PrepareParameters (unsigned int sourceWidth, unsigned int sourceHeight, unsigned int destWidth, unsigned int destHeight, CRect sourceRect, CRect destRect)
 
void SetShaderParameters (CD3DTexture &sourceTexture, float *texSteps, int texStepsCount, bool useLimitRange) override
 
void SetStepParams (unsigned iPass) override
 
- Protected Member Functions inherited from CConvolutionShader
 CConvolutionShader ()=default
 
virtual bool ChooseKernelD3DFormat ()
 
virtual bool CreateHQKernel (ESCALINGMETHOD method)
 
- 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 bool CreateInputLayout (D3D11_INPUT_ELEMENT_DESC *layout, unsigned numElements)
 

Additional Inherited Members

- Protected Attributes inherited from CConvolutionShader
bool m_floattex = false
 
bool m_rgba = false
 
DXGI_FORMAT m_KernelFormat = DXGI_FORMAT_UNKNOWN
 
CD3DTexture m_HQKernelTexture
 
std::shared_ptr< COutputShaderm_pOutShader = nullptr
 
- Protected Attributes inherited from CWinShader
CD3DEffect m_effect
 
CD3DTexturem_target = nullptr
 

Constructor & Destructor Documentation

◆ CConvolutionShaderSeparable()

CConvolutionShaderSeparable::CConvolutionShaderSeparable ( )
explicitdefault

◆ ~CConvolutionShaderSeparable()

CConvolutionShaderSeparable::~CConvolutionShaderSeparable ( )
default

Member Function Documentation

◆ ChooseIntermediateD3DFormat()

bool CConvolutionShaderSeparable::ChooseIntermediateD3DFormat ( )
protected

◆ ClearIntermediateRenderTarget()

bool CConvolutionShaderSeparable::ClearIntermediateRenderTarget ( )
protected

◆ Create()

bool CConvolutionShaderSeparable::Create ( ESCALINGMETHOD  method,
const std::shared_ptr< COutputShader > &  pOutputShader = nullptr 
)
overridevirtual

Implements CConvolutionShader.

◆ CreateIntermediateRenderTarget()

bool CConvolutionShaderSeparable::CreateIntermediateRenderTarget ( unsigned int  width,
unsigned int  height 
)
protected

◆ PrepareParameters()

void CConvolutionShaderSeparable::PrepareParameters ( unsigned int  sourceWidth,
unsigned int  sourceHeight,
unsigned int  destWidth,
unsigned int  destHeight,
CRect  sourceRect,
CRect  destRect 
)
protected

◆ Render()

void CConvolutionShaderSeparable::Render ( CD3DTexture sourceTexture,
CD3DTexture target,
CRect  sourceRect,
CRect  destRect,
bool  useLimitRange 
)
overridevirtual

Implements CConvolutionShader.

◆ SetShaderParameters()

void CConvolutionShaderSeparable::SetShaderParameters ( CD3DTexture sourceTexture,
float *  texSteps,
int  texStepsCount,
bool  useLimitRange 
)
overrideprotectedvirtual

Implements CConvolutionShader.

◆ SetStepParams()

void CConvolutionShaderSeparable::SetStepParams ( unsigned  iPass)
overrideprotectedvirtual

Reimplemented from CWinShader.


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