Skip to content

Commit 0894cfb

Browse files
committed
avfilter/blackdetect_vulkan: add hw accelerated blackdetect filter
Like vf_blackdetect but better, faster, stronger, harder. Signed-off-by: Niklas Haas <[email protected]> Sponsored-by: nxtedition
1 parent 7e783fa commit 0894cfb

File tree

5 files changed

+435
-1
lines changed

5 files changed

+435
-1
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3879,6 +3879,7 @@ ass_filter_deps="libass"
38793879
avgblur_opencl_filter_deps="opencl"
38803880
avgblur_vulkan_filter_deps="vulkan spirv_compiler"
38813881
azmq_filter_deps="libzmq"
3882+
blackdetect_vulkan_filter_deps="vulkan spirv_compiler"
38823883
blackframe_filter_deps="gpl"
38833884
blend_vulkan_filter_deps="vulkan spirv_compiler"
38843885
boxblur_filter_deps="gpl"

doc/filters.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8634,7 +8634,7 @@ Filter out noisy pixels from @code{bitplane} set above.
86348634
Default is disabled.
86358635
@end table
86368636

8637-
@section blackdetect
8637+
@section blackdetect, blackdetect_vulkan
86388638

86398639
Detect video intervals that are (almost) completely black. Can be
86408640
useful to detect chapter transitions, commercials, or invalid

libavfilter/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ OBJS-$(CONFIG_BILATERAL_FILTER) += vf_bilateral.o
208208
OBJS-$(CONFIG_BILATERAL_CUDA_FILTER) += vf_bilateral_cuda.o vf_bilateral_cuda.ptx.o
209209
OBJS-$(CONFIG_BITPLANENOISE_FILTER) += vf_bitplanenoise.o
210210
OBJS-$(CONFIG_BLACKDETECT_FILTER) += vf_blackdetect.o
211+
OBJS-$(CONFIG_BLACKDETECT_VULKAN_FILTER) += vf_blackdetect_vulkan.o
211212
OBJS-$(CONFIG_BLACKFRAME_FILTER) += vf_blackframe.o
212213
OBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o framesync.o
213214
OBJS-$(CONFIG_BLEND_VULKAN_FILTER) += vf_blend_vulkan.o framesync.o vulkan.o vulkan_filter.o

libavfilter/allfilters.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ extern const FFFilter ff_vf_bilateral;
192192
extern const FFFilter ff_vf_bilateral_cuda;
193193
extern const FFFilter ff_vf_bitplanenoise;
194194
extern const FFFilter ff_vf_blackdetect;
195+
extern const FFFilter ff_vf_blackdetect_vulkan;
195196
extern const FFFilter ff_vf_blackframe;
196197
extern const FFFilter ff_vf_blend;
197198
extern const FFFilter ff_vf_blend_vulkan;

0 commit comments

Comments
 (0)