Commit Graph

230 Commits

Author SHA1 Message Date
Mike Hommey
0aa2e2da9a Bug 1692940 - Switch vpx build to nasm instead of yasm. r=firefox-build-system-reviewers,dmajor
We also remove the dependency on the check for GNU as, because all the
build environments we support for arm use GNU as, and the dependency
causes complications.

Differential Revision: https://phabricator.services.mozilla.com/D105427
2021-02-23 01:26:44 +00:00
Mike Hommey
1047ad476b Bug 1687433 - Remove -no-integrated-as flag from libaom and libvpx. r=firefox-build-system-reviewers,mhentges
Back when it was added, it was added to libvpx, and the clang base
version was older. Either newer version of clang fixed the issues or
the libvpx source fixed it, but we don't need the flag anymore for
libvpx.

The flag for libaom was cargo culted from libvpx, but may not have been
necessary in the first place. Or maybe it was, but things fixed
themselves in a similar manner. Either way, the flag is not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D102262
2021-01-19 14:11:18 +00:00
Jan Beich
6a49954834 Bug 1622013 - Build *_mmx.c files with -mmmx in bundled libvpx; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D70674

--HG--
extra : moz-landing-system : lando
2020-04-13 15:34:42 +00:00
Dan Minor
db02a83292 Bug 1525393 - Run generate_sources_mozbuild.sh; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D63924

--HG--
extra : moz-landing-system : lando
2020-02-27 18:32:00 +00:00
Dan Minor
f1d63c19a5 Bug 1525393 - Update libvpx to 1.8.2; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D63922

--HG--
rename : media/libvpx/libvpx/third_party/libwebm/LICENSE.TXT => media/libvpx/libvpx/third_party/libyuv/LICENSE
rename : media/libvpx/libvpx/vp8/common/copy_c.c => media/libvpx/libvpx/vp8/encoder/copy_c.c
rename : media/libvpx/libvpx/vp8/encoder/x86/encodeopt.asm => media/libvpx/libvpx/vp8/encoder/x86/block_error_sse2.asm
rename : media/libvpx/libvpx/vp8/common/x86/copy_sse2.asm => media/libvpx/libvpx/vp8/encoder/x86/copy_sse2.asm
rename : media/libvpx/libvpx/vp8/common/x86/copy_sse3.asm => media/libvpx/libvpx/vp8/encoder/x86/copy_sse3.asm
extra : moz-landing-system : lando
2020-02-27 18:57:02 +00:00
Dan Minor
5a236f8a82 Bug 1525393 - Changes to update scripts for libvpx 1.8.2; r=bryce
This makes the following changes:
* Change update.py to use Python 3.
* Have update.py remove some unused portions of the upstream library.
* Update local patches to apply against libvpx 1.8.2.
* Remove local patches that are no longer necessary.
* Update vs build configurations in generate_sources_mozbuild.sh.
* Remove the #define for stdint from VPXDecoder.h.
* Disable AVX512 support
* Make sure float_control_word.asm is included in win64 builds

Differential Revision: https://phabricator.services.mozilla.com/D63919

--HG--
extra : moz-landing-system : lando
2020-02-27 18:04:20 +00:00
Tom Ritter
f388fabece Bug 1585358 - Remove mingw-gcc configuration stuf from libvpx r=jya
mingw-gcc is no longer supported.

Differential Revision: https://phabricator.services.mozilla.com/D48580

--HG--
extra : moz-landing-system : lando
2019-10-10 18:30:56 +00:00
Mike Shal
f8f5fce637 Bug 1496746 - Remove VPATH; r=glandium
Having a full VPATH for the srcdir sometimes causes make to grab the
wrong prerequisite for a rule, in particular if we have a file in the
srcdir and also generate a file of the same name in the objdir. We don't
really need VPATH anymore though, since most of the information comes
from mozbuild, where we can explicitly list the path to the srcdir or
objdir as necessary.

Differential Revision: https://phabricator.services.mozilla.com/D42968

--HG--
extra : moz-landing-system : lando
2019-09-09 17:44:47 +00:00
Dan Minor
8bcd86c1fe Bug 1540760 - Rerun generate_sources_mozbuild.sh for arm64 windows; r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27788

--HG--
extra : moz-landing-system : lando
2019-05-01 15:04:49 +00:00
Dan Minor
90be9d8f62 Bug 1540760 - Use arm sources for libvpx; r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27787

--HG--
extra : moz-landing-system : lando
2019-05-01 15:04:49 +00:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Alex Chronopoulos
ed3d0e43c1 Bug 1521078 - Don't assemble include only .asm files. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D16975

--HG--
extra : moz-landing-system : lando
2019-01-21 11:23:42 +00:00
Makoto Kato
a2a77288af Bug 1516513 - Part 2. Add generated files to libvpx. r=jya
Depends on D15400

