kodi
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
VAAPI::CDecoder Class Reference
Inheritance diagram for VAAPI::CDecoder:
Inheritance graph
[legend]
Collaboration diagram for VAAPI::CDecoder:
Collaboration graph
[legend]

Public Member Functions

 CDecoder (CProcessInfo &processInfo)
 
bool Open (AVCodecContext *avctx, AVCodecContext *mainctx, const enum AVPixelFormat) override
 
CDVDVideoCodec::VCReturn Decode (AVCodecContext *avctx, AVFrame *frame) override
 
bool GetPicture (AVCodecContext *avctx, VideoPicture *picture) override
 
void Reset () override
 
virtual void Close ()
 
long Release () override
 
bool CanSkipDeint () override
 
unsigned GetAllowedReferences () override
 
CDVDVideoCodec::VCReturn Check (AVCodecContext *avctx) override
 
const std::string Name () override
 
void SetCodecControl (int flags) override
 
void FFReleaseBuffer (uint8_t *data)
 
- Public Member Functions inherited from IDVDResourceCounted< IHardwareDecoder >
 IDVDResourceCounted (const IDVDResourceCounted &)=delete
 
IDVDResourceCountedoperator= (const IDVDResourceCounted &)=delete
 
virtual IHardwareDecoderAcquire ()
 

Static Public Member Functions

static int FFGetBuffer (AVCodecContext *avctx, AVFrame *pic, int flags)
 
static IHardwareDecoderCreate (CDVDStreamInfo &hint, CProcessInfo &processInfo, AVPixelFormat fmt)
 
static void Register (IVaapiWinSystem *winSystem, bool deepColor)
 

Static Public Attributes

static IVaapiWinSystemm_pWinSystem = nullptr
 

Protected Types

enum  EDisplayState { VAAPI_OPEN, VAAPI_RESET, VAAPI_LOST, VAAPI_ERROR }
 

Protected Member Functions

void SetWidthHeight (int width, int height)
 
bool ConfigVAAPI ()
 
bool CheckStatus (VAStatus vdp_st, int line)
 
void FiniVAAPIOutput ()
 
void ReturnRenderPicture (CVaapiRenderPicture *renderPic)
 
long ReleasePicReference ()
 
bool CheckSuccess (VAStatus status, const std::string &function)
 

Protected Attributes

enum VAAPI::CDecoder::EDisplayState m_DisplayState
 
CCriticalSection m_DecoderSection
 
CEvent m_DisplayEvent
 
int m_ErrorCount
 
bool m_vaapiConfigured
 
CVaapiConfig m_vaapiConfig
 
CVideoSurfaces m_videoSurfaces
 
int m_getBufferError
 
COutput m_vaapiOutput
 
CVaapiBufferStats m_bufferStats
 
CEvent m_inMsgEvent
 
CVaapiRenderPicturem_presentPicture = nullptr
 
int m_codecControl
 
CProcessInfom_processInfo
 

Static Protected Attributes

static bool m_capGeneral = false
 
static bool m_capDeepColor = false
 

Friends

class CVaapiBufferPool
 

Additional Inherited Members

- Public Attributes inherited from IDVDResourceCounted< IHardwareDecoder >
std::atomic< long > m_refs
 

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