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 "libavutil/log.h"
#include <ffnvcodec/dynlink_loader.h>
Include dependency graph for mythnvdecinterop.cpp:

Go to the source code of this file.

Macros

#define FFNV_LOG_FUNC(logctx, msg, ...)   av_log(logctx, AV_LOG_ERROR, msg, __VA_ARGS__)
 
#define FFNV_DEBUG_LOG_FUNC(logctx, msg, ...)   av_log(logctx, AV_LOG_DEBUG, msg, __VA_ARGS__)
 
#define LOC   QString("NVDECInterop: ")
 
#define CUDA_CHECK(CUDA_FUNCS, CUDA_CALL)
 

Macro Definition Documentation

◆ FFNV_LOG_FUNC

#define FFNV_LOG_FUNC (   logctx,
  msg,
  ... 
)    av_log(logctx, AV_LOG_ERROR, msg, __VA_ARGS__)

Definition at line 13 of file mythnvdecinterop.cpp.

◆ FFNV_DEBUG_LOG_FUNC

#define FFNV_DEBUG_LOG_FUNC (   logctx,
  msg,
  ... 
)    av_log(logctx, AV_LOG_DEBUG, msg, __VA_ARGS__)

Definition at line 14 of file mythnvdecinterop.cpp.

◆ LOC

#define LOC   QString("NVDECInterop: ")

Definition at line 18 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 21 of file mythnvdecinterop.cpp.

LOC
#define LOC
Definition: mythnvdecinterop.cpp:18