Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CConvolutionShader Class Referenceabstract

#include <WinVideoFilter.h>

Inheritance diagram for CConvolutionShader:
CWinShader CConvolutionShader1Pass CConvolutionShaderSeparable

Classes

struct  CUSTOMVERTEX
 

Public Member Functions

virtual bool Create (ESCALINGMETHOD method, COutputShader *pOutShader=nullptr)=0
 
virtual void Render (CD3DTexture &sourceTexture, unsigned int sourceWidth, unsigned int sourceHeight, unsigned int destWidth, unsigned int destHeight, CRect sourceRect, CRect destRect, bool useLimitRange, CD3DTexture *target)=0
 
 CConvolutionShader ()
 
virtual ~CConvolutionShader ()
 

Protected Member Functions

virtual bool ChooseKernelD3DFormat ()
 
virtual bool CreateHQKernel (ESCALINGMETHOD method)
 
virtual void SetShaderParameters (CD3DTexture &sourceTexture, float *texSteps, int texStepsCount, bool useLimitRange)=0
 
- Protected Member Functions inherited from CWinShader
 CWinShader ()
 
virtual ~CWinShader ()
 
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 (UINT stepIndex)
 
virtual bool CreateInputLayout (D3D11_INPUT_ELEMENT_DESC *layout, unsigned numElements)
 

Protected Attributes

CD3DTexture m_HQKernelTexture
 
DXGI_FORMAT m_KernelFormat
 
bool m_floattex
 
bool m_rgba
 
COutputShaderm_pOutShader
 
- Protected Attributes inherited from CWinShader
CD3DEffect m_effect
 
CD3DTexturem_target { nullptr }
 

Constructor & Destructor Documentation

◆ CConvolutionShader()

CConvolutionShader::CConvolutionShader ( )

◆ ~CConvolutionShader()

CConvolutionShader::~CConvolutionShader ( )
virtual

Member Function Documentation

◆ ChooseKernelD3DFormat()

bool CConvolutionShader::ChooseKernelD3DFormat ( )
protectedvirtual

◆ Create()

virtual bool CConvolutionShader::Create ( ESCALINGMETHOD  method,
COutputShader pOutShader = nullptr 
)
pure virtual

◆ CreateHQKernel()

bool CConvolutionShader::CreateHQKernel ( ESCALINGMETHOD  method)
protectedvirtual

◆ Render()

virtual void CConvolutionShader::Render ( CD3DTexture sourceTexture,
unsigned int  sourceWidth,
unsigned int  sourceHeight,
unsigned int  destWidth,
unsigned int  destHeight,
CRect  sourceRect,
CRect  destRect,
bool  useLimitRange,
CD3DTexture target 
)
pure virtual

◆ SetShaderParameters()

virtual void CConvolutionShader::SetShaderParameters ( CD3DTexture sourceTexture,
float *  texSteps,
int  texStepsCount,
bool  useLimitRange 
)
protectedpure virtual

Member Data Documentation

◆ m_floattex

bool CConvolutionShader::m_floattex
protected

◆ m_HQKernelTexture

CD3DTexture CConvolutionShader::m_HQKernelTexture
protected

◆ m_KernelFormat

DXGI_FORMAT CConvolutionShader::m_KernelFormat
protected

◆ m_pOutShader

COutputShader* CConvolutionShader::m_pOutShader
protected

◆ m_rgba

bool CConvolutionShader::m_rgba
protected

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