Chunrong Guo
2 years ago
25 changed files with 9155 additions and 214 deletions
@ -1,6 +1,6 @@ |
|||
|
|||
# additional packages list for SDK main userland gathered from main repo |
|||
additional_full_packages_list=" " |
|||
|
|||
# for Lite userland gathered from main repo |
|||
additional_base_packages_list="net-tools iputils-ping gcc vim make autoconf automake bison bc flex libssl-dev" |
|||
additional_base_packages_list="net-tools iputils-ping gcc vim make autoconf automake bison bc flex libssl-dev \ |
|||
libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio " |
|||
|
File diff suppressed because it is too large
@ -1,43 +0,0 @@ |
|||
From bf8eae2d30a205bb76ac625e04c0351106981b9e Mon Sep 17 00:00:00 2001 |
|||
From: Parker Ernest <@> |
|||
Date: Sun, 23 Feb 2020 13:22:42 +0100 |
|||
Subject: [PATCH] swscale/x86/yuv2rgb: Fix build without SSSE3 |
|||
|
|||
commit fc6a5883d6af8cae0e96af84dda0ad74b360a084 breaks build on |
|||
x86_64 CPUs which do not have SSSE3, e.g. AMD Phenom-II |
|||
|
|||
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> |
|||
[bernd.kuhls@t-online.de: |
|||
- retrieved from upstream patchwork: |
|||
https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200223122256.23402-1-michael@niedermayer.cc/ |
|||
] |
|||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> |
|||
[yann.morin.1998@free.fr: fix reference top patchwork and SoB order] |
|||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> |
|||
---
|
|||
libswscale/x86/yuv2rgb.c | 2 ++ |
|||
1 file changed, 2 insertions(+) |
|||
|
|||
diff --git a/libswscale/x86/yuv2rgb.c b/libswscale/x86/yuv2rgb.c
|
|||
index c12e88cbb5..4791e5b93a 100644
|
|||
--- a/libswscale/x86/yuv2rgb.c
|
|||
+++ b/libswscale/x86/yuv2rgb.c
|
|||
@@ -83,6 +83,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
|
|||
#if HAVE_X86ASM |
|||
int cpu_flags = av_get_cpu_flags(); |
|||
|
|||
+#if HAVE_SSSE3
|
|||
if (EXTERNAL_SSSE3(cpu_flags)) { |
|||
switch (c->dstFormat) { |
|||
case AV_PIX_FMT_RGB32: |
|||
@@ -111,6 +112,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
|
|||
return yuv420_rgb15_ssse3; |
|||
} |
|||
} |
|||
+#endif
|
|||
|
|||
if (EXTERNAL_MMXEXT(cpu_flags)) { |
|||
switch (c->dstFormat) { |
|||
--
|
|||
2.26.2 |
|||
|
@ -1,36 +0,0 @@ |
|||
From 2c6b3f357331e203ad87214984661c40704aceb7 Mon Sep 17 00:00:00 2001 |
|||
From: Rainer Hochecker <fernetmenta@online.de> |
|||
Date: Sat, 26 Jan 2019 19:48:35 +0100 |
|||
Subject: [PATCH] avcodec/vaapi_h264: skip decode if pic has no slices |
|||
|
|||
This fixes / workarounds https://bugs.freedesktop.org/show_bug.cgi?id=105368. |
|||
It was hit frequently when watching h264 channels received via DVB-X. |
|||
Corresponding kodi bug: https://github.com/xbmc/xbmc/issues/15704 |
|||
|
|||
Downloaded from Kodi ffmpeg repo: |
|||
https://github.com/xbmc/FFmpeg/commit/2c6b3f357331e203ad87214984661c40704aceb7 |
|||
|
|||
Patch was sent upstream: |
|||
http://ffmpeg.org/pipermail/ffmpeg-devel/2019-March/240863.html |
|||
|
|||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> |
|||
---
|
|||
libavcodec/vaapi_h264.c | 5 +++++ |
|||
1 file changed, 5 insertions(+) |
|||
|
|||
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
|
|||
index dd2a6571604..e521a05c4ff 100644
|
|||
--- a/libavcodec/vaapi_h264.c
|
|||
+++ b/libavcodec/vaapi_h264.c
|
|||
@@ -314,6 +314,11 @@ static int vaapi_h264_end_frame(AVCodecContext *avctx)
|
|||
H264SliceContext *sl = &h->slice_ctx[0]; |
|||
int ret; |
|||
|
|||
+ if (pic->nb_slices == 0) {
|
|||
+ ret = AVERROR_INVALIDDATA;
|
|||
+ goto finish;
|
|||
+ }
|
|||
+
|
|||
ret = ff_vaapi_decode_issue(avctx, pic); |
|||
if (ret < 0) |
|||
goto finish; |
@ -1,72 +0,0 @@ |
|||
From 6e8daf0d502a2a822f1f08f42368d7d676dc1a9e Mon Sep 17 00:00:00 2001 |
|||
From: Bernd Kuhls <bernd.kuhls@t-online.de> |
|||
Date: Sun, 6 Jun 2021 08:54:53 +0200 |
|||
Subject: [PATCH] libavutil: Fix mips build |
|||
|
|||
Check for sys/auxv.h because not all toolchains contain this header. |
|||
|
|||
Fixes https://trac.ffmpeg.org/ticket/9138 |
|||
|
|||
Patch sent upstream: |
|||
http://ffmpeg.org/pipermail/ffmpeg-devel/2021-June/281272.html |
|||
|
|||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> |
|||
---
|
|||
configure | 2 ++ |
|||
libavutil/mips/cpu.c | 6 +++--- |
|||
2 files changed, 5 insertions(+), 3 deletions(-) |
|||
|
|||
diff --git a/configure b/configure
|
|||
index 6bfd98b384..773a7d516c 100755
|
|||
--- a/configure
|
|||
+++ b/configure
|
|||
@@ -2161,6 +2161,7 @@ HEADERS_LIST="
|
|||
opencv2_core_core_c_h |
|||
OpenGL_gl3_h |
|||
poll_h |
|||
+ sys_auxv_h
|
|||
sys_param_h |
|||
sys_resource_h |
|||
sys_select_h |
|||
@@ -6218,6 +6219,7 @@ check_func_headers VideoToolbox/VTCompressionSession.h VTCompressionSessionPrepa
|
|||
check_headers windows.h |
|||
check_headers X11/extensions/XvMClib.h |
|||
check_headers asm/types.h |
|||
+check_headers sys/auxv.h
|
|||
|
|||
# it seems there are versions of clang in some distros that try to use the |
|||
# gcc headers, which explodes for stdatomic |
|||
diff --git a/libavutil/mips/cpu.c b/libavutil/mips/cpu.c
|
|||
index 59619d54de..19196de50b 100644
|
|||
--- a/libavutil/mips/cpu.c
|
|||
+++ b/libavutil/mips/cpu.c
|
|||
@@ -19,7 +19,7 @@
|
|||
#include "libavutil/cpu.h" |
|||
#include "libavutil/cpu_internal.h" |
|||
#include "config.h" |
|||
-#if defined __linux__ || defined __ANDROID__
|
|||
+#if (defined __linux__ || defined __ANDROID__) && HAVE_SYS_AUXV_H
|
|||
#include <stdint.h> |
|||
#include <stdio.h> |
|||
#include <string.h> |
|||
@@ -28,7 +28,7 @@
|
|||
#include "libavutil/avstring.h" |
|||
#endif |
|||
|
|||
-#if defined __linux__ || defined __ANDROID__
|
|||
+#if (defined __linux__ || defined __ANDROID__) && HAVE_SYS_AUXV_H
|
|||
|
|||
#define HWCAP_LOONGSON_CPUCFG (1 << 14) |
|||
|
|||
@@ -105,7 +105,7 @@ static int cpu_flags_cpuinfo(void)
|
|||
|
|||
int ff_get_cpu_flags_mips(void) |
|||
{ |
|||
-#if defined __linux__ || defined __ANDROID__
|
|||
+#if (defined __linux__ || defined __ANDROID__) && HAVE_SYS_AUXV_H
|
|||
if (cpucfg_available()) |
|||
return cpu_flags_cpucfg(); |
|||
else |
|||
--
|
|||
2.29.2 |
|||
|
@ -1,47 +0,0 @@ |
|||
From 0c288853630b7b4e004774c39945d4a804afcfa8 Mon Sep 17 00:00:00 2001 |
|||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
|||
Date: Fri, 6 Aug 2021 09:17:20 +0200 |
|||
Subject: [PATCH] configure: add extralibs to extralibs_xxx |
|||
|
|||
Add extralibs to extralibs_xxx (e.g. extralibs_avformat) to allow |
|||
applications such as motion to retrieve ffmpeg dependencies such as |
|||
-latomic through pkg-config
|
|||
|
|||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
|||
[Upstream status: not upstreamable] |
|||
---
|
|||
configure | 18 +++++++++--------- |
|||
1 file changed, 9 insertions(+), 9 deletions(-) |
|||
|
|||
diff --git a/configure b/configure
|
|||
index 0bb3a7cf2b..3bda99e415 100755
|
|||
--- a/configure
|
|||
+++ b/configure
|
|||
@@ -7602,15 +7602,15 @@ rpath=$(enabled rpath && echo "-Wl,-rpath,\${libdir}")
|
|||
source_path=${source_path} |
|||
LIBPREF=${LIBPREF} |
|||
LIBSUF=${LIBSUF} |
|||
-extralibs_avutil="$avutil_extralibs"
|
|||
-extralibs_avcodec="$avcodec_extralibs"
|
|||
-extralibs_avformat="$avformat_extralibs"
|
|||
-extralibs_avdevice="$avdevice_extralibs"
|
|||
-extralibs_avfilter="$avfilter_extralibs"
|
|||
-extralibs_avresample="$avresample_extralibs"
|
|||
-extralibs_postproc="$postproc_extralibs"
|
|||
-extralibs_swscale="$swscale_extralibs"
|
|||
-extralibs_swresample="$swresample_extralibs"
|
|||
+extralibs_avutil="$avutil_extralibs $extralibs"
|
|||
+extralibs_avcodec="$avcodec_extralibs $extralibs"
|
|||
+extralibs_avformat="$avformat_extralibs $extralibs"
|
|||
+extralibs_avdevice="$avdevice_extralibs $extralibs"
|
|||
+extralibs_avfilter="$avfilter_extralibs $extralibs"
|
|||
+extralibs_avresample="$avresample_extralibs $extralibs"
|
|||
+extralibs_postproc="$postproc_extralibs $extralibs"
|
|||
+extralibs_swscale="$swscale_extralibs $extralibs"
|
|||
+extralibs_swresample="$swresample_extralibs $extralibs"
|
|||
EOF |
|||
|
|||
for lib in $LIBRARY_LIST; do |
|||
--
|
|||
2.30.2 |
|||
|
@ -1,5 +1,6 @@ |
|||
# Locally calculated |
|||
sha256 eadbad9e9ab30b25f5520fbfde99fae4a92a1ae3c0257a8d68569a4651e30e02 ffmpeg-4.4.1.tar.xz |
|||
#sha256 eadbad9e9ab30b25f5520fbfde99fae4a92a1ae3c0257a8d68569a4651e30e02 ffmpeg-4.4.1.tar.xz |
|||
sha256 0d5da81feba073ee78e0f18e0966bcaf91464ae75e18e9a0135186249e3d2a0b ffmpeg-4.2.4.tar.xz |
|||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPLv2 |
|||
sha256 b634ab5640e258563c536e658cad87080553df6f34f62269a21d554844e58bfe COPYING.LGPLv2.1 |
|||
sha256 cb48bf09a11f5fb576cddb0431c8f5ed0a60157a9ec942adffc13907cbe083f2 LICENSE.md |
|||
|
@ -0,0 +1,12 @@ |
|||
config BR2_PACKAGE_VPU_LIB |
|||
bool "vpu-lib" |
|||
help |
|||
This is a comment that explains what vpu-lib is. The help text |
|||
should be wrapped. |
|||
|
|||
https://gitee.com/phytium_embedded/vpu-lib.git |
|||
|
|||
config BR2_PACKAGE_VPU_LIB_CPU_MODEL |
|||
string "cpu model" |
|||
help |
|||
This is a comment that defines cpu model is, d2000 or e2000 |
@ -0,0 +1,17 @@ |
|||
################################################################################
|
|||
#
|
|||
# vpu lib
|
|||
#
|
|||
################################################################################
|
|||
|
|||
VPU_LIB_VERSION = a3109a35b230a57d860bce66d4369a74c56f12a8 |
|||
VPU_LIB_SITE = https://gitee.com/phytium_embedded/vpu-lib.git |
|||
VPU_LIB_INSTALL_IMAGES = YES |
|||
VPU_LIB_SITE_METHOD = git |
|||
VPU_LIB_DEPENDENCIES = linux |
|||
|
|||
define VPU_LIB_INSTALL_TARGET_CMDS |
|||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install DESTDIR=$(TARGET_DIR) CPU_MODEL=$(BR2_PACKAGE_VPU_LIB_CPU_MODEL) |
|||
endef |
|||
|
|||
$(eval $(generic-package)) |
Loading…
Reference in new issue