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

#include <WinVideoFilter.h>

Inheritance diagram for CYUV2RGBShader:
CWinShader

Public Member Functions

 CYUV2RGBShader ()=default
 
 ~CYUV2RGBShader ()=default
 
bool Create (AVPixelFormat fmt, AVColorPrimaries dstPrimaries, AVColorPrimaries srcPrimaries, const std::shared_ptr< COutputShader > &pOutShader=nullptr)
 
void Render (CRect sourceRect, CPoint dest[], CRenderBuffer *videoBuffer, CD3DTexture &target)
 
void SetParams (float contrast, float black, bool limited)
 
void SetColParams (AVColorSpace colSpace, int bits, bool limited, int texBits)
 

Protected Member Functions

void PrepareParameters (CRenderBuffer *videoBuffer, CRect sourceRect, CPoint dest[])
 
void SetShaderParameters (CRenderBuffer *videoBuffer)
 
- 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)
 

Additional Inherited Members

- Protected Attributes inherited from CWinShader
CD3DEffect m_effect
 
CD3DTexturem_target = nullptr
 

Constructor & Destructor Documentation

◆ CYUV2RGBShader()

CYUV2RGBShader::CYUV2RGBShader ( )
explicitdefault

◆ ~CYUV2RGBShader()

CYUV2RGBShader::~CYUV2RGBShader ( )
default

Member Function Documentation

◆ Create()

bool CYUV2RGBShader::Create ( AVPixelFormat fmt,
AVColorPrimaries dstPrimaries,
AVColorPrimaries srcPrimaries,
const std::shared_ptr< COutputShader > & pOutShader = nullptr )

◆ PrepareParameters()

void CYUV2RGBShader::PrepareParameters ( CRenderBuffer * videoBuffer,
CRect sourceRect,
CPoint dest[] )
protected

◆ Render()

void CYUV2RGBShader::Render ( CRect sourceRect,
CPoint dest[],
CRenderBuffer * videoBuffer,
CD3DTexture & target )

◆ SetColParams()

void CYUV2RGBShader::SetColParams ( AVColorSpace colSpace,
int bits,
bool limited,
int texBits )

◆ SetParams()

void CYUV2RGBShader::SetParams ( float contrast,
float black,
bool limited )

◆ SetShaderParameters()

void CYUV2RGBShader::SetShaderParameters ( CRenderBuffer * videoBuffer)
protected

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