Commit Graph

147 Commits

Author SHA1 Message Date
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Jan Gerber
c7721c8d82 Bug 1073319 - Enable AVX2 for libvpx on linux (libvpx). r=rillian
--HG--
extra : rebase_source : f7bd1cad5cab8c51a87be437923c63c2483dac3e
2015-07-16 02:38:00 -07:00
Jan Gerber
1db34826a1 Bug 1073319 - Enable AVX2 for libvpx on linux (update.py). r=rillian
--HG--
extra : rebase_source : f3b1532895359fbe6ed2fd7fa7283fd1e6c815d8
2015-07-16 02:37:00 -07:00
Jan Gerber
8237145d30 Bug 1192226 - Apply libvpx size limit. r=rillian 2015-08-21 12:01:41 +02:00
Jan Gerber
0cdc2ac683 Bug 1192226 - Enable libvpx size limit in update.py. r=rillian
Bounds match those in VideoUtils.h.
2015-08-08 09:28:52 +02:00
Wes Kocher
b40f92546f Backed out 2 changesets (bug 1192226) for vpx_config bustage
Backed out changeset 92d172a5d403 (bug 1192226)
Backed out changeset 4e7adb955673 (bug 1192226)
2015-08-20 11:19:03 -07:00
Jan Gerber
06a7ff715e Bug 1192226 - Apply libvpx size limit. r=rillian 2015-08-08 09:34:39 +02:00
Jan Gerber
49a21989b2 Bug 1192226 - Enable libvpx size limit in update.py. r=rillian
Limits match those in VideoUtils.h.
2015-08-08 09:28:52 +02:00
Mike Hommey
33527c7e40 Bug 1194905 - Build libvpx neon code without -mthumb and -mfloat-abi=softfp. r=mshal
-mfloat-abi=softfp is hardcoding an ABI that may not match everything else
in Gecko, which is bound to fail. It's also unrelated to building NEON code.
-mthumb is also unrelated to building NEON code, and should be left as it
is for everything else.
Now, interestingly, we also have a VPX_ASFLAGS variable that just contains
the right things instead of hardcoding them in the moz.build, so just use
that instead.
2015-08-18 08:09:14 +09:00
Jan Gerber
0741d70e20 Bug 1178215 - Update libvpx. r=rillian
Update libvpx to e67d45d4ce92468ba193288b59093fef0a502662
* * *
Bug 1178215 - Bump clobber for libvpx file renames. r=me

