MythTV  master
Macros | Functions
mythvdpauhelper.cpp File Reference
#include "libmythbase/mythlogging.h"
#include "mythvideocolourspace.h"
#include "mythvdpauhelper.h"
#include "libmythui/platforms/mythxdisplay.h"
#include <cmath>
Include dependency graph for mythvdpauhelper.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("VDPAUHelp: ")
 
#define INIT_ST
 
#define CHECK_ST
 
#define GET_PROC(FUNC_ID, PROC)   status = m_vdpGetProcAddress(m_device, FUNC_ID, reinterpret_cast<void **>(&(PROC))); CHECK_ST
 

Functions

static void vdpau_preemption_callback (VdpDevice, void *Opaque)
 
static const char * DummyGetError (VdpStatus)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("VDPAUHelp: ")

Definition at line 10 of file mythvdpauhelper.cpp.

◆ INIT_ST

#define INIT_ST
Value:
VdpStatus status; \
bool ok = true;

Definition at line 12 of file mythvdpauhelper.cpp.

◆ CHECK_ST

#define CHECK_ST
Value:
ok &= (status == VDP_STATUS_OK); \
if (!ok) \
{ \
LOG(VB_PLAYBACK, LOG_ERR, LOC + QString("Error at %1:%2 (#%3, %4)") \
.arg(__FILE__).arg( __LINE__).arg(status) \
.arg(m_vdpGetErrorString(status))); \
}

Definition at line 17 of file mythvdpauhelper.cpp.

◆ GET_PROC

#define GET_PROC (   FUNC_ID,
  PROC 
)    status = m_vdpGetProcAddress(m_device, FUNC_ID, reinterpret_cast<void **>(&(PROC))); CHECK_ST

Definition at line 26 of file mythvdpauhelper.cpp.

Function Documentation

◆ vdpau_preemption_callback()

static void vdpau_preemption_callback ( VdpDevice  ,
void *  Opaque 
)
static

Definition at line 226 of file mythvdpauhelper.cpp.

Referenced by MythVDPAUHelper::MythVDPAUHelper().

◆ DummyGetError()

static const char* DummyGetError ( VdpStatus  )
static
LOC
#define LOC
Definition: mythvdpauhelper.cpp:10