[FFmpeg-devel] [PATCH] doc/filters: Add thumbnail_cuda documentation; Update thumbnail_cuda filter description.

2025-03-21 Thread Danil Iashchenko
Hi! Added documentation for the thumbnail_cuda filter and updated its description to align with the format of other CUDA-based filters. The new description clarifies its behaviour and avoids confusion with the {thumbnail} filter. Thank you for review! Regards, Danil Iashchenko --- doc

[FFmpeg-devel] [PATCH] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-03-16 Thread Danil Iashchenko
Hi Gyan and Michael, Thank you for reviewing the patch and providing feedback! I've addressed all the issues and resubmitting the patch (built and tested with Texinfo 7.1.1). Per Gyan's suggestion, I'm resubmitting since Patchwork was down when I originally sent it on the 10th. Please let me

[FFmpeg-devel] [PATCH] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-03-11 Thread Danil Iashchenko
--- doc/filters.texi | 1353 -- 1 file changed, 713 insertions(+), 640 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 0ba7d3035f..37b8674756 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8619,45 +8619,6 @@ Set planes to f

[FFmpeg-devel] [PATCH] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-03-02 Thread Danil Iashchenko
--- doc/filters.texi | 1353 -- 1 file changed, 713 insertions(+), 640 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 0ba7d3035f..b2e836e112 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8619,45 +8619,6 @@ Set planes to f

[FFmpeg-devel] [PATCH] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-02-02 Thread Danil Iashchenko
--- doc/filters.texi | 1323 -- 1 file changed, 700 insertions(+), 623 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index c2817b2661..7460b7ef18 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8619,45 +8619,6 @@ Set planes to f

[FFmpeg-devel] [PATCH 1/2] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-01-28 Thread Danil Iashchenko
--- doc/filters.texi | 687 +++ 1 file changed, 687 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index a14c7e7e77..c4f312d2b8 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -26890,6 +26890,693 @@ value. @c man end VIDEO FIL

[FFmpeg-devel] [PATCH 2/2] doc/filters: Remove redundant *_cuda and *_npp filters since they are already in CUDA Video Filters section

2025-01-28 Thread Danil Iashchenko
--- doc/filters.texi | 630 +-- 1 file changed, 10 insertions(+), 620 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index c4f312d2b8..28be8920fd 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8619,45 +8619,6 @@ Set planes to fi

[FFmpeg-devel] [PATCH 1/1] [doc/filters] add nvidia cuda and cuda npp sections

2025-01-15 Thread Danil Iashchenko
Add Nvidia Cuda and Cuda NPP sections for video filters. --- doc/filters.texi | 1545 +++--- 1 file changed, 778 insertions(+), 767 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index b926b865ae..efa5e84f29 100644 --- a/doc/filters.texi +++

[FFmpeg-devel] [PATCH 1/2] docs/filters: add documentation to all existing OpenCL filters

2018-08-15 Thread Danil Iashchenko
docs/filters: add documentation to all existing OpenCL filters --- Hi! Sorry for delay. Added general instruction for format conversion in the start of overall section and separatly for overlay_opencl. As far as I understand, different format conversion depends on which formats are supported b

[FFmpeg-devel] [PATCH] lavfi: add erosion_opencl, dilation_opencl filters

2018-08-12 Thread Danil Iashchenko
r ff_vf_extractplanes; extern AVFilter ff_vf_fade; extern AVFilter ff_vf_fftdnoiz; diff --git a/libavfilter/opencl/neighbor.cl b/libavfilter/opencl/neighbor.cl new file mode 100644 index 000..2235e3e --- /dev/null +++ b/libavfilter/opencl/neighbor.cl @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018 Danil I

[FFmpeg-devel] [PATCH] lavfi: add erosion_opencl, dilation_opencl filters