--HG--
rename : media/libvpx/vp8/common/x86/variance_impl_mmx.asm => media/libvpx/vp8/common/x86/vp8_variance_impl_mmx.asm
rename : media/libvpx/vp8/common/x86/variance_mmx.c => media/libvpx/vp8/common/x86/vp8_variance_mmx.c
rename : media/libvpx/vp8/common/x86/variance_sse2.c => media/libvpx/vp8/common/x86/vp8_variance_sse2.c
rename : media/libvpx/vp9/common/arm/neon/vp9_avg_neon.c => media/libvpx/vp9/common/arm/neon/vp9_convolve_avg_neon.c
rename : media/libvpx/vp9/common/arm/neon/vp9_avg_neon_asm.asm => media/libvpx/vp9/common/arm/neon/vp9_convolve_avg_neon_asm.asm
rename : media/libvpx/vp9/encoder/x86/vp9_dct32x32_avx2.c => media/libvpx/vp9/encoder/x86/vp9_dct32x32_avx2_impl.h
rename : media/libvpx/vp9/encoder/x86/vp9_dct32x32_sse2.c => media/libvpx/vp9/encoder/x86/vp9_dct32x32_sse2_impl.h
rename : media/libvpx/vp9/encoder/x86/vp9_dct_impl_sse2.c => media/libvpx/vp9/encoder/x86/vp9_dct_sse2_impl.h
rename : media/libvpx/vp9/encoder/arm/neon/vp9_sad4d_neon.c => media/libvpx/vpx_dsp/arm/sad4d_neon.c
rename : media/libvpx/vp8/common/arm/armv6/vp8_sad16x16_armv6.asm => media/libvpx/vpx_dsp/arm/sad_media.asm
rename : media/libvpx/vp9/encoder/arm/neon/vp9_sad_neon.c => media/libvpx/vpx_dsp/arm/sad_neon.c
rename : media/libvpx/vp8/common/arm/armv6/vp8_variance16x16_armv6.asm => media/libvpx/vpx_dsp/arm/variance_media.asm
rename : media/libvpx/vp9/encoder/vp9_sad.c => media/libvpx/vpx_dsp/sad.c
rename : media/libvpx/vp9/encoder/x86/vp9_highbd_sad4d_sse2.asm => media/libvpx/vpx_dsp/x86/highbd_sad4d_sse2.asm
rename : media/libvpx/vp9/encoder/x86/vp9_highbd_sad_sse2.asm => media/libvpx/vpx_dsp/x86/highbd_sad_sse2.asm
rename : media/libvpx/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm => media/libvpx/vpx_dsp/x86/highbd_variance_impl_sse2.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad4d_intrin_avx2.c => media/libvpx/vpx_dsp/x86/sad4d_avx2.c
rename : media/libvpx/vp9/encoder/x86/vp9_sad4d_sse2.asm => media/libvpx/vpx_dsp/x86/sad4d_sse2.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad_intrin_avx2.c => media/libvpx/vpx_dsp/x86/sad_avx2.c
rename : media/libvpx/vp8/common/x86/sad_mmx.asm => media/libvpx/vpx_dsp/x86/sad_mmx.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad_sse2.asm => media/libvpx/vpx_dsp/x86/sad_sse2.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad_sse3.asm => media/libvpx/vpx_dsp/x86/sad_sse3.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad_sse4.asm => media/libvpx/vpx_dsp/x86/sad_sse4.asm
rename : media/libvpx/vp9/encoder/x86/vp9_sad_ssse3.asm => media/libvpx/vpx_dsp/x86/sad_ssse3.asm
rename : media/libvpx/vp9/encoder/x86/vp9_variance_impl_intrin_avx2.c => media/libvpx/vpx_dsp/x86/variance_impl_avx2.c
rename : media/libvpx/vp8/common/x86/variance_impl_mmx.asm => media/libvpx/vpx_dsp/x86/variance_impl_mmx.asm
2015-06-29 23:07:20 +02:00
Jan Gerber
c186adf8ce Bug 1178215 - update update.py for new libvpx r=rillian
libvpx dropped vpx_mem_set_functions,
only use it if an external libvpx
is used and still has it.

update update.py
add vpx_dsp_rtcd.h
rebase disable_pthread_on_mingw.patch
add vp9_filter_restore_aligment.patch
drop msvc2015.patch
2015-06-29 23:06:04 +02:00
Jan Gerber
78a6145196 Bug 1176730: Don't use pthread for libvpx in mingw builds. r=rillian
Based on a patch by Jacek Caban.

--HG--
extra : rebase_source : 29b8f1100720d729d4ae0058add5a64ebc1f9a19
2015-06-23 02:19:00 -07:00
Jan Gerber
d37a938d00 Bug 1151175 - Update libvpx to 1.4.0. r=rillian
vp9_thread.c has changed directories, which mach doesn't handle
properly, resulting in "No rule to make target" for the old source
file path.

Bump clobber for libvpx file renames.

