diff options
author | Lynne <dev@lynne.ee> | 2021-11-19 15:13:35 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-19 16:47:26 +0100 |
commit | f6dd30df242cbf0a59c9ddfe66b23dc0ddaede66 (patch) | |
tree | ca79fdef17d0a709e24e005f96a6d05c660d5503 /libavfilter/vulkan.h | |
parent | e7f3279ba0ecd89eded5f91cb3bf5754761966db (diff) |
lavfi/vulkan: split off lavfi-specific code into vulkan_filter.c
The issue is that libavfilter depends on libavcodec, and when doing a
static build, if libavcodec also includes "libavfilter/vulkan.c", then
during link-time, compiling programs will fail as there would be multiple
definitions of the same symbols in both libavfilter and libavcodec's
object files.
Linkers are, however, more permitting if both files that include
a common file that's used as a template are one-to-one identical.
Hence, to make both files the same in the future, export all avfilter
specific functions to a separate file.
There is some work in progress to make templated files like this be
compiled only once, so this is not a long-term solution.
This also removes a macro that could be used to toggle SPIRV compilation
capability on #include-time, as this could cause the files to be different.
Diffstat (limited to 'libavfilter/vulkan.h')
-rw-r--r-- | libavfilter/vulkan.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavfilter/vulkan.h b/libavfilter/vulkan.h index 39c139cafa..928b2e21c3 100644 --- a/libavfilter/vulkan.h +++ b/libavfilter/vulkan.h @@ -19,15 +19,6 @@ #ifndef AVFILTER_VULKAN_H #define AVFILTER_VULKAN_H -#include "avfilter.h" #include "libavutil/vulkan.h" -/** - * General lavfi IO functions - */ -int ff_vk_filter_init (AVFilterContext *avctx); -int ff_vk_filter_config_input (AVFilterLink *inlink); -int ff_vk_filter_config_output (AVFilterLink *outlink); -int ff_vk_filter_config_output_inplace(AVFilterLink *outlink); - #endif /* AVFILTER_VULKAN_H */ |