Differential Revision: https://phabricator.services.mozilla.com/D15401

--HG--
extra : moz-landing-system : lando
2019-01-21 04:52:45 +00:00
Makoto Kato
5c854f6c5a Bug 1516513 - Part 1. Add linux/aarch64 config to libvpx. r=jya
To use NEON on Linux/aarch64 and Android/aarch64, I would like to add it to
libvpx.  libvpx has a configuration as arm64-linux-gcc.

Differential Revision: https://phabricator.services.mozilla.com/D15400

--HG--
extra : moz-landing-system : lando
2019-01-21 04:55:02 +00:00
Thomas Daede
29393c8e79 Bug 1509724 - Don't include x86_abi_support.asm in libvpx build. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D16615

--HG--
extra : moz-landing-system : lando
2019-01-16 21:42:38 +00:00
Mike Hommey
1467f34ce5 Bug 1515257 - Remove VPX_AS_CONVERSION. r=firefox-build-system-reviewers,ted
There's only really one place where it's used, and we can "inline" it
there.

Depends on D14947

Differential Revision: https://phabricator.services.mozilla.com/D14948

--HG--
extra : moz-landing-system : lando
2018-12-19 22:39:27 +00:00
Mike Hommey
a846159c7f Bug 1515257 - Remove VPX_ARM_ASM. r=firefox-build-system-reviewers,ted
It is only used in one place, where it is redundant with VPX_AS_CONVERSION.

Depends on D14945

Differential Revision: https://phabricator.services.mozilla.com/D14946

--HG--
extra : moz-landing-system : lando
2018-12-19 11:11:17 +00:00
Thomas Daede
9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

Differential Revision: https://phabricator.services.mozilla.com/D9972

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Nathan Froyd
b47b2129d2 Bug 1481515 - add a libvpx config for aarch64 windows; r=padenot,jya,dminor 2018-09-11 16:05:09 -04:00
Tom Ritter
9653a5e959 Bug 1489550 Remove a stray merge file that got commited r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D5281

--HG--
extra : moz-landing-system : lando
2018-09-07 17:46:47 +00:00
Dan Minor
07a423be37 Bug 1480092 - Cherrypick rev 52add5896661d186dec284ed646a4b33b607d2c7. r=drno
--HG--
extra : amend_source : 8787ebf1cb3e3dc39ab38f78a82387c86903249b
2018-08-13 11:32:47 -04:00
Dan Minor
fdd6584333 Bug 1433158 - Disable avx512 in libvpx; r=jya
Summary:
This disables building avx512 due to difficulty in getting a working set of
compiler flags across our supported platforms. Rather than carrying this patch
forward, we should revisit supporting avx512 when we do the next update.

Reviewers: jya

Tags: #secure-revision

Bug #: 1433158

Differential Revision: https://phabricator.services.mozilla.com/D2942

--HG--
extra : rebase_source : 0b828be5559a985a8ec5f12d6712b970545d0d83
2018-08-07 11:29:17 -04:00
Dan Minor
8f8bdf9e76 Bug 1433158 - Update libvpx to 1.7.0; r=jya
Reviewers: jya

Tags: #secure-revision

Bug #: 1433158

Differential Revision: https://phabricator.services.mozilla.com/D2940

--HG--
extra : rebase_source : b0637fc24a3159b7b5d9ac017240be80dc07ce37
2018-08-07 14:21:57 -04:00
Dan Minor
2fa2ea17f5 Bug 1433158 - Remove vp9_svc.patch; r=jya
Summary:
This patch is already applied to the webrtc.org code and doing a libvpx update
does not remove it, so having this present leads to merge conflicts during the
update as it attempts to patch already patched code.

Reviewers: jya

Tags: #secure-revision

Bug #: 1433158

Differential Revision: https://phabricator.services.mozilla.com/D2939

--HG--
extra : rebase_source : e641e8645467565f329c72f0869fe18aa2def846
2018-08-07 09:12:41 -04:00
Nathan Froyd
32d63fdca4 Bug 1477047 - make fewer assumptions about MSVC compiling for x86-ish code; r=chmanchester
ARM64 Windows is a thing now, so this assumption is no longer valid.
2018-07-24 16:08:56 -04:00
David Major
ae0bb01f30 Bug 1453061: Merge libvpx code size fix. r=drno
https://chromium-review.googlesource.com/c/webm/libvpx/+/841103
2018-05-10 14:31:49 -04:00
David Major
6750ccaf96 Backed out changeset 4d3b94d04760 (bug 1453061) and we'll re-land when talos xperf comes back online
--HG--
extra : rebase_source : ecc77f749a5832bbfca158a019c26dd73fbb0397
2018-04-13 16:07:04 -04:00
David Major
23a33f032e Bug 1453061: Merge libvpx code size fix. r=drno
https://chromium-review.googlesource.com/c/webm/libvpx/+/841103
2018-04-12 10:22:42 -04:00
Tom Ritter
987bacca5a Bug 1448453 Update libvpx to have a 64 bit mingw config r=kinetik
MozReview-Commit-ID: 1Dt3OcMgWii

