MythTV master
Classes | Macros | Typedefs | Functions | Variables
dxva2decoder.cpp File Reference
#include <QString>
#include <QLibrary>
#include "libmythbase/mythlogging.h"
#include "initguid.h"
#include "libmythui/mythrender_d3d9.h"
#include "dxva2decoder.h"
Include dependency graph for dxva2decoder.cpp:

Go to the source code of this file.

Classes

struct  dxva2_mode
 

Macros

#define LOC   QString("DXVA2: ")
 
#define ERR   QString("DXVA2 Error: ")
 
#define DXVA2_ModeWMV8_PostProc   DXVA2_ModeWMV8_A
 
#define DXVA2_ModeWMV8_MoComp   DXVA2_ModeWMV8_B
 
#define DXVA2_ModeWMV9_PostProc   DXVA2_ModeWMV9_A
 
#define DXVA2_ModeWMV9_MoComp   DXVA2_ModeWMV9_B
 
#define DXVA2_ModeWMV9_IDCT   DXVA2_ModeWMV9_C
 
#define DXVA2_ModeVC1_PostProc   DXVA2_ModeVC1_A
 
#define DXVA2_ModeVC1_MoComp   DXVA2_ModeVC1_B
 
#define DXVA2_ModeVC1_IDCT   DXVA2_ModeVC1_C
 
#define DXVA2_ModeVC1_VLD   DXVA2_ModeVC1_D
 
#define DXVA2_ModeH264_MoComp_NoFGT   DXVA2_ModeH264_A
 
#define DXVA2_ModeH264_MoComp_FGT   DXVA2_ModeH264_B
 
#define DXVA2_ModeH264_IDCT_NoFGT   DXVA2_ModeH264_C
 
#define DXVA2_ModeH264_IDCT_FGT   DXVA2_ModeH264_D
 
#define DXVA2_ModeH264_VLD_NoFGT   DXVA2_ModeH264_E
 
#define DXVA2_ModeH264_VLD_FGT   DXVA2_ModeH264_F
 
#define CREATE_CHECK(arg1, arg2)
 

Typedefs

using DXVA2CreateVideoServicePtr = HRESULT(__stdcall *)(IDirect3DDevice9 *pDD, REFIID riid, void **ppService)
 

Functions

static QString toString (const GUID &guid)
 
 DEFINE_GUID (DXVA2_Intel_ModeH264_A, 0x604F8E64, 0x4951, 0x4c54, 0x88, 0xFE, 0xAB, 0xD2, 0x5C, 0x15, 0xB3, 0xD6)
 
 DEFINE_GUID (DXVA2_Intel_ModeH264_C, 0x604F8E66, 0x4951, 0x4c54, 0x88, 0xFE, 0xAB, 0xD2, 0x5C, 0x15, 0xB3, 0xD6)
 
 DEFINE_GUID (DXVA2_Intel_ModeH264_E, 0x604F8E68, 0x4951, 0x4c54, 0x88, 0xFE, 0xAB, 0xD2, 0x5C, 0x15, 0xB3, 0xD6)
 
 DEFINE_GUID (DXVA2_Intel_ModeVC1_E, 0xBCC5DB6D, 0xA2B6, 0x4AF0, 0xAC, 0xE4, 0xAD, 0xB1, 0xF7, 0x87, 0xBC, 0x89)
 

Variables

static const dxva2_mode dxva2_modes []
 

Macro Definition Documentation

◆ CREATE_CHECK

#define CREATE_CHECK (   arg1,
  arg2 
)
Value:
if (ok) \
{ \
ok = arg1; \
if (!ok) \
LOG(VB_GENERAL, LOG_ERR, LOC + (arg2)); \
}
#define LOC

Definition at line 92 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_IDCT_FGT

#define DXVA2_ModeH264_IDCT_FGT   DXVA2_ModeH264_D

Definition at line 43 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_IDCT_NoFGT

#define DXVA2_ModeH264_IDCT_NoFGT   DXVA2_ModeH264_C

Definition at line 42 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_MoComp_FGT

#define DXVA2_ModeH264_MoComp_FGT   DXVA2_ModeH264_B

Definition at line 41 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_MoComp_NoFGT

#define DXVA2_ModeH264_MoComp_NoFGT   DXVA2_ModeH264_A

Definition at line 40 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_VLD_FGT

#define DXVA2_ModeH264_VLD_FGT   DXVA2_ModeH264_F

Definition at line 45 of file dxva2decoder.cpp.

