[FFmpeg-devel] [PATCH v3 2/3] lavfi: modify avfilter_get_matrix to support separate scale factors

2019-08-08 Thread Jarek Samic
--- libavfilter/transform.c | 13 ++--- libavfilter/transform.h | 30 +++--- libavfilter/vf_deshake.c | 7 +-- 3 files changed, 34 insertions(+), 16 deletions(-) diff --git a/libavfilter/transform.c b/libavfilter/transform.c index f92fc4d42f..f4f9e0a47d 1006

[FFmpeg-devel] [PATCH v3 1/3] lavfi: add utilities to reduce OpenCL boilerplate code

2019-08-08 Thread Jarek Samic
--- libavfilter/opencl.c | 10 +++ libavfilter/opencl.h | 142 +-- 2 files changed, 146 insertions(+), 6 deletions(-) diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 95f0bfc604..8e96543467 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/

[FFmpeg-devel] [PATCH v3 3/3] lavfi: add deshake_opencl filter

2019-08-08 Thread Jarek Samic
--- This filter is the subject of my GSoC project. This is a video stabilization / deshake filter (name undetermined, feel free to discuss) that uses feature point matching and RANSAC to determine a camera path, smooths the camera path with a gaussian filter, and then applies the new path to th

[FFmpeg-devel] [PATCH v2 2/3] lavfi: modify avfilter_get_matrix to support separate scale factors

2019-07-26 Thread Jarek Samic
--- I have renamed `avfilter_get_matrix` to `ff_get_matrix` as per the comments on the last patch. libavfilter/transform.c | 13 ++--- libavfilter/transform.h | 30 +++--- libavfilter/vf_deshake.c | 7 +-- 3 files changed, 34 insertions(+), 16 deletions(-)

[FFmpeg-devel] [PATCH v2 1/3] lavfi: add utilities to reduce OpenCL boilerplate code

2019-07-26 Thread Jarek Samic
--- libavfilter/opencl.c | 10 +++ libavfilter/opencl.h | 142 +-- 2 files changed, 146 insertions(+), 6 deletions(-) diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 95f0bfc604..8e96543467 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/

[FFmpeg-devel] [PATCH v2 3/3] lavfi: add deshake_opencl filter

2019-07-26 Thread Jarek Samic
--- This filter is the subject of my GSoC project. This is a video stabilization / deshake filter (name undetermined, feel free to discuss) that uses feature point matching and RANSAC to determine a camera path, smooths the camera path with a gaussian filter, and then applies the new path to th

[FFmpeg-devel] [PATCH 1/3] lavfi: add utilities to reduce OpenCL boilerplate code

2019-07-19 Thread Jarek Samic
--- libavfilter/opencl.c | 10 +++ libavfilter/opencl.h | 142 +-- 2 files changed, 146 insertions(+), 6 deletions(-) diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 95f0bfc604..8e96543467 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/

[FFmpeg-devel] [PATCH 3/3] lavfi: add deshake_opencl filter

2019-07-19 Thread Jarek Samic
This filter is the subject of my GSoC project. This is a video stabilization / deshake filter (name undetermined, feel free to discuss) that uses feature point matching and RANSAC to determine a camera path, smooths the camera path with a gaussian filter, and then applies the new path to the vid

[FFmpeg-devel] [PATCH 2/3] lavfi: modify avfilter_get_matrix to support separate scale factors

2019-07-19 Thread Jarek Samic
--- libavfilter/transform.c | 13 ++--- libavfilter/transform.h | 30 +++--- libavfilter/vf_deshake.c | 7 +-- 3 files changed, 34 insertions(+), 16 deletions(-) diff --git a/libavfilter/transform.c b/libavfilter/transform.c index f92fc4d42f..f65de965cd 1006

[FFmpeg-devel] [PATCH v3] lavfi: add colorkey_opencl filter

2019-04-16 Thread Jarek Samic
This is a direct port of the CPU filter. Signed-off-by: Jarek Samic --- More fixes based on the comments from the second version of the patch (moving sampler declaration into the program scope, `f`-suffixing constants, attaching the `*` sigil to the variable name rather than the data type

[FFmpeg-devel] [PATCH v2] lavfi: add colorkey_opencl filter

2019-04-13 Thread Jarek Samic
This is a direct port of the CPU filter. Signed-off-by: Jarek Samic --- I've made the changes requested from the first patch. I also investigated splitting the kernel into two kernels in order to remove the blending if branch; I noticed negligible performance improvement (if any at all)

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

2019-04-09 Thread Jarek Samic
This is a direct port of the CPU filter. Signed-off-by: Jarek Samic --- This is my submission for the GSoC OpenCL video filters project qualification task. Command you can use to try it out: ./ffmpeg -i some_video -i some_img -init_hw_device opencl=gpu -filter_hw_device gpu -filter_complex

[FFmpeg-devel] [PATCH v2] libavutil/hwcontext_opencl.c: fix bug in `opencl_get_plane_format`

2019-04-07 Thread Jarek Samic
` and depth of components rather than the loop index to determine the value of `order`. Signed-off-by: Jarek Samic --- I have updated this patch in response to the comments on the first version. RGB is no longer special-cased, the 2, 3, and 4 mappings to `CL_R` have been removed, and the mapping

[FFmpeg-devel] [PATCH] libavutil/hwcontext_opencl.c: fix bug in `opencl_get_plane_format`

2019-04-05 Thread Jarek Samic
` field on components rather than the loop index to determine the value of `order` for RGB pixel formats (and leaves the formula to determine `order` the same for other formats so as not to break those cases). Signed-off-by: Jarek Samic --- I'm including this in the email (but not the c