Commit Graph

172 Commits

Author SHA1 Message Date
Randell Jesup
fc63a4eb34 Bug 1263384: validate input frames against configured resolution in vp8 r=rillian
MozReview-Commit-ID: BxDCnJe0mzs
2016-04-15 23:11:01 -04:00
Mike Hommey
d464f29e5f Bug 1255813 - Remove build system support for Solaris, HPUX and AIX. r=ted 2016-03-15 07:34:50 +09:00
Ted Mielczarek
86995dd661 bug 1248020 - convert a bunch of moz.build files to use USE_YASM. r=mshal
MozReview-Commit-ID: n59TejhJq6

--HG--
extra : rebase_source : a5fd47c48ae4f03fcd2b699d7283a8838d24449c
extra : amend_source : cdd00e6f76195956dd83f8a2e3109d453459d158
extra : histedit_source : 4e36a2c2ff01a2cb352a46b2f4d9062f14be5232
2016-03-03 11:38:59 -05:00
Ted Mielczarek
5c634ab869 bug 1248016 - make ASFILES rules work with .s/.asm, get rid of ASM_SUFFIX. r=mshal
MozReview-Commit-ID: 1MK0Kud51vR

--HG--
extra : rebase_source : de7a7f11bfbbac1e8eccc34de39dd2d88d803b03
extra : amend_source : d7eddb71b050e0576e783c6ce8c67f66cfd88e13
2016-03-01 13:47:19 -05:00
Karl Tomlinson
26abc0481b bug 1242991 correct vpx include path and vpx/svc_context.h visibilty r=glandium
to fix up --with-system-vpx after f442638a.

--HG--
extra : rebase_source : befad1990f2b4c48b39e27549d19efa22733bf61
2016-02-05 12:06:11 +13:00
Gerald Squelart
79f040d43b Bug 1237848 - Updated update.py patch - r=rillian 2016-02-04 11:29:02 +11:00
Gerald Squelart
422f564ea3 Bug 1237848 - Check lookahead ctx - r=rillian
Copied from https://chromium-review.googlesource.com/324510
2016-02-04 11:29:00 +11:00
Mike Hommey
3e15f264a3 Bug 1245027 - Move LOCAL_INCLUDES to moz.build in media/libvpx. r=mshal 2016-02-03 08:41:23 +09:00
Nathan Froyd
b83566b4a1 Bug 1222166 - use gcc/clang warning flags for clang-cl in moz.build files; r=glandium
This patch turns off a number of gcc/clang-specific warnings for
clang-cl as well, as clang-cl understands all the warning flags that
clang understands.  We currently don't turn on all the gcc/clang
warnings for clang-cl in configure, but that can be done separately, and
this patch addresses some pain points (particularly for cairo).
2015-11-05 16:05:26 -05:00
Nicholas Nethercote
a9f31c44eb Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium.
--HG--
extra : rebase_source : febc9aac7ec5e3699742e728065c370dcee4f0f3
2015-12-16 22:59:42 -08:00
Gerald Squelart
afb8874b81 Bug 1224371 - Upstream update patch. r=jya 2016-01-04 09:06:08 +01:00
Gerald Squelart
f3bb18f40b Bug 1224371 - Cast uint8_t to uint32_t before shift. r=jya
Note: C-style cast because it is C code.
2016-01-04 09:05:47 +01:00
Ehsan Akhgari
557cbedf75 Bug 1233983 - Make libvpx build with clang-cl; r=rillian
This has been submitted upstream:
https://chromium-review.googlesource.com/#/c/319392/
2015-12-30 18:33:41 -05:00
Gerald Squelart
41cab4de4a Bug 1224361 - Upstream update patch - r=rillian 2015-12-03 14:14:46 +11:00
Gerald Squelart
6dbc202a8a Bug 1224361 - Clamp QIndex also in abs-value mode - r=rillian 2015-12-03 14:14:46 +11:00
Gerald Squelart
8267da9745 Bug 1224363 - Upstream update patch - r=rillian 2015-12-03 14:14:45 +11:00
Gerald Squelart
861f436e5e Bug 1224363 - Clamp seg_lvl also in abs-value mode - r=rillian
Even when the segment feature data is in absolute mode, it is still read as a
6-bit value with an added sign, so it could have values between -63 and +63.
Later, this signed value is used without checks as a filter level, which is
used to access an entry in an array of size MAX_LOOP_FILTER+1=64.

This patch just extends the existing clamping (that was done only to relative-
mode data) to absolute mode data, before it is blindly 'memset' in
lfi->lvl[seg][0], which was where the out-of-bound filter_value was read in
subsequent vp8_loop_filter_row_simple.
2015-12-03 14:14:45 +11:00
Ralph Giles
e416737ae7 Bug 1225221 - vpx: allow 8k video. r=kinetik
Result of running update.sh with the new limit.
2015-11-16 11:10:00 -08:00
Ralph Giles
8f6696f4d2 Bug 1225221 - vpx: Allow 8k video in update.sh. r=kinetik
Raise the allowed frame size limit to allow 8k video
per gecko bug 1222145.
2015-11-16 11:09:00 -08:00
Ralph Giles
e37a108abb Bug 1225217 - vpx: restore linux avx2 code in libvpx. r=kinetik
revert bug 1063356 part 5 now that all continuous integration
builds have sufficiently recent toolchains.
2015-11-16 10:58:00 -08:00
Ralph Giles
68f3cf2767 Bug 1218124 - Add vpx_once patch to update script. r=gerald
From 3fae7b20918a3a3c8a9dc6e7f92aef0d19fb20fa Mon Sep 17 00:00:00 2001
2015-11-12 17:00:07 -08:00
Ralph Giles
168bcdfbd5 Bug 1218124 - Use InterlockCompare in win32 vpx_once(). r=gerald
From 64f73cc1f7f57ca6643b027eae63041fec408ea8 Mon Sep 17 00:00:00 2001
2015-11-06 16:42:49 -08:00
Makoto Kato
e5902f9e56 Bug 1219228 - Generate correct source path of cpu-features.c. r=glandium 2015-10-30 12:23:42 +09:00
Mike Hommey
3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Nicholas Nethercote
5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
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