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

#include <DXVA.h>

Public Types

typedef std::shared_ptr< CContextshared_ptr
 
typedef std::weak_ptr< CContextweak_ptr
 

Public Member Functions

 ~CContext ()
 
bool GetFormatAndConfig (AVCodecContext *avctx, D3D11_VIDEO_DECODER_DESC &format, D3D11_VIDEO_DECODER_CONFIG &config) const
 
bool CreateSurfaces (const D3D11_VIDEO_DECODER_DESC &format, uint32_t count, uint32_t alignment, ID3D11VideoDecoderOutputView **surfaces, HANDLE *pHandle, bool trueShared) const
 
bool CreateDecoder (const D3D11_VIDEO_DECODER_DESC &format, const D3D11_VIDEO_DECODER_CONFIG &config, ID3D11VideoDecoder **decoder, ID3D11VideoContext **context)
 
void Release (CDecoder *decoder)
 
bool Check () const
 
bool Reset ()
 
bool IsContextShared () const
 
bool HasAMDWorkaround () const
 

Static Public Member Functions

static shared_ptr EnsureContext (CDecoder *decoder)
 

Member Typedef Documentation

◆ shared_ptr

◆ weak_ptr

Constructor & Destructor Documentation

◆ ~CContext()

CContext::~CContext ( )

Member Function Documentation

◆ Check()

bool CContext::Check ( ) const

◆ CreateDecoder()

bool CContext::CreateDecoder ( const D3D11_VIDEO_DECODER_DESC & format,
const D3D11_VIDEO_DECODER_CONFIG & config,
ID3D11VideoDecoder ** decoder,
ID3D11VideoContext ** context )

◆ CreateSurfaces()

bool CContext::CreateSurfaces ( const D3D11_VIDEO_DECODER_DESC & format,
uint32_t count,
uint32_t alignment,
ID3D11VideoDecoderOutputView ** surfaces,
HANDLE * pHandle,
bool trueShared ) const

◆ EnsureContext()

CContext::shared_ptr CContext::EnsureContext ( CDecoder * decoder)
static

◆ GetFormatAndConfig()

bool CContext::GetFormatAndConfig ( AVCodecContext * avctx,
D3D11_VIDEO_DECODER_DESC & format,
D3D11_VIDEO_DECODER_CONFIG & config ) const

◆ HasAMDWorkaround()

bool DXVA::CContext::HasAMDWorkaround ( ) const
inline

◆ IsContextShared()

bool DXVA::CContext::IsContextShared ( ) const
inline

◆ Release()

void CContext::Release ( CDecoder * decoder)

◆ Reset()

bool CContext::Reset ( )

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