Граф коммитов

3214 Коммитов

Автор SHA1 Сообщение Дата
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Byron Campen [:bwc] d276234312 Bug 1112692: BundlePolicy support, and support for more than one BUNDLE group. r=mt, r=smaug
--HG--
extra : rebase_source : 1c5116634398337ad0816a29409224b612b9749c
extra : amend_source : 250d02fc24b39702f1f963178f7de5c9e8f60e89
extra : source : 9293d87a19f9f96ab6ae957f9ff40123e853c584
2015-06-12 14:27:08 -07:00
Ralph Giles 8931994bd3 Bug 1179885 - Update rust mp4parser gtest. r=k17e
Switch to stdio for reading the file snippet. I can't figure
out how to cleanly read a minimum subset into a vector with
ifstream. Previously we were asking it to read zero bytes,
so the argument validation in read_box_from_buffer() was
rejecting the data without trying to parse it.

With this and the v0.0.9 changes to catch eof, we can remove
the expected fail on the street.mp4 test.
2015-07-02 14:12:14 -07:00
Ralph Giles 7e60c406ad Bug 1179885 - Update rust mp4parser to v0.0.9. r=k17e
Source from https://notabug.org/rillian/mp4parse-rust

Modified to use byteorder as a local mod instead of an
extern crate, per bug 1175322.
2015-07-02 14:12:13 -07:00
Byron Campen [:bwc] 97d45626f1 Bug 797262 - IPV6 support for webrtc. r=drno
--HG--
rename : media/webrtc/trunk/webrtc/base/ifaddrs-android.cc => media/mtransport/third_party/nICEr/src/stun/ifaddrs-android.c
extra : rebase_source : a929d159e8e7b39a2bfe3d431395caa838f75a54
2015-04-22 15:02:50 -05:00
Byron Campen [:bwc] 73bf6da5c9 Bug 980609: Do not assert that TURN TCP client contexts can't fail before attempting to allocate. r=ekr
--HG--
extra : rebase_source : 24bcbf50e03a19a5f09ef3e39a5c3c285c73322b
2014-03-07 15:29:09 -08:00
Byron Campen [:bwc] deed219594 Bug 971357: Log STUN responses at INFO instead of DEBUG. r=ekr
--HG--
extra : rebase_source : 58291fe1ea5c807eff63982dfab4fe8f37289030
2014-02-11 17:27:45 -08:00
Byron Campen [:bwc] 85e5c38741 Bug 1035428: Re-register writeable callback after partially servicing the send queue. r=drno 2014-07-07 14:25:23 -07: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
Nathan Froyd 974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Nathan Froyd 085aa479e6 Bug 1175621 - make WrapRunnable* more efficient by utilizing moves in wrapper functions; r=ekr
Calls to WrapRunnable* copy their arguments already; we don't need to
copy them a second time when constructing the actual runnable.  In
addition to making things more efficient, this change also permits calls
to WrapRunnable to correctly handle objects that can only be moved, and
not copied.
2015-06-17 10:52:48 -04:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Ralph Giles c9aa6b2fac Bug 1177029 - Use stdint.h instead of cstdint. r=kinetik
Clang can't find this on my MacOS X machine.
2015-06-24 00:23:00 -07: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
Matthew Gregan ac2b9444ba Bug 1103824 - Back out changeset for causing regression reported in bug 1176499. 2015-06-23 17:02:51 -07:00
Jean-Yves Avenard 3f6934ace6 Bug 1174577: P1. Have Init segment range only include the first moov. r=kentuckyfriedtakahe 2015-06-19 16:45:15 +10:00
Nils Ohlmeier [:drno] 2e746f9a3a Bug 891551 - Part 11: fix a couple of issues from part 5. r=bwc 2015-06-18 23:02:38 -07:00
Nils Ohlmeier [:drno] ce7a04b4f0 Bug 891551 - Part 10: added user pref to turn of ICE TCP. r=mt 2015-06-18 23:02:33 -07:00
Nils Ohlmeier [:drno] 2ca1bfcdb2 Bug 891551 - Part 9: ignore initial socket connect failures during gathering. r=jesup 2015-06-18 23:02:25 -07:00
Peter Tatrai 72a87d1ac6 Bug 891551 - Part 8: Increase and make backlog value configurable. r=bwc 2014-06-12 07:25:00 -07:00
Byron Campen [:bwc] fedbd732d1 Bug 891551 - Part 7: Fix some intermittent failures in multi_tcp_socket_unittest. r=ekr 2014-06-09 15:04:42 -07:00
"Peter Tatrai ext:(%22) ae531cc1ad Bug 891551 - Part 6: Add log dumper to multi_tcp_socket_unittest. r=bwc 2014-06-03 08:44:59 +02:00
"Peter Tatrai ext:(%22) 6d354a80da Bug 891551 - Part 5: Add support for TCP ICE candidates. r=bwc,jesup 2014-04-23 10:15:25 +02: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
Gerald Squelart f4ccd23df1 Bug 1173631 - [EME] Implement async shutdown in clearkey GMP. r=cpearce
--HG--
extra : rebase_source : d6e510b5e081d581524a38a684a9cc677a5bde34
2015-06-11 22:05:00 +02:00
Adrian Cruceru b6bd5b4c75 Bug 881742: Fix null-deref on OOM (or bad allocation size due to corrupted video) in webrtc upstream code r=jesup 2015-06-18 00:06:36 -04:00
Ralph Giles 074f872aa1 Bug 1175322 - Add gtests for rust mp4 metadata parser. r=k17e
Add a null buffer test.
Add a street.mp4 test.