--HG--
rename : media/libvpx/vp9/common/generic/vp9_systemdependent.c => media/libvpx/vp8/common/arm/neon/dequantizeb_neon.c
rename : media/libvpx/vp8/common/x86/loopfilter_block_sse2.asm => media/libvpx/vp8/common/x86/loopfilter_block_sse2_x86_64.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_avg_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_avg_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_convolve8_avg_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_convolve8_avg_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_convolve8_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_convolve8_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_copy_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_copy_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct16x16_1_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct16x16_1_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct16x16_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct16x16_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct32x32_1_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct32x32_1_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct32x32_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct32x32_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct4x4_1_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct4x4_1_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct4x4_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct4x4_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct8x8_1_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct8x8_1_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_idct8x8_add_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_idct8x8_add_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_loopfilter_16_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_loopfilter_16_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_loopfilter_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_loopfilter_4_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_loopfilter_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_loopfilter_8_neon_asm.asm
rename : media/libvpx/vp9/common/arm/neon/vp9_reconintra_neon.asm => media/libvpx/vp9/common/arm/neon/vp9_reconintra_neon_asm.asm
rename : media/libvpx/vp9/decoder/vp9_thread.h => media/libvpx/vp9/common/vp9_thread.h
rename : media/libvpx/vp9/encoder/vp9_vaq.h => media/libvpx/vp9/encoder/vp9_aq_variance.h
rename : media/libvpx/vp9/common/generic/vp9_systemdependent.c => media/libvpx/vp9/encoder/vp9_ethread.h
rename : media/libvpx/vp8/encoder/psnr.h => media/libvpx/vp9/encoder/vp9_skin_detection.h
rename : media/libvpx/vp9/encoder/x86/vp9_quantize_ssse3.asm => media/libvpx/vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm
rename : media/libvpx/vp8/encoder/psnr.h => media/libvpx/vpx/internal/vpx_psnr.h
rename : media/libvpx/vp9/common/generic/vp9_systemdependent.c => media/libvpx/vpx/src/vpx_psnr.c
extra : rebase_source : 82ccda936f3d40e8e960c35174e25483ed88726a
2015-06-17 20:46:25 +02:00
Jan Gerber
b9d4195fdb Bug 1151175 - Update libvpx update.py for 1.4.0. r=rillian
--HG--
extra : rebase_source : b894a524b169c410a0c76bfead0f8d447a424347
2015-06-17 20:43:46 +02:00
Ralph Giles
fce6dd199a Bug 1173396 - Restore libvpx alignment patch. r=kinetik
The crash in vp8_diamond_search_sadx4 is reproducing again
so it looks like switching off unified build didn't fix
this.

--HG--
extra : rebase_source : 60517f781a17b3b26eec38d11bcc6a355ac09369
2015-06-10 09:31:00 -07:00
Mike Hommey
806e0220a2 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Mike Hommey
7c306bdc19 Bug 1162845 - Move ASFLAGS to moz.build. r=mshal 2015-05-12 07:54:06 +09:00
Ralph Giles
5326d8e3ee Bug 1159840 - Remove libvpx alignment patch. r=kinetik
Follow-up testing in suggests that the crash in vp8_diamond_search_sadx4
was caused by unified build breakage, so we may no longer need this.
2015-04-29 11:28:00 -07:00
David Major
ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Ralph Giles
735514249c Bug 1157962 - Update libvpx upstream repo reference. r=kinetik DONTBUILD
Google have changed the canonical repository url.
2015-04-23 16:33:13 -07:00
Ralph Giles
9e2e27bfb6 Bug 1154972 - Don't remove upstream libvpx repo. r=kinetik
From df2e0cd12753c147a3bd59f300c507a8246bcd52 Mon Sep 17 00:00:00 2001
This speeds up incremental updates from upstream, or debugging
update script issues.

