MythTV  master
Macros
mythnvdecinterop.cpp File Reference
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythcorecontext.h"
#include "mythvideocolourspace.h"
#include "opengl/mythnvdecinterop.h"
#include <chrono>
#include <thread>
Include dependency graph for mythnvdecinterop.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("NVDECInterop: ")
 
#define CUDA_CHECK(CUDA_FUNCS, CUDA_CALL)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("NVDECInterop: ")

Definition at line 11 of file mythnvdecinterop.cpp.

◆ CUDA_CHECK

#define CUDA_CHECK (   CUDA_FUNCS,
  CUDA_CALL 
)
Value:
{ \
CUresult res = (CUDA_FUNCS)->CUDA_CALL; \
if (res != CUDA_SUCCESS) { \
const char * desc; \
(CUDA_FUNCS)->cuGetErrorString(res, &desc); \
LOG(VB_GENERAL, LOG_ERR, LOC + QString("CUDA error %1 (%2)").arg(res).arg(desc)); \
} \
}

Definition at line 14 of file mythnvdecinterop.cpp.

LOC
#define LOC
Definition: mythnvdecinterop.cpp:11