2018-08-08 Thread Danil Iashchenko
es; extern AVFilter ff_vf_fade; extern AVFilter ff_vf_fftdnoiz; diff --git a/libavfilter/opencl/neighbor.cl b/libavfilter/opencl/neighbor.cl new file mode 100644 index 000..2235e3e --- /dev/null +++ b/libavfilter/opencl/neighbor.cl @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018 Danil Iashchenko

[FFmpeg-devel] [PATCH] lavfi: add erosion_opencl, dilation_opencl filters

2018-08-08 Thread Danil Iashchenko
f_vf_extractplanes; extern AVFilter ff_vf_fade; extern AVFilter ff_vf_fftdnoiz; diff --git a/libavfilter/opencl/neighbor.cl b/libavfilter/opencl/neighbor.cl new file mode 100644 index 000..2235e3e --- /dev/null +++ b/libavfilter/opencl/neighbor.cl @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2

[FFmpeg-devel] [PATCH 1/2] docs/filters: add documentation to all existing OpenCL filters

2018-08-03 Thread Danil Iashchenko
docs/filters: add documentation to all existing OpenCL filters --- Thanks, fixed! Danil. doc/filters.texi | 415 +++ 1 file changed, 415 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 705d48e..363fe7d 100644 --- a/doc/f

[FFmpeg-devel] [PATCH 1/2] docs/filters: add documentation to all existing OpenCL filters

2018-07-31 Thread Danil Iashchenko
docs/filters: add documentation to all existing OpenCL filters --- Thanks for your comments! Most of the issues have been fixed. >The filer source has many more options defined. >In addition, there are many missing values for the tonemap algo; it appears >not all are effected. If that's the cas

[FFmpeg-devel] [PATCH] lavfi: add lumakey_opencl filter

2018-07-27 Thread Danil Iashchenko
Add lumakey_opencl filter. Behaves like existing lumakey filter. --- On Wed, Jul 25, 2018 at 10:50:43AM -0300, James Almer wrote: >> On 7/25/2018 9:13 AM, Danil Iashchenko wrote: >> > Add lumakey_opencl filter. Behaves like existing lumakey filter. >> >> Isn't i

[FFmpeg-devel] [PATCH] lavfi: add lumakey_opencl filter

2018-07-25 Thread Danil Iashchenko
Filter ff_vf_lut2; extern AVFilter ff_vf_lut3d; diff --git a/libavfilter/opencl/lumakey.cl b/libavfilter/opencl/lumakey.cl new file mode 100644 index 000..dbee63e --- /dev/null +++ b/libavfilter/opencl/lumakey.cl @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is

[FFmpeg-devel] [PATCH] doc/filters: update info about avgblur filter to make it more understandable

2018-07-20 Thread Danil Iashchenko
doc/filters: update info about avgblur filter to make it more understandable --- doc/filters.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 705d48e..e3005c3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -5431,13 +54

[FFmpeg-devel] [PATCH 2/2] moved program_opencl and openclsrc filters to OpenCL section

2018-07-20 Thread Danil Iashchenko
moved program_opencl and openclsrc filters to OpenCL section --- doc/filters.texi | 404 +++ 1 file changed, 202 insertions(+), 202 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index d206972..d9458cd 100644 --- a/doc/filters.te

[FFmpeg-devel] [PATCH 1/2] docs/filters: add documentation to all existing OpenCL filters

2018-07-20 Thread Danil Iashchenko
docs/filters: add documentation to all existing OpenCL filters --- doc/filters.texi | 458 +++ 1 file changed, 458 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 705d48e..d206972 100644 --- a/doc/filters.texi +++ b/doc/fil

[FFmpeg-devel] [PATCH] lavfi/convolution_opencl: use CL_FAIL_ON_ERROR for error handling

2018-07-12 Thread Danil Iashchenko
Switch to use CL_FAIL_ON_ERROR for error handling --- >Hi Danil, >The patch looks good, But I think it would be more proper to use a title like >"switch to use CL_FAIL_ON_ERROR " or "use CL_FAIL_ON_ERROR for error handling". >Ruiling Hi! Changed title to a proper one. Thanks! Danil. libav

