diff options
author | Alexey Titov <alex.ti.771@gmail.com> | 2015-02-10 12:21:05 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-11 13:51:58 +0100 |
commit | a05a7373166c3c1b2eed3db66e143e9d227e0354 (patch) | |
tree | 6299b33a7c50ca1818ab145c4ac284d97fb0de49 /libavfilter/unsharp.h | |
parent | ac494e5a66507c8124e8ba399b3f0685a51d7a82 (diff) | |
download | ffmpeg-a05a7373166c3c1b2eed3db66e143e9d227e0354.tar.gz |
avfilter/unsharp: OpenCL unsharpen filter optimization: substitute N^2 filter computation with 2N+C
i7-4770K luma 21% faster, chroma 18% faster A10-7850K luma 42% faster, chroma 37% faster on 1920x1080 res
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/unsharp.h')
-rw-r--r-- | libavfilter/unsharp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h index c2aed64a01..fc651c0654 100644 --- a/libavfilter/unsharp.h +++ b/libavfilter/unsharp.h @@ -41,6 +41,10 @@ typedef struct { cl_kernel kernel_chroma; cl_mem cl_luma_mask; cl_mem cl_chroma_mask; + cl_mem cl_luma_mask_x; + cl_mem cl_chroma_mask_x; + cl_mem cl_luma_mask_y; + cl_mem cl_chroma_mask_y; int in_plane_size[8]; int out_plane_size[8]; int plane_num; |