]> git.sesse.net Git - ffmpeg/commit
avutil/hwcontext_cuda: Define and use common CHECK_CU()
authorPhilip Langdale <philipl@overt.org>
Sun, 11 Nov 2018 06:47:28 +0000 (22:47 -0800)
committerPhilip Langdale <philipl@overt.org>
Thu, 15 Nov 2018 01:39:42 +0000 (17:39 -0800)
commit19d3d0c0570981ddc8a224f07d734ff75d76e234
tree01f718e1878010605cd28d5947b676d42519dfc9
parentf0f2832a5ce93bad9b1d29f99df6bda2380fc41c
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
16 files changed:
libavcodec/Makefile
libavcodec/cuda_check.c [new file with mode: 0644]
libavcodec/cuviddec.c
libavcodec/nvdec.c
libavcodec/nvenc.c
libavfilter/Makefile
libavfilter/cuda_check.c [new file with mode: 0644]
libavfilter/vf_scale_cuda.c
libavfilter/vf_scale_npp.c
libavfilter/vf_thumbnail_cuda.c
libavfilter/vf_transpose_npp.c
libavfilter/vf_yadif_cuda.c
libavutil/Makefile
libavutil/cuda_check.c [new file with mode: 0644]
libavutil/cuda_check.h [new file with mode: 0644]
libavutil/hwcontext_cuda.c