20#ifndef AVUTIL_CUDA_CHECK_H
21#define AVUTIL_CUDA_CHECK_H
33 void *cuGetErrorName_fn,
void *cuGetErrorString_fn,
34 CUresult err,
const char *
func)
37 const char *err_string;
41 if (err == CUDA_SUCCESS)
48 if (err_name && err_string)
59#define FF_CUDA_CHECK(avclass, x) ff_cuda_check(avclass, cuGetErrorName, cuGetErrorString, (x), #x)
65#define FF_CUDA_CHECK_DL(avclass, cudl, x) ff_cuda_check(avclass, cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x)
CUresult CUDAAPI cuda_check_GetErrorString(CUresult error, const char **pstr)
CUresult CUDAAPI cuda_check_GetErrorName(CUresult error, const char **pstr)
static int ff_cuda_check(void *avctx, void *cuGetErrorName_fn, void *cuGetErrorString_fn, CUresult err, const char *func)
Wrap a CUDA function call and print error information if it fails.
#define AVERROR_EXTERNAL
Generic error in an external library.
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
static void error(const char *err)