MythTV  master
Classes | Macros | Functions
vaapicontext.cpp File Reference
#include "openglvideo.h"
#include "mythlogging.h"
#include "mythxdisplay.h"
#include "mythcodecid.h"
#include "mythframe.h"
#include "vaapicontext.h"
#include "mythmainwindow.h"
Include dependency graph for vaapicontext.cpp:

Go to the source code of this file.

Classes

class  VAAPIDisplay
 

Macros

#define LOC   QString("VAAPI: ")
 
#define ERR   QString("VAAPI Error: ")
 
#define NUM_VAAPI_BUFFERS   24
 
#define INIT_ST
 
#define CHECK_ST
 
#define CREATE_CHECK(arg1, arg2)
 

Functions

QString profileToString (VAProfile profile)
 
QString entryToString (VAEntrypoint entry)
 
VAProfile preferredProfile (MythCodecID codec)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("VAAPI: ")

Definition at line 9 of file vaapicontext.cpp.

◆ ERR

#define ERR   QString("VAAPI Error: ")

Definition at line 10 of file vaapicontext.cpp.

◆ NUM_VAAPI_BUFFERS

#define NUM_VAAPI_BUFFERS   24

Definition at line 11 of file vaapicontext.cpp.

◆ INIT_ST

#define INIT_ST
Value:
VAStatus va_status; \
bool ok = true

Definition at line 13 of file vaapicontext.cpp.

◆ CHECK_ST

#define CHECK_ST
Value:
ok &= (va_status == VA_STATUS_SUCCESS); \
if (!ok) \
LOG(VB_GENERAL, LOG_ERR, LOC + QString("Error at %1:%2 (#%3, %4)") \
.arg(__FILE__).arg( __LINE__).arg(va_status) \
.arg(vaErrorStr(va_status)))
#define LOC
Definition: vaapicontext.cpp:9

Definition at line 17 of file vaapicontext.cpp.

◆ CREATE_CHECK

#define CREATE_CHECK (   arg1,
  arg2 
)
Value:
if (ok) \
{ \
ok = arg1; \
if (!ok) \
LOG(VB_GENERAL, LOG_ERR, LOC + (arg2)); \
} while(false)
#define LOC
Definition: vaapicontext.cpp:9

Definition at line 24 of file vaapicontext.cpp.

Function Documentation

◆ profileToString()

QString profileToString ( VAProfile  profile)

Definition at line 36 of file vaapicontext.cpp.

Referenced by VAAPIContext::InitProfiles().

◆ entryToString()

QString entryToString ( VAEntrypoint  entry)

Definition at line 68 of file vaapicontext.cpp.

Referenced by VAAPIContext::InitProfiles().

◆ preferredProfile()

VAProfile preferredProfile ( MythCodecID  codec)

Definition at line 82 of file vaapicontext.cpp.

Referenced by VAAPIContext::InitProfiles().