--HG--
extra : rebase_source : 276e59d2c27a69d3f2526e027a11a413b618cfda
2018-03-23 14:56:54 -05:00
Ralph Giles
5afdc71afd Bug 1443865 - Use 16-bit eobs count. r=kinetik
MozReview-Commit-ID: 4lfBbvSTNPO

--HG--
extra : rebase_source : 1afdf8a54ae5dab645e67bde62e219ee838dea84
2018-03-07 16:02:30 -05:00
Nils Ohlmeier [:drno]
a148913e4d Bug 1426988 - Properly exit encoder init in error cases. r=rillian
--HG--
extra : rebase_source : 0fa1d6ab54499dba8da9182adeaa3117ee8c8b98
2018-01-27 11:20:43 -08:00
Sylvestre Ledru
a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru
4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru
5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Tom Ritter
64fa57a006 Bug 1406542 Enable PTHREAD for vpx and aom under MinGW because we do in fact have them. r=rillian
We were getting warnings that HAVE_PTHREAD_H was being redeclared with the wrong value.
Let's correct that.

MozReview-Commit-ID: KVAsYofozIT

--HG--
rename : media/libvpx/config/win/ia32/vp8_rtcd.h => media/libvpx/config/win/mingw32/vp8_rtcd.h
rename : media/libvpx/config/win/ia32/vp9_rtcd.h => media/libvpx/config/win/mingw32/vp9_rtcd.h
rename : media/libvpx/config/win/ia32/vpx_config.asm => media/libvpx/config/win/mingw32/vpx_config.asm
rename : media/libvpx/config/win/ia32/vpx_config.c => media/libvpx/config/win/mingw32/vpx_config.c
rename : media/libvpx/config/win/ia32/vpx_config.h => media/libvpx/config/win/mingw32/vpx_config.h
rename : media/libvpx/config/win/ia32/vpx_dsp_rtcd.h => media/libvpx/config/win/mingw32/vpx_dsp_rtcd.h
rename : media/libvpx/config/win/ia32/vpx_scale_rtcd.h => media/libvpx/config/win/mingw32/vpx_scale_rtcd.h
extra : rebase_source : beb8b369df337ce2a6fcd860bb9437537376e4c5
2017-10-24 16:57:51 -05:00
Gregory Szorc
3d5f58d635 Bug 1399878 - Fix case of LOCAL_INCLUDES; r=me
This fixes a typo introduced in 305e742634e5 and that broke
moz.build processing for MacOS.
2017-09-15 14:18:32 -07:00
Ted Mielczarek
0677fcfacf bug 1399878 - Use LOCAL_INCLUDES instead of CFLAGS in some media moz.build files. r=gps
MozReview-Commit-ID: 3PUOniPnt54

--HG--
extra : rebase_source : 01accd7951a4af7018265e91040aa7005b061902
2017-09-14 06:39:27 -04:00
Randell Jesup
450c4d90a1 Bug 1341285: rollup of changes for webrtc after applying webrtc.org v57 update r=ng,jesup,pehrsons,drno,dminor,cpearce,jya,glandium,dmajor
Includes re-importing gyp files removed from upstream in v56, and then
updating them to match the BUILD.gn file changes.

--HG--
rename : media/webrtc/trunk/webrtc/call/audio_send_stream.cc => media/webrtc/trunk/webrtc/call/audio_send_stream_call.cc
2017-06-13 01:54:13 -04:00
Masatoshi Kimura
2ccb684d0c Bug 1279593 - Add /arch:AVX or /arch:AVX2 to compile some files under media/libvpx. r=ted.mielczarek
MozReview-Commit-ID: CDXWpG4058E

--HG--
extra : rebase_source : dda30eeb18671eb5e9b3418bac4079fdd7632b6d
2017-06-06 20:31:34 +09:00
Wes Kocher
03061ecb63 Bug 1349467 - Fix some Audio/Video BUG_COMPONENTs in moz.build files r=jmaher
MozReview-Commit-ID: 3ItJdCtiOul

