summaryrefslogtreecommitdiff
path: root/libavfilter/vf_convolution_opencl.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-15 18:57:36 +0100
committerAnton Khirnov <anton@khirnov.net>2023-03-24 10:16:51 +0100
commit632c34993195f716e9fa575af3de80d07fd50991 (patch)
treea03264f4f07c343b52be4d03a6becc89fa4d9b97 /libavfilter/vf_convolution_opencl.c
parent30cea1d39b94716f2e24f6d5b07e5bc686fdbaf6 (diff)
downloadffmpeg-632c34993195f716e9fa575af3de80d07fd50991.tar.gz
lavfi: add a flag for filters able to work with hw_device_ctx
This way the caller can set it just on the filters that can make use of it.
Diffstat (limited to 'libavfilter/vf_convolution_opencl.c')
-rw-r--r--libavfilter/vf_convolution_opencl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c
index de3d38b553..bf721a7416 100644
--- a/libavfilter/vf_convolution_opencl.c
+++ b/libavfilter/vf_convolution_opencl.c
@@ -373,6 +373,7 @@ const AVFilter ff_vf_convolution_opencl = {
FILTER_OUTPUTS(convolution_opencl_outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_OPENCL),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
+ .flags = AVFILTER_FLAG_HWDEVICE,
};
#endif /* CONFIG_CONVOLUTION_OPENCL_FILTER */
@@ -399,6 +400,7 @@ const AVFilter ff_vf_sobel_opencl = {
FILTER_OUTPUTS(convolution_opencl_outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_OPENCL),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
+ .flags = AVFILTER_FLAG_HWDEVICE,
};
#endif /* CONFIG_SOBEL_OPENCL_FILTER */
@@ -425,6 +427,7 @@ const AVFilter ff_vf_prewitt_opencl = {
FILTER_OUTPUTS(convolution_opencl_outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_OPENCL),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
+ .flags = AVFILTER_FLAG_HWDEVICE,
};
#endif /* CONFIG_PREWITT_OPENCL_FILTER */
@@ -451,6 +454,7 @@ const AVFilter ff_vf_roberts_opencl = {
FILTER_OUTPUTS(convolution_opencl_outputs),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_OPENCL),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
+ .flags = AVFILTER_FLAG_HWDEVICE,
};
#endif /* CONFIG_ROBERTS_OPENCL_FILTER */