Note that this changes the behaviour of the update script without
the --commit argument. Previously that would do a fresh clone and
one would get the lastest upstream default branch. Now without a
specific --commit argument, it will re-use an existing checkout
if one is in tree, so take care to update the repo's HEAD to what
you want first.
2015-04-15 13:45:50 -07:00
Ralph Giles
74d8beefd7 Bug 1148639 - Disable unified build for libvpx. r=kinetik
From 79bdcf3f30dd70c3fe95fc6e5adb2f8961e640fd Mon Sep 17 00:00:00 2001
This fixes a build problem with the most recent import on msvc.
In general upstream doesn't support our method of concatenating
source files to speed up compilation. Rather than hand-maintaining
a list of exceptions and risking silent mis-compiles, it's better
just to compile every module individually.
2015-04-15 13:43:17 -07:00
Ralph Giles
177b274c46 Bug 1148639 - Update libvpx. r=kinetik
From b40321d9379faaa62fa16d6d412098fca115042d Mon Sep 17 00:00:00 2001
Result of running ./update.py --ndk ~/android/android-ndk-r9 --commit
afad1a84c15b9af8298a37c0fa449e0af40931fd
2015-03-27 14:56:04 -07:00
Ralph Giles
c536fc79d4 Bug 1148639 - Update libvpx import script and patches. r=kinetik
From 3f94fd4fc68971f0dc2148aa19b4e146262d15af Mon Sep 17 00:00:00 2001
Matched against upstream commit afad1a84c1.
2015-03-27 14:38:35 -07:00
David Major
3fe1b09e45 Bug 1137614: Align the mvsadcost array to work around a possible compiler issue. r=rillian
--HG--
extra : rebase_source : 4b2b582099cd04c8d4913a34d090801c3880905a
2015-04-07 04:32:46 +12:00
Ralph Giles
e8d1645b6c Bug 1139087 - Add moz.build bugzilla metadata for codecs. r=kinetik,gps 2015-03-03 11:36:00 -08:00
Makoto Kato
911ef245b5 Bug 1061339 - Part 2: Build AVX code on all Windows build. r=rillian, r=ted 2015-02-16 23:10:00 -05:00
Makoto Kato
fcc34bf07a Bug 1061339 - Part 1: Always use VS2013 target. r=rillian
--HG--
rename : media/libvpx/vp8_rtcd_x86-win32-vs8.h => media/libvpx/vp8_rtcd_x86-win32-vs12.h
rename : media/libvpx/vp8_rtcd_x86_64-win64-vs8.h => media/libvpx/vp8_rtcd_x86_64-win64-vs12.h
rename : media/libvpx/vp9_rtcd_x86-win32-vs8.h => media/libvpx/vp9_rtcd_x86-win32-vs12.h
rename : media/libvpx/vp9_rtcd_x86_64-win64-vs8.h => media/libvpx/vp9_rtcd_x86_64-win64-vs12.h
rename : media/libvpx/vpx_config_x86-win32-vs8.asm => media/libvpx/vpx_config_x86-win32-vs12.asm
rename : media/libvpx/vpx_config_x86-win32-vs8.h => media/libvpx/vpx_config_x86-win32-vs12.h
rename : media/libvpx/vpx_config_x86_64-win64-vs8.asm => media/libvpx/vpx_config_x86_64-win64-vs12.asm
rename : media/libvpx/vpx_config_x86_64-win64-vs8.h => media/libvpx/vpx_config_x86_64-win64-vs12.h
rename : media/libvpx/vpx_scale_rtcd_x86-win32-vs8.h => media/libvpx/vpx_scale_rtcd_x86-win32-vs12.h
rename : media/libvpx/vpx_scale_rtcd_x86_64-win64-vs8.h => media/libvpx/vpx_scale_rtcd_x86_64-win64-vs12.h
2015-02-16 21:15:00 -05:00
Brian Smith
02a7263b3f Bug 1119776, Part 2: Avoid defining snprintf when MSVC provides it (video), r=giles
--HG--
extra : rebase_source : 0ea7b0b1a65b31993df689784dd17e741a0c312e
2015-01-08 22:32:03 -08:00
Ryan VanderMeulen
a11c606b18 Bug 934984 - Disable the /GL flag when compiling libvpx asm files to avoid MSVC bustage. r=ted 2015-01-08 08:23:00 -05:00
Ehsan Akhgari
d40b227bc3 Bug 1109895 - Send the correct -m flags to clang-cl when building libvpx; r=jrmuizel
--HG--
extra : rebase_source : 2806ced531eb39e33b30337f1112e4efb3e179db
2014-12-18 10:31:46 -05:00
Ralph Giles
a52484c104 Bug 1105858 - Bump libvpx for arm toolchain work-arounds. r=kinetik
Update our in-tree libvpx code to upstream master from September 25.
This includes a work-around added to skip neon intrinsics which
android toolchains fail to compile properly. See bug 1087096.