We have trouble parsing gizmo.mp4, and the dom/media/gtest
already exposes the file, which is confusing since we apparently
can't have duplicates in TEST_HARNESS_FILES.

The street.mp4 test always fails because we don't catch
the eof in the rust code.
2015-06-16 15:52:00 -07:00
Ralph Giles dbec6e99b1 Bug 1175322 - Import byteorder crate. r=k17e
This is the source of Andrew Gallant's byteorder crate,
used end the MIT license.

It has been slightly modified to re-export the new sub-module
so it can be built as a mod inside our MP4Metadata crate since
we don't currently support crate dependencies.
2015-06-16 15:51:00 -07:00
Ralph Giles 35b5a70f29 Bug 1175322 - Import mp4parse v0.0.8 source. r=k17e
Source from https://notabug.org/rillian/mp4parse-rust
2015-06-16 15:50:00 -07:00
Ralph Giles 83d61e2787 Bug 1174356 - Add missing MediaData include. r=jya
Needed for separate compilation of MP4Metadata.h in unit tests.

--HG--
extra : rebase_source : 13d6298ff6a5e6706ab42a8d6fe2cadb15dba631
2015-06-15 08:53:00 -07:00
Nathan Froyd 2c0ec52c9a Bug 1162026 - move WrapRunnable &co over to variadic templates; r=ekr 2015-05-05 16:21:37 -04:00
Andreas Pehrson 791226a885 Bug 1172397 - Check for Conduit/Type mismatch on every frame. r=jesup, r=bwc
--HG--
extra : rebase_source : 3855bb01e52fec665fc4dbcffda9247191349e77
2015-06-08 14:43:48 +08:00
Matthew Gregan bf4e15de86 Bug 1103824 - Ensure first initialization of IAudioClient happens on STA thread. r=padenot
--HG--
extra : rebase_source : 344380ef08d44983c745bea5cee792140ca7ca66
2015-05-14 18:33:23 +12:00
Birunthan Mohanathas 2d96c72f58 Bug 1174220 - Part 2: Use MediaByteBuffer instead of MediaLargeByteBuffer. r=jya
All MediaLargeByteBuffer calls already include the `mozilla::fallible`
parameter so we can safely replace MediaLargeByteBuffer with MediaByteBuffer.
2015-06-14 21:37:13 -07:00
Ted Mielczarek 5d19fb925a bug 1171143 - Fix iOS capture build. r=jesup
--HG--
extra : commitid : C2USxBeZe6F
extra : rebase_source : d217dcc4ab9dc6a9b36934e69f62291e22469b79
2015-02-28 19:47:07 -05:00
Ted Mielczarek f29254de56 bug 1171120 - Fix mtransport+signalling to build on iOS. r=ekr
--HG--
extra : commitid : IzeeeUXXL9N
extra : rebase_source : 7f5d4d505327989abffde752b99bc62a497f6c77
2015-02-27 12:37:42 -05:00
Ted Mielczarek 1c8dfe9741 bug 1171072 - make libcubeb build on iOS. r=kinetik
--HG--
extra : commitid : R5mXVfavLL
extra : rebase_source : 61121b45801e46597047006e9c72e8702a3b0792
2015-02-06 14:50:40 -05:00
Byron Campen [:bwc] 63565e6168 Bug 1170683: Do a better job in copying previous transport parameters into new offers/answers. r=mt
--HG--
extra : rebase_source : f263b9ad0bce2928a13584f374018d94cd6144ba
extra : amend_source : 8476404611746d25e7f1bbf34c6c1ec5077f9af6
2015-06-02 17:15:40 -07: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
Andreas Pehrson ffc3d7735d Bug 1169125 - Part 2: Use UniquePtr for scoped delete of yuv data in MediaPipeline. r=bwc
--HG--
extra : rebase_source : 4a66d6946479adb7d0574448e2204e63f388b698
extra : histedit_source : c7c0824f3ed1f02db24a1792b10ea7315b6e46e6
2015-06-09 13:31:34 +08:00
Andreas Pehrson f76298db5c Bug 1169125 - Part 1: Allow sending any DataSourceSurface-backed image over WebRTC and fix failure cases. r=bwc
--HG--
extra : rebase_source : c4a9d4fb40d1ea2aefe3be7bfa864998dc2062fa
extra : histedit_source : d7909e28671d1b965798e7e040a8fdc51309585f
2015-06-09 13:31:22 +08:00
Jean-Yves Avenard bc7bec465a Bug 1171330: P14. Add ContainerParser::FirstCompleteMediaHeader() method. r=kentuckyfriedtakahe
--HG--
extra : rebase_source : 6adaf84ce44a6024b5eb40672f3d8d9bb107432d
2015-06-11 16:27:15 +10:00
Jean-Yves Avenard 584ec04c52 Bug 1171330: P1. Add ContainerParser::MediaSegmentRange() method. r=kentuckyfriedtakahe
And add abilities to MoofParser to indicate if a media segment is complete.
In MP4 a media segment is made of a moof atom followed by one (or more) mdat
atoms.

--HG--
extra : rebase_source : 0b0db48d55462025d9d45bf9b3bbdbc806b0e7a8
2015-06-11 15:49:49 +10:00
Byron Campen [:bwc] dc3971b1c9 Bug 1035468: A NAT simulator based on NrSocket, and integrate into ice_unittest. r=ekr
--HG--
extra : rebase_source : 1ca1bb919526b3a4e091022e5aba04140efc9c90
extra : source : d354fa12177226f079090cc34277aaf1016e23fa
2015-06-10 15:27:12 -07:00
Birunthan Mohanathas 94f1cfa658 Bug 968520 - Add mozilla::fallible to more FallibleTArray calls. r=froydnj
This calls were already fallible due to their type (FallibleTArray). This
commit merely makes that fact visible at the call site.
2015-06-10 14:30:41 -07:00
Jean-Yves Avenard 8b436991f9 Bug 1171067: Part2. Properly hande box size marked as 0. r=kentuckyfriedtakahe
This indicates that the box goes to the end of the file.
2015-06-10 19:38:13 +10:00
Jean-Yves Avenard 884ee68615 Bug 1171067: Properly read 64bits header's size. r=kentuckyfriedtakahe 2015-06-10 19:38:13 +10:00