[FFmpeg-devel] [PATCH] lavfi/convolution_opencl: implement CL_FAIL_ON_ERR macro

2018-07-12 Thread Danil Iashchenko
--- libavfilter/vf_convolution_opencl.c | 46 + 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c index e2ba81b..00246b2 100644 --- a/libavfilter/vf_convolution_opencl.c +++

[FFmpeg-devel] [PATCH] lavfi/avgblur_opencl: fix using uninitialized value

2018-07-09 Thread Danil Iashchenko
Fixed using uninitialized value "global_work[0]" when calling "av_log". --- libavfilter/vf_avgblur_opencl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_avgblur_opencl.c b/libavfilter/vf_avgblur_opencl.c index d1d3eb1..772b14e 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH] lavfi: add vflip_opencl, hflip_opencl

2018-07-08 Thread Danil Iashchenko
+extern AVFilter ff_vf_vflip_opencl; extern AVFilter ff_vf_vfrdet; extern AVFilter ff_vf_vidstabdetect; extern AVFilter ff_vf_vidstabtransform; diff --git a/libavfilter/opencl/vflip.cl b/libavfilter/opencl/vflip.cl new file mode 100644 index 000..4ed2f43 --- /dev/null +++ b/libavfilter/opencl/vfl

[FFmpeg-devel] [PATCH] doc/filters: add documentation to all existing OpenCL filters, except tonemap filter