Results of running ./update.py --ndk ~/android/android-ndk-r9 --commit
587ff646f
2014-11-27 13:15:00 -08:00
Chris Jones
8cb82039c5 Bug 1085599: Enable NEON intrinsics for C files when even when building for ARMv6. r=rillian,ted 2014-11-06 14:50:42 -08:00
Karl Tomlinson
5cf875b9ba bug 1074860 don't require sse4.1 to run vpx common code r=ted
--HG--
extra : rebase_source : 1ad710ba3c661e8ae2ebb674111899abff815567
2014-10-30 17:47:43 +13:00
Jacek Caban
125cb20dd2 Bug 1092136 - Enable AVX2 support in libvpx for mingw toolchain. r=rillian 2014-11-03 10:29:16 +01:00
Steven Michaud
e58bf5ccbd Bug 1085607 - libvpx doesn't build on OS X with Apple clang from OS X 10.7 command line tools. r=giles 2014-10-20 19:35:39 -05:00
Ralph Giles
a4de313714 Bug 1063356 - Define __ANDROID__ for libvpx asm. r=kinetik,mshal
The assembly relies on __ANDROID__ to decide whether to call
'lrand48' or 'rand'. The later is available on desktop but
only on Android L or later. However, this macro isn't defined
by the linux vpx_config asm file we use for x86 Android builds,
so we must pass it manually when invoking yasm.
2014-10-16 13:39:20 -07:00
Ralph Giles
6c7033f59d Bug 1063356 - Pass -mfpu=neon when building libvpx. r=kinetik,mshal
This is required to compile the new intrinsic-based simd acceleration
code for arm.
2014-10-15 11:38:17 -07:00
Ralph Giles
d22b62c91b Bug 1063356 - Disable libvpx AVX2 support on linux. r=kinetik
Temporarily disable AVX2 simd acceleration on linux to work around
issues with old toolchains on the integration server builds.

Linux valgrind and B2G desktop builds use an older gcc which doesn't
support the new AVX2 intrinsics. This can be resolved either by updating
the build, or splitting the target platforms into AVX and no-AVX variants.
2014-10-17 09:01:30 -07:00
Ralph Giles
a0cdc9e13f Bug 1063356 - Update libvpx build flags. r=kinetik,ted
Propagate ssse3 and sse4.1 build flags from configure.
This is required by new optimations in upstream commit
c731d6a4f19eea861ceb2ff31399420b2452eb74.
2014-10-07 10:14:07 -07:00
Ralph Giles
307e5968d6 Bug 1063356 - Update libvpx source. r=kinetik
Results of running ./update.py --ndk ~/android/android-ndk-r9
    --commit c731d6a4f19eea861ceb2ff31399420b2452eb74
2014-10-07 09:49:40 -07:00
Ralph Giles
1d50c84dd8 Bug 1063356 - Update libvpx update script. r=kinetik
Remove upstreamed patches, rebase stdint.patch.

Update script to work with the most recent chrome pull, upstream
hasn't been doing releases, so this is the next best way to stay
current.

It's no longer possible to build vp8 and vp9 in the same unified
source file, so most of the vp9 code is moved out of unified
sources.
2014-10-06 14:41:18 -07:00
Ralph Giles
bb786d9cdd Bug 1063327 - Reject vp9 frames with invalid tiles. r=kinetik 2014-10-01 17:28:03 -07:00
Ralph Giles
a02bb8dd7a Bug 1063356 - Back out partial libvpx update. r=me
It's taking a while to get the new version building on all platforms.
Removing the partial commits so we can land cleanly.
2014-10-02 11:20:47 -07:00
Ralph Giles
7e27a1065b Bug 1063356 - Update libvpx source files. r=kinetik
Results of running update script against libvpx commit
d95585fb0ec024f6abd96f7b02e0df58019d46af
2014-09-24 20:37:00 -07:00
Ralph Giles
824b08bcd8 Bug 1063356 - Update libvpx build flags. r=kinetik,ted
Propagate ssse3 and sse4.1 build flags from configure.
This is required by new optimations in upstream commit
d95585fb0ec024f6abd96f7b02e0df58019d46af.
2014-09-24 20:33:00 -07:00
Ralph Giles
982f2e9f1a Bug 1063356 - Update libvpx update script. r=kinetik
There have been releases. Bump to the git commit used by the
most recent chrome pull: d95585fb0ec024f6abd96f7b02e0df58019d46af.

This patch contains changes to the update script necessary to
build the new snapshot and removes upstreamed patches.

It's no longer possible to build vp8 and vp9 in the same unified
source file, so most of the vp9 code is moved to standalone sources.
2014-09-24 20:30:00 -07:00
Mike Hommey
ed70c5f377 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Makoto Kato
460ce4e3e7 Bug 1061538 - Remove unused vpx_rtcd.h from libvpx. r=giles 2014-09-03 11:32:31 +09:00
Landry Breuil
bdf28b83b7 Bug 982693 - use -fno-integrated-as (if available) with clang when building vp8_asm_enc_offsets.c r=tterriberry 2014-07-11 09:55:27 +02:00