Skip to content

Commit

Permalink
* Fix FFmpeg build of libvpx with Linux on ARM (issue #586)
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Jul 14, 2018
1 parent 76ff7b9 commit 05d62a1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

* Fix FFmpeg build of libvpx with Linux on ARM ([issue #586](https://github.com/bytedeco/javacpp-presets/issues/586))
* Enable MediaCodec acceleration for FFmpeg on Android ([pull #589](https://github.com/bytedeco/javacpp-presets/pull/589))
* Include `c_api_internal.h` for TensorFlow ([issue #585](https://github.com/bytedeco/javacpp-presets/issues/585))
* Build all presets on CentOS 6 with Developer Toolset 6 and move almost all Linux builds to CentOS 6
* Fix functions from `facemark.hpp` and `face_alignment.hpp` that crash when called with `cv::Mat` objects
Expand Down
3 changes: 2 additions & 1 deletion ffmpeg/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../libvpx-$VPX_VERSION
patch -Np1 < ../../../libvpx-linux-arm.patch
if [ $CROSSCOMPILE -eq 1 ]
then
CROSS=arm-linux-gnueabihf- ./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=armv7-linux-gcc
Expand Down Expand Up @@ -638,7 +639,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../libvpx-$VPX_VERSION
patch -Np1 < ../../../disable_vp8_loop_filter_simple_neon.patch
patch -Np1 < ../../../libvpx-linux-arm.patch
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests
make -j $MAKEJ
make install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
diff --git a/vp8/common/rtcd_defs.pl b/vp8/common/rtcd_defs.pl
index bc5e05799..961b002e9 100644
--- a/vp8/common/rtcd_defs.pl
+++ b/vp8/common/rtcd_defs.pl
@@ -50,10 +50,9 @@ specialize qw/vp8_loop_filter_bh sse2 neon dspr2 msa/;
diff -ruN libvpx-1.7.0/vp8/common/rtcd_defs.pl libvpx-1.7.0-linux-arm/vp8/common/rtcd_defs.pl
--- libvpx-1.7.0/vp8/common/rtcd_defs.pl 2018-01-25 07:25:44.000000000 +0900
+++ libvpx-1.7.0-linux-arm/vp8/common/rtcd_defs.pl 2018-07-14 17:33:51.630592973 +0900
@@ -60,10 +60,9 @@


add_proto qw/void vp8_loop_filter_simple_mbv/, "unsigned char *y, int ystride, const unsigned char *blimit";
-specialize qw/vp8_loop_filter_simple_mbv sse2 neon msa/;
+specialize qw/vp8_loop_filter_simple_mbv sse2 msa/;
-specialize qw/vp8_loop_filter_simple_mbv sse2 neon msa mmi/;
+specialize qw/vp8_loop_filter_simple_mbv sse2 msa mmi/;
$vp8_loop_filter_simple_mbv_c=vp8_loop_filter_simple_vertical_edge_c;
$vp8_loop_filter_simple_mbv_sse2=vp8_loop_filter_simple_vertical_edge_sse2;
-$vp8_loop_filter_simple_mbv_neon=vp8_loop_filter_mbvs_neon;
$vp8_loop_filter_simple_mbv_msa=vp8_loop_filter_simple_vertical_edge_msa;
$vp8_loop_filter_simple_mbv_mmi=vp8_loop_filter_simple_vertical_edge_mmi;

add_proto qw/void vp8_loop_filter_simple_mbh/, "unsigned char *y, int ystride, const unsigned char *blimit";
@@ -64,10 +63,9 @@ $vp8_loop_filter_simple_mbh_neon=vp8_loop_filter_mbhs_neon;
$vp8_loop_filter_simple_mbh_msa=vp8_loop_filter_simple_horizontal_edge_msa;
@@ -76,10 +75,9 @@
$vp8_loop_filter_simple_mbh_mmi=vp8_loop_filter_simple_horizontal_edge_mmi;

add_proto qw/void vp8_loop_filter_simple_bv/, "unsigned char *y, int ystride, const unsigned char *blimit";
-specialize qw/vp8_loop_filter_simple_bv sse2 neon msa/;
+specialize qw/vp8_loop_filter_simple_bv sse2 msa/;
-specialize qw/vp8_loop_filter_simple_bv sse2 neon msa mmi/;
+specialize qw/vp8_loop_filter_simple_bv sse2 msa mmi/;
$vp8_loop_filter_simple_bv_c=vp8_loop_filter_bvs_c;
$vp8_loop_filter_simple_bv_sse2=vp8_loop_filter_bvs_sse2;
-$vp8_loop_filter_simple_bv_neon=vp8_loop_filter_bvs_neon;
$vp8_loop_filter_simple_bv_msa=vp8_loop_filter_bvs_msa;
$vp8_loop_filter_simple_bv_mmi=vp8_loop_filter_bvs_mmi;

add_proto qw/void vp8_loop_filter_simple_bh/, "unsigned char *y, int ystride, const unsigned char *blimit";
diff --git a/vp8/vp8_common.mk b/vp8/vp8_common.mk
index 137f5bb62..b22bcdb3a 100644
--- a/vp8/vp8_common.mk
+++ b/vp8/vp8_common.mk
@@ -133,7 +133,7 @@ VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/idct_dequant_full_2x_neon.c
diff -ruN libvpx-1.7.0/vp8/vp8_common.mk libvpx-1.7.0-linux-arm/vp8/vp8_common.mk
--- libvpx-1.7.0/vp8/vp8_common.mk 2018-01-25 07:25:44.000000000 +0900
+++ libvpx-1.7.0-linux-arm/vp8/vp8_common.mk 2018-07-14 17:31:10.564587864 +0900
@@ -141,7 +141,7 @@
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/iwalsh_neon.c
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/vp8_loopfilter_neon.c
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/loopfiltersimplehorizontaledge_neon.c
Expand Down

0 comments on commit 05d62a1

Please sign in to comment.