◆ DXVA2_ModeH264_VLD_NoFGT

#define DXVA2_ModeH264_VLD_NoFGT   DXVA2_ModeH264_E

Definition at line 44 of file dxva2decoder.cpp.

◆ DXVA2_ModeVC1_IDCT

#define DXVA2_ModeVC1_IDCT   DXVA2_ModeVC1_C

Definition at line 37 of file dxva2decoder.cpp.

◆ DXVA2_ModeVC1_MoComp

#define DXVA2_ModeVC1_MoComp   DXVA2_ModeVC1_B

Definition at line 36 of file dxva2decoder.cpp.

◆ DXVA2_ModeVC1_PostProc

#define DXVA2_ModeVC1_PostProc   DXVA2_ModeVC1_A

Definition at line 35 of file dxva2decoder.cpp.

◆ DXVA2_ModeVC1_VLD

#define DXVA2_ModeVC1_VLD   DXVA2_ModeVC1_D

Definition at line 38 of file dxva2decoder.cpp.

◆ DXVA2_ModeWMV8_MoComp

#define DXVA2_ModeWMV8_MoComp   DXVA2_ModeWMV8_B

Definition at line 29 of file dxva2decoder.cpp.

◆ DXVA2_ModeWMV8_PostProc

#define DXVA2_ModeWMV8_PostProc   DXVA2_ModeWMV8_A

Definition at line 28 of file dxva2decoder.cpp.

◆ DXVA2_ModeWMV9_IDCT

#define DXVA2_ModeWMV9_IDCT   DXVA2_ModeWMV9_C

Definition at line 33 of file dxva2decoder.cpp.

◆ DXVA2_ModeWMV9_MoComp

#define DXVA2_ModeWMV9_MoComp   DXVA2_ModeWMV9_B

Definition at line 32 of file dxva2decoder.cpp.

◆ DXVA2_ModeWMV9_PostProc

#define DXVA2_ModeWMV9_PostProc   DXVA2_ModeWMV9_A

Definition at line 31 of file dxva2decoder.cpp.

◆ ERR

#define ERR   QString("DXVA2 Error: ")

Definition at line 26 of file dxva2decoder.cpp.

◆ LOC

#define LOC   QString("DXVA2: ")

Definition at line 25 of file dxva2decoder.cpp.

Typedef Documentation

◆ DXVA2CreateVideoServicePtr

using DXVA2CreateVideoServicePtr = HRESULT (__stdcall *)(IDirect3DDevice9* pDD, REFIID riid, void** ppService)

Definition at line 135 of file dxva2decoder.cpp.

Function Documentation

◆ DEFINE_GUID() [1/4]

DEFINE_GUID ( DXVA2_Intel_ModeH264_A  ,
0x604F8E64  ,
0x4951  ,
0x4c54  ,
0x88  ,
0xFE  ,
0xAB  ,
0xD2  ,
0x5C  ,
0x15  ,
0xB3  ,
0xD6   
)

◆ DEFINE_GUID() [2/4]

DEFINE_GUID ( DXVA2_Intel_ModeH264_C  ,
0x604F8E66  ,
0x4951  ,
0x4c54  ,
0x88  ,
0xFE  ,
0xAB  ,
0xD2  ,
0x5C  ,
0x15  ,
0xB3  ,
0xD6   
)

◆ DEFINE_GUID() [3/4]

DEFINE_GUID ( DXVA2_Intel_ModeH264_E  ,
0x604F8E68  ,
0x4951  ,
0x4c54  ,
0x88  ,
0xFE  ,
0xAB  ,
0xD2  ,
0x5C  ,
0x15  ,
0xB3  ,
0xD6   
)

◆ DEFINE_GUID() [4/4]

DEFINE_GUID ( DXVA2_Intel_ModeVC1_E  ,
0xBCC5DB6D  ,
0xA2B6  ,
0x4AF0  ,
0xAC  ,
0xE4  ,
0xAD  ,
0xB1  ,
0xF7  ,
0x87  ,
0xBC  ,
0x89   
)

◆ toString()

static QString toString ( const GUID &  guid)
inlinestatic

Definition at line 9 of file dxva2decoder.cpp.

Referenced by DXVA2Decoder::CreateDecoder(), and DXVA2Decoder::GetInputOutput().

Variable Documentation

◆ dxva2_modes

const dxva2_mode dxva2_modes[]
static

Definition at line 58 of file dxva2decoder.cpp.

Referenced by DXVA2Decoder::GetInputOutput().