This is the same as with libavfilter. We will need SPIR-V compilation for at least three different things, like the VC-2 encoder and decoder, AV1 film grain synthesis for hardware with no support for it, and possibly other codecs.
Showing the changes to libavcodec (3 of 3 files). Show all
Unified · Split
| @@ -1258,6 +1258,10 @@ OBJS-$(HAVE_THREADS) += pthread.o pthread_slice.o pthread_fram · 1257 unmodified lines | |||
| 1258 | 1258 | ||
| 1259 | OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o | 1259 | OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o |
| 1260 | 1260 | ||
| 1261 | # vulkan libs | ||
| 1262 | OBJS-$(CONFIG_LIBGLSLANG) += vulkan_glslang.o | ||
| 1263 | OBJS-$(CONFIG_LIBSHADERC) += vulkan_shaderc.o | ||
| 1264 | |||
| 1261 | # Windows resource file | 1265 | # Windows resource file |
| 1262 | SHLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o | 1266 | SHLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o |
| 1263 | 1267 | ||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* | ||
| 2 | * This file is part of FFmpeg. | ||
| 3 | * | ||
| 4 | * FFmpeg is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU Lesser General Public | ||
| 6 | * License as published by the Free Software Foundation; either | ||
| 7 | * version 2.1 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * FFmpeg is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 12 | * Lesser General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU Lesser General Public | ||
| 15 | * License along with FFmpeg; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 17 | */ | ||
| 18 | |||
| 19 | #include "libavutil/vulkan_glslang.c" | ||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* | ||
| 2 | * This file is part of FFmpeg. | ||
| 3 | * | ||
| 4 | * FFmpeg is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU Lesser General Public | ||
| 6 | * License as published by the Free Software Foundation; either | ||
| 7 | * version 2.1 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * FFmpeg is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 12 | * Lesser General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU Lesser General Public | ||
| 15 | * License along with FFmpeg; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 17 | */ | ||
| 18 | |||
| 19 | #include "libavutil/vulkan_shaderc.c" | ||