[FFmpeg-devel] [PATCH 4/5] avfilter/vf_thumbnail_cuda: Switch to using ffnvcodec
Philip Langdale
philipl at overt.org
Sat Feb 23 04:56:56 EET 2019
On Fri, 22 Feb 2019 05:46:12 +0000
Soft Works <softworkz at hotmail.com> wrote:
> > 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).
https://github.com/philipl/nv-codec-headers/commit/dc12b592e5efc195d75363b8aae74db1180c9b0d
--phil
More information about the ffmpeg-devel
mailing list