avutil/hwcontext_cuda: Define and use common CHECK_CU()
We have a pattern of wrapping CUDA calls to print errors and normalise return values that is used in a couple of places. To avoid duplication and increase consistency, let's put the wrapper implementation in a shared place and use it everywhere. Affects: * avcodec/cuviddec * avcodec/nvdec * avcodec/nvenc * avfilter/vf_scale_cuda * avfilter/vf_scale_npp * avfilter/vf_thumbnail_cuda * avfilter/vf_transpose_npp * avfilter/vf_yadif_cuda
Showing
libavcodec/cuda_check.c
0 → 100644
libavfilter/cuda_check.c
0 → 100644
libavutil/cuda_check.c
0 → 100644
libavutil/cuda_check.h
0 → 100644
Please
register
or
sign in
to comment