Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gstreamer] Initial import of libvpx to support VP8/9 video in Gstrea…
…mer. Contributes MER#595
- Loading branch information
Andrew Branson
committed
Jun 5, 2018
0 parents
commit 16b4c72
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "upstream"] | ||
path = upstream | ||
url = https://git.merproject.org/mirror/libvpx.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/build/make/configure.sh | ||
+++ b/build/make/configure.sh | ||
@@ -943,8 +943,8 @@ process_common_toolchain() { | ||
#endif | ||
EOF | ||
fi | ||
- check_add_cflags -march=armv7-a -mfloat-abi=${float_abi} | ||
- check_add_asflags -march=armv7-a -mfloat-abi=${float_abi} | ||
+ check_add_cflags -march=armv7-a -mfloat-abi=hard | ||
+ check_add_asflags -march=armv7-a -mfloat-abi=hard | ||
|
||
if enabled neon || enabled neon_asm; then | ||
check_add_cflags -mfpu=neon #-ftree-vectorize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Name: libvpx | ||
Version: 1.7.0 | ||
Release: 1 | ||
Summary: VPx codec library | ||
License: BSD-3-Clause and GPL-2.0+ | ||
Group: Applications/Multimedia | ||
Url: http://www.webmproject.org/ | ||
Source0: %{name}-%{version}.tar.gz | ||
Patch1: 0001-armv7-use-hard-float.patch | ||
%ifarch %{ix86} x86_64 | ||
BuildRequires: yasm | ||
%endif | ||
|
||
%description | ||
WebM is an open, royalty-free, media file format designed for the web. | ||
|
||
WebM defines the file container structure, video and audio formats. | ||
WebM files consist of video streams compressed with the VPx video codecs | ||
and audio streams compressed with the Vorbis audio codec. | ||
The WebM file structure is based on the Matroska container. | ||
|
||
%package devel | ||
Summary: VPx codec library - Development headers | ||
License: BSD-3-Clause and GPL-2.0+ | ||
Group: Development/Languages/C and C++ | ||
Requires: %{name} = %{version} | ||
|
||
%description devel | ||
Development headers and library | ||
|
||
WebM is an open, royalty-free, media file format designed for the web. | ||
|
||
WebM defines the file container structure, video and audio formats. | ||
WebM files consist of video streams compressed with the VPx video codecs | ||
and audio streams compressed with the Vorbis audio codec. | ||
The WebM file structure is based on the Matroska container. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version}/upstream | ||
%patch1 -p1 | ||
|
||
%build | ||
|
||
./configure \ | ||
--prefix=%{_prefix} --libdir=%{_libdir} \ | ||
--disable-unit-tests --disable-examples --disable-docs \ | ||
--enable-debug --enable-shared --disable-static \ | ||
--enable-vp8 --enable-vp9 --enable-vp9-highbitdepth \ | ||
--enable-multithread --enable-postproc \ | ||
--enable-experimental --enable-spatial-svc \ | ||
%ifarch aarch64 | ||
--disable-neon --disable-neon_asm \ | ||
%endif | ||
%ifarch %{ix86} x86_64 | ||
--as=yasm \ | ||
%endif | ||
--enable-pic --size-limit=8192x8192 | ||
|
||
make %{?_smp_mflags} verbose=yes GEN_EXAMPLES= | ||
|
||
%install | ||
%make_install verbose=yes GEN_EXAMPLES= | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%post -n %{name} -p /sbin/ldconfig | ||
|
||
%postun -n %{name} -p /sbin/ldconfig | ||
|
||
%files | ||
%defattr(-, root, root) | ||
%doc LICENSE AUTHORS README CHANGELOG | ||
%{_libdir}/libvpx.so.* | ||
|
||
%files devel | ||
%defattr(-,root,root) | ||
%{_includedir}/vpx/ | ||
%{_libdir}/pkgconfig/vpx.pc | ||
%{_libdir}/libvpx.so | ||
|