2018-07-05 Thread Danil Iashchenko
add documentation to all existing OpenCL filters --- >I like this patch, the other thing, is it have any plan to update >openCL part like VAAPI (https://trac.ffmpeg.org/wiki/Hardware/VAAPI) >in https://trac.ffmpeg.org/wiki/HWAccelIntro, thanks. I am going to add it during the next week, thanks! >W

[FFmpeg-devel] [PATCH] doc/filters: add documentation to all existing OpenCL filters, except tonemap filter

2018-07-02 Thread Danil Iashchenko
Add documentation to all existing OpenCL filters, except tonemap filter. --- Creation of the seperate section for OpenCL filters is motivated by developing support for Vulkan and CUDA and it is easier to show the capabilities of each platform by adding new sections. doc/filters.texi | 193

[FFmpeg-devel] [PATCH 2/2] lavfi/vf_avgblur_opencl: remove useless clFinish().

2018-07-02 Thread Danil Iashchenko
The very last clFinish() should be ok. Signed-off-by: Ruiling Song --- libavfilter/vf_avgblur_opencl.c | 1 - 1 file changed, 1 deletion(-) Looks good to me. Thanks! Danil. diff --git a/libavfilter/vf_avgblur_opencl.c b/libavfilter/vf_avgblur_opencl.c index bc6bcab..99ed1ca 100644 --- a/libavf

[FFmpeg-devel] [PATCH] lavfi: add sobel, prewitt, roberts filters

2018-06-29 Thread Danil Iashchenko
Add opencl version of sobel, prewitt, roberts filters. --- Fixed, Thanks! Docs to all opencl-based filters will be added in another patch. configure | 3 + libavfilter/Makefile| 8 +- libavfilter/allfilters.c| 3 + libavfilter/opencl/con

[FFmpeg-devel] [PATCH] lavfi: add sobel, prewitt, roberts filters

2018-06-24 Thread Danil Iashchenko
Add opencl version of sobel, prewitt, roberts filters. --- configure | 3 + libavfilter/Makefile| 8 +- libavfilter/allfilters.c| 3 + libavfilter/opencl/convolution.cl | 82 ++ libavfilter/vf_convolution_opencl.c | 306 +++

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-06-19 Thread Danil Iashchenko
filter/boxblur.c new file mode 100644 index 000..5ef3a05 --- /dev/null +++ b/libavfilter/boxblur.c @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2002 Michael Niedermayer + * Copyright (c) 2011 Stefano Sabatini + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg i

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-06-19 Thread Danil Iashchenko
er/boxblur.c b/libavfilter/boxblur.c new file mode 100644 index 000..1d4895e --- /dev/null +++ b/libavfilter/boxblur.c @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it

[FFmpeg-devel] [PATCH] libavfilter/opencl.h: Add macro for setting opencl kernel

2018-06-14 Thread Danil Iashchenko
--- Hi! I like your idea with OCL_FAIL_ON_ERR(), but still do not know which one is better. My idea relies on fact, that there are only few OpenCL functions which are used multiple times in filters: clSetKernelArg, clCreateKernel(in case when there are multiple kernels) and maybe clEnqueueNDRan

[FFmpeg-devel] [PATCH] libavfilter/opencl.h: Add macro for setting opencl kernel

2018-06-11 Thread Danil Iashchenko
--- libavfilter/opencl.h| 15 ++ libavfilter/vf_convolution_opencl.c | 43 libavfilter/vf_overlay_opencl.c | 44 +++- libavfilter/vf_unsharp_opencl.c | 57 ++--- 4 files changed, 46

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-06-10 Thread Danil Iashchenko
/libavfilter/boxblur.c new file mode 100644 index 000..1d4895e --- /dev/null +++ b/libavfilter/boxblur.c @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the term

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-06-08 Thread Danil Iashchenko
; extern AVFilter ff_vf_ciescope; diff --git a/libavfilter/boxblur.c b/libavfilter/boxblur.c new file mode 100644 index 000..1d4895e --- /dev/null +++ b/libavfilter/boxblur.c @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg is free

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-06-05 Thread Danil Iashchenko
/libavfilter/vf_avgblur_opencl.c b/libavfilter/vf_avgblur_opencl.c index 48cebb5..d4759de 100644 --- a/libavfilter/vf_avgblur_opencl.c +++ b/libavfilter/vf_avgblur_opencl.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2018 Dylan Fernando + * Copyright (c) 2018 Danil Iashchenko * * This file is part of FFmpeg

[FFmpeg-devel] [PATCH] libavfilter/opencl.h: Add macro for setting opencl kernel

2018-06-03 Thread Danil Iashchenko
Fixed, thanks! Also implemented macro for other filters: avgblur_opencl, convolution_opencl, unsharp_opencl, overlay_opencl. --- libavfilter/opencl.h| 13 + libavfilter/vf_avgblur_opencl.c | 48 --- libavfilter/vf_convolution_opencl.c | 43

[FFmpeg-devel] [PATCH] libavfilter/opencl.h: Add macro for setting opencl kernel arguments

2018-06-02 Thread Danil Iashchenko
--- libavfilter/opencl.h| 13 +++ libavfilter/vf_convolution_opencl.c | 43 ++--- 2 files changed, 19 insertions(+), 37 deletions(-) diff --git a/libavfilter/opencl.h b/libavfilter/opencl.h index c0a4519..16cdfbe 100644 --- a/libavfilter/ope

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-05-28 Thread Danil Iashchenko
- /dev/null +++ b/libavfilter/opencl/boxblur.cl @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as publishe

[FFmpeg-devel] [PATCH] libavfilter/boxblur_opencl filter.

2018-05-27 Thread Danil Iashchenko
extern AVFilter ff_vf_bwdif; extern AVFilter ff_vf_chromakey; extern AVFilter ff_vf_ciescope; diff --git a/libavfilter/opencl/boxblur.cl b/libavfilter/opencl/boxblur.cl new file mode 100644 index 000..a0d9dcd --- /dev/null +++ b/libavfilter/opencl/boxblur.cl @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2

[FFmpeg-devel] [PATCH 0/1] libavfilter: Add OpenCL convolution filter v0.2

2018-03-24 Thread Danil Iashchenko
ution.cl b/libavfilter/opencl/convolution.cl new file mode 100644 index 000..c0748cc --- /dev/null +++ b/libavfilter/opencl/convolution.cl @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/

[FFmpeg-devel] [PATCH] libavfilter: Add OpenCL convolution filter v0.2: add name

2018-03-23 Thread Danil Iashchenko
+++ b/libavfilter/opencl/convolution.cl @@ -1,4 +1,6 @@ /* + * Copyright (c) 2018 Danil Iashchenko + * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c index

[FFmpeg-devel] [PATCH] libavfilter: Add OpenCL convolution filter v0.2

2018-03-22 Thread Danil Iashchenko
Hi there! Thank you for advices, I have fixed the problem when per plane matrices application was incorrect. Now it works as expected and behaves like the existing vf_convolution filter. Tested for yuv and nv12 formats. The following filters from ffmpeg documentation (https://ffmpeg.org/ffmpeg-fi

[FFmpeg-devel] [PATCH] libavfilter: Add OpenCL convolution filter v0.1

2018-03-14 Thread Danil Iashchenko
Behaves like the existing convolution filter, except working on OpenCL hardware frames. Takes exactly the same options: 4 convolution matrices, 4 rdiv values, 4 bias values. If not specified, default parameters are applied. Matrices can be different sizes. NEW IN THIS PATCH: -fixed bug, if matric

[FFmpeg-devel] [PATCH] libavfilter: Add OpenCL convolution filter.

2018-03-13 Thread Danil Iashchenko
Behaves like the existing convolution filter, except working on OpenCL hardware frames. Takes exactly the same options: 4 convolution matrices, 4 rdiv values, 4 bias values. If not specified, default parameters are applied. Matrices can be different sizes. filter applies: matrix0, rdiv0, bias0 to

[FFmpeg-devel] [PATCH] fix mem-leak

2018-03-11 Thread Danil Iashchenko
--- libavfilter/vf_convolution_opencl.c | 39 ++--- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c index 60e2d1f..a14005b 100644 --- a/libavfilter/vf_convolution_opencl.c +++

[FFmpeg-devel] [PATCH] add convolution_opencl

2018-03-11 Thread Danil Iashchenko
--- configure | 1 + libavfilter/Makefile| 1 + libavfilter/allfilters.c| 1 + libavfilter/opencl/convolution.cl | 42 libavfilter/opencl_source.h | 3 + libavfilter/vf_convolution_opencl.c | 464

[FFmpeg-devel] [PATCH] libavfilter/vf_convolution_opencl.c: add opencl version of libavfilter/convolution.c filter

2018-03-11 Thread Danil Iashchenko
Hi there. Thank you for your advices. I implemented 4 matrix / 4 rdiv / 4 bias option for each plane of image, fixed mem-leaks, added error messages if the matrix is invalid. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mai

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_convolution_opencl.c: add opencl version of libavfilter/convolution.c filter

2018-03-11 Thread Danil Iashchenko
Hi there. Thank you for your advices. I implemented 4 matrix / 4 rdiv / 4 bias support, fixed mem-leaks, add error messages if matrix is incorrect, removed local kernel. Kind regards. Danil ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http:/

[FFmpeg-devel] [PATCH] libavfilter/vf_convolution_opencl.c: add opencl version of libavfilter/convolution.c filter

2018-03-07 Thread Danil Iashchenko
--- configure | 1 + libavfilter/Makefile| 2 + libavfilter/allfilters.c| 1 + libavfilter/opencl/convolution.cl | 80 libavfilter/opencl_source.h | 2 + libavfilter/vf_convolution_opencl.c | 374

[FFmpeg-devel] GSoC

2018-03-07 Thread Danil Iashchenko
*** Hi everybody! I Implemented vf_convolution_opencl filter as qualification task for GSoC Video filtering with OpenCL project*** Danil Iashchenko (1): add vf_convolution_opencl configure | 1 + libavfilter/Makefile| 2 + libavfilter