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

#include <WinVideoFilter.h>

Inheritance diagram for CConvolutionShader:
CWinShader CConvolutionShader1Pass CConvolutionShaderSeparable

Classes

struct  Vertex
 

Public Member Functions

virtual ~CConvolutionShader ()=default
 
virtual bool Create (ESCALINGMETHOD method, const std::shared_ptr< COutputShader > &pOutShader=nullptr)=0
 
virtual void Render (CD3DTexture &sourceTexture, CD3DTexture &target, CRect sourceRect, CRect destRect, bool useLimitRange)=0
 

Protected Member Functions

 CConvolutionShader ()=default
 
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 ()=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

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

◆ ~CConvolutionShader()

virtual CConvolutionShader::~CConvolutionShader ( )
virtualdefault

◆ CConvolutionShader()

CConvolutionShader::CConvolutionShader ( )
protecteddefault

Member Function Documentation

◆ ChooseKernelD3DFormat()

bool CConvolutionShader::ChooseKernelD3DFormat ( )
protectedvirtual

◆ Create()

virtual bool CConvolutionShader::Create ( ESCALINGMETHOD method,
const std::shared_ptr< COutputShader > & pOutShader = nullptr )
pure virtual

◆ CreateHQKernel()

bool CConvolutionShader::CreateHQKernel ( ESCALINGMETHOD method)
protectedvirtual

◆ Render()

virtual void CConvolutionShader::Render ( CD3DTexture & sourceTexture,
CD3DTexture & target,
CRect sourceRect,
CRect destRect,
bool useLimitRange )
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 = false
protected

◆ m_HQKernelTexture

CD3DTexture CConvolutionShader::m_HQKernelTexture
protected

◆ m_KernelFormat

DXGI_FORMAT CConvolutionShader::m_KernelFormat = DXGI_FORMAT_UNKNOWN
protected

◆ m_pOutShader

std::shared_ptr<COutputShader> CConvolutionShader::m_pOutShader = nullptr
protected

◆ m_rgba

bool CConvolutionShader::m_rgba = false
protected

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