MythTV  master
Public Member Functions | Public Attributes | List of all members
DXVA2Decoder Class Reference

#include <dxva2decoder.h>

Collaboration diagram for DXVA2Decoder:
Collaboration graph
[legend]

Public Member Functions

 DXVA2Decoder (uint num_bufs, MythCodecID codec_id, uint width, uint height)
 
 ~DXVA2Decoder (void)
 
bool Init (MythRenderD3D9 *render)
 
bool CreateVideoService (MythRenderD3D9 *render)
 
void DestroyVideoService (void)
 
bool GetInputOutput (void)
 
void InitFormat (void)
 
bool TestTarget (const GUID &guid)
 
bool GetDecoderConfig (void)
 
bool CreateSurfaces (void)
 
void DestroySurfaces (void)
 
bool CreateDecoder (void)
 
void DestroyDecoder (void)
 
void * GetSurface (uint num)
 

Public Attributes

IDirect3DDeviceManager9 * m_deviceManager {nullptr}
 
HANDLE m_device {nullptr}
 
IDirectXVideoDecoderService * m_service {nullptr}
 
struct dxva_context m_context
 
DXVA2_ConfigPictureDecode m_config
 
MythCodecID m_codec_id
 
GUID m_input
 
DXVA2_VideoDesc m_format
 
uint m_width
 
uint m_height
 

Detailed Description

Definition at line 15 of file dxva2decoder.h.

Constructor & Destructor Documentation

◆ DXVA2Decoder()

DXVA2Decoder::DXVA2Decoder ( uint  num_bufs,
MythCodecID  codec_id,
uint  width,
uint  height 
)

Definition at line 128 of file dxva2decoder.cpp.

◆ ~DXVA2Decoder()

DXVA2Decoder::~DXVA2Decoder ( void  )

Definition at line 142 of file dxva2decoder.cpp.

Member Function Documentation

◆ Init()

bool DXVA2Decoder::Init ( MythRenderD3D9 render)

Definition at line 149 of file dxva2decoder.cpp.

Referenced by VideoOutputD3D::CreateDecoder().

◆ CreateVideoService()

bool DXVA2Decoder::CreateVideoService ( MythRenderD3D9 render)

Definition at line 167 of file dxva2decoder.cpp.

Referenced by Init().

◆ DestroyVideoService()

void DXVA2Decoder::DestroyVideoService ( void  )

Definition at line 203 of file dxva2decoder.cpp.

Referenced by ~DXVA2Decoder().

◆ GetInputOutput()

bool DXVA2Decoder::GetInputOutput ( void  )

Definition at line 214 of file dxva2decoder.cpp.

Referenced by Init().

◆ InitFormat()

void DXVA2Decoder::InitFormat ( void  )

Definition at line 268 of file dxva2decoder.cpp.

Referenced by Init().

◆ TestTarget()

bool DXVA2Decoder::TestTarget ( const GUID &  guid)

Definition at line 247 of file dxva2decoder.cpp.

Referenced by GetInputOutput().

◆ GetDecoderConfig()

bool DXVA2Decoder::GetDecoderConfig ( void  )

Definition at line 279 of file dxva2decoder.cpp.

Referenced by Init().

◆ CreateSurfaces()

bool DXVA2Decoder::CreateSurfaces ( void  )

Definition at line 316 of file dxva2decoder.cpp.

Referenced by Init().

◆ DestroySurfaces()

void DXVA2Decoder::DestroySurfaces ( void  )

Definition at line 336 of file dxva2decoder.cpp.

Referenced by ~DXVA2Decoder().

◆ CreateDecoder()

bool DXVA2Decoder::CreateDecoder ( void  )

Definition at line 350 of file dxva2decoder.cpp.

Referenced by Init().

◆ DestroyDecoder()

void DXVA2Decoder::DestroyDecoder ( void  )

Definition at line 370 of file dxva2decoder.cpp.

Referenced by ~DXVA2Decoder().

◆ GetSurface()

void * DXVA2Decoder::GetSurface ( uint  num)

Definition at line 377 of file dxva2decoder.cpp.

Referenced by VideoOutputD3D::InitBuffers().

Member Data Documentation

◆ m_deviceManager

IDirect3DDeviceManager9* DXVA2Decoder::m_deviceManager {nullptr}

Definition at line 34 of file dxva2decoder.h.

Referenced by CreateVideoService(), and DestroyVideoService().

◆ m_device

HANDLE DXVA2Decoder::m_device {nullptr}

Definition at line 35 of file dxva2decoder.h.

Referenced by CreateVideoService(), and DestroyVideoService().

◆ m_service

IDirectXVideoDecoderService* DXVA2Decoder::m_service {nullptr}

◆ m_context

struct dxva_context DXVA2Decoder::m_context

◆ m_config

DXVA2_ConfigPictureDecode DXVA2Decoder::m_config

Definition at line 38 of file dxva2decoder.h.

Referenced by DXVA2Decoder(), and GetDecoderConfig().

◆ m_codec_id

MythCodecID DXVA2Decoder::m_codec_id

Definition at line 39 of file dxva2decoder.h.

Referenced by CreateDecoder(), and GetInputOutput().

◆ m_input

GUID DXVA2Decoder::m_input

Definition at line 40 of file dxva2decoder.h.

Referenced by CreateDecoder(), GetDecoderConfig(), and TestTarget().

◆ m_format

DXVA2_VideoDesc DXVA2Decoder::m_format

◆ m_width

uint DXVA2Decoder::m_width

Definition at line 42 of file dxva2decoder.h.

Referenced by CreateDecoder(), CreateSurfaces(), Init(), and InitFormat().

◆ m_height

uint DXVA2Decoder::m_height

Definition at line 43 of file dxva2decoder.h.

Referenced by CreateDecoder(), CreateSurfaces(), Init(), and InitFormat().


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