--HG--
extra : rebase_source : 2db0d75589a0bd8f28bdd35f015949a1194bc47d
2017-03-22 17:23:12 -07:00
Mike Hommey
12c65a0a37 Bug 1344889 - Add necessary dependendencies for generated libvpx assembly. r=mshal
--HG--
extra : rebase_source : f65f767dfad5fbe1a577f06923c5b84c90819fe1
2017-03-09 10:54:48 +09:00
Mike Hommey
d340c6b1f2 Bug 1337250 - Fix libvpx build on non-Android ARM. r=froydnj
--HG--
extra : rebase_source : 5c0c59e680a79714872bf970a35e028c2bebef7f
2017-02-07 13:55:08 +09:00
Randell Jesup
db244f7210 Bug 1332664: Cherry-pick upstream webrtc.org patch to not depend on 'experimental' includes for libvpx r=rillian 2017-01-27 21:10:58 -05:00
Johann
a5afbf270c Bug 1328330 - Remove vp8 error concealment. r=jesup, r=jya
This feature is unused by WebRTC.

--HG--
extra : rebase_source : 6888ec8ef4ebd1fe8529132ac110d9f991f2abc7
2017-01-18 07:37:00 -05:00
Johann
ea398a02dc Bug 1331498: Update libvpx to v1.6.1. r=rillian
Removes armv6 and mmx optimizations.

Removes x86inc.asm distinction. This was put in place because of issues
with 32bit PIC builds but x86inc.asm has since been improved to support
those.

Switch to '.S' for arm assembly. There is now an #include for a helper
file. All build systems appear to support .S so switch to it for
consistency.

Remove clang-cl.patch. There have been numerous changes upstream to
improve clang support.

MozReview-Commit-ID: IHVTbqSY2U7

--HG--
extra : rebase_source : 788796674e3eabed0c178ca327bc5e7628e03382
2017-01-17 13:46:42 -08:00
Johann
2742e01a90 Bug 1223692: Update libvpx to v1.6.0. r=rillian
This includes the following patches:
<patch file>
<upstream review commit>
<upstream hash>

1237848-check-lookahead-ctx.patch
https://chromium-review.googlesource.com/324510
4f780e94a1fa54f22256e0f4d42a77c340a38fa1

block_error_fp.patch
https://chromium-review.googlesource.com/282611
ff8505a54d0b3dda220f5c0695519c353c82b933

cast-char-to-uint-before-shift.patch
https://chromium-review.googlesource.com/345470
2240d83d7882ce2d5d0826b9ce33b86321d7a724

clamp_abs_lvl_seg.patch
https://chromium-review.googlesource.com/315754
2e693eb80e705ea68e23eed19616d22b4778b45a

clamp-abs-QIndex.patch
https://chromium-review.googlesource.com/315802
ff3674a15e5b1a006546e1edc64c3e778eb34ab1

rename_duplicate_files.patch
https://chromium-review.googlesource.com/281967
6a82f0d7fb9ee908c389e8d55444bbaed3d54e9c
https://chromium-review.googlesource.com/317880
d36659cec7fab96cedc67db4d511ed7135637d0e

vp9_filter_restore_aligment.patch
https://chromium-review.googlesource.com/276889
33b3953c548a20c0aee705657df0440a740c28b7

vpx_once.patch
https://chromium-review.googlesource.com/312467
2635573a7f2e4bbd259379acf91efb97d983359f

MozReview-Commit-ID: R7qB6egl3Z

--HG--
rename : media/libvpx/libvpx/third_party/libyuv/source/compare_posix.cc => media/libvpx/libvpx/third_party/libyuv/source/compare_gcc.cc
rename : media/libvpx/libvpx/vp8/common/arm/neon/loopfilter_neon.c => media/libvpx/libvpx/vp8/common/arm/neon/vp8_loopfilter_neon.c
rename : media/libvpx/libvpx/vp8/common/mips/dspr2/loopfilter_filters_dspr2.c => media/libvpx/libvpx/vp8/common/mips/dspr2/vp8_loopfilter_filters_dspr2.c
rename : media/libvpx/libvpx/vp8/common/loopfilter.c => media/libvpx/libvpx/vp8/common/vp8_loopfilter.c
rename : media/libvpx/libvpx/vp8/common/x86/loopfilter_mmx.asm => media/libvpx/libvpx/vp8/common/x86/vp8_loopfilter_mmx.asm
rename : media/libvpx/libvpx/vp8/encoder/x86/quantize_sse2.c => media/libvpx/libvpx/vp8/encoder/x86/vp8_quantize_sse2.c
extra : rebase_source : 2e851aff9c848835c5598c579b9e40e0d86658d4
2017-01-16 11:51:27 -08:00
Jan Beich
0879a6e89c Bug 1330873 - Fallback to vpx_config.* from Linux on Tier3 platforms. r=jesup
MozReview-Commit-ID: J67mcTMKL4e

--HG--
extra : rebase_source : c7999cc635961e26a2ac8e2bd3eef808acb707f8
2017-01-13 05:28:52 +00:00
Johann
2451c7624e Bug 1328744 - Fix Android x86 bustage. r=jesup on a CLOSED TREE 2017-01-12 13:52:38 -05:00