[FFmpeg-devel] [PATCH 4/5] avfilter/vf_thumbnail_cuda: Switch to using ffnvcodec
Soft Works
softworkz at hotmail.com
Fri Feb 22 07:46:12 EET 2019
> Subject: [FFmpeg-devel] [PATCH 4/5] avfilter/vf_thumbnail_cuda: Switch to using ffnvcodec
>
> This change switches the vf_thumbnail_cuda filter from using the
> full cuda sdk to using the ffnvcodec headers and loader.
>
> Most of the change is a direct mapping, but I also switched from
> using texture references to using texture objects. This is supposed
> to be the preferred way of using textures, and the texture object API
> is the one I added to ffnvcodec.
>
> Signed-off-by: Philip Langdale <philipl at overt.org>
> ---
> configure | 2 +-
> libavfilter/vf_thumbnail_cuda.c | 147 +++++++++++++++++--------------
> libavfilter/vf_thumbnail_cuda.cu | 25 +++---
> 3 files changed, 93 insertions(+), 81 deletions(-)
> - CHECK_CU(cuMemsetD8(s->data, 0, HIST_SIZE * sizeof(int)));
> + CHECK_CU(cu->cuMemsetD8Async(s->data, 0, HIST_SIZE * sizeof(int), s->cu_stream));
Hi Phil,
the only problem I encountered was the cuMemsetD8Async function
which needs yet to be added to the ffnvcodec headers.
The other filters are building fine (MSYS2/Win).
-- softworkz
More information about the ffmpeg-devel
mailing list