Commit Graph

2794 Commits

Author SHA1 Message Date
Paul Adenot
252e552736 b=907986 part 3 fold-in 1 remove normalize of unit vector r=padenot 2013-09-03 10:52:55 +02:00
Chris Double
1a90ff7305 Bug 888816 - Log android device information before checking for stagefright blocklist - r=edwin 2013-09-03 14:37:51 +12:00
Chris Double
5650b473fb Bug 888786 - Part 1: Remove OMX media plugin workarounds for Sony ICS devices - r=edwin 2013-09-03 14:35:54 +12:00
Chris Double
75fe075bb4 Bug 812680 - Part 1: Remove OMX media plugin workarounds for HTC One X - r=edwin 2013-09-03 14:34:33 +12:00
Karl Tomlinson
dbed0acd62 b=911777 disable test_delayNodeAtMax.html on Ubuntu(|64) opt builds
--HG--
extra : transplant_source : %27%3E%E7%B8%81%F6%AAg%A8%B0H%86%97%C5/V6%B8%FCh
2013-09-03 12:54:37 +12:00
Karl Tomlinson
6efcdee9de use existing named constants b=890528
--HG--
extra : transplant_source : %C9%F5%23%A2%CC%D0%E5v%F4%7B%ED%93%0C%B6%D7%E3%CC%C5%B1%A1
2013-09-02 16:53:15 +12:00
Karl Tomlinson
a760b49eba remove unintentional ! in ed23ecc80370 to test expected buffer frame count when length is supplied b=890528
--HG--
extra : transplant_source : %BB%8E%A8%C2BBFr%A4D%28VG%84%2A%AE%A3qZ%81
2013-09-02 16:53:15 +12:00
Karl Tomlinson
cf7b81a5bf test for bug 891254
--HG--
extra : transplant_source : %FE%D3%7F%0F%3Da%3A%D9u6Hx2%E22%15fn%14H
2013-09-02 16:52:15 +12:00
Nicholas Nethercote
d74157039d Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
JW Wang
592aaedd9e Bug 907303 - Use fewer local variables to workaround a bug in GCC 4.4.3. r=ehsan 2013-08-30 15:07:33 +08:00
Karl Tomlinson
dbc5b73a3e b=890528 Record silence in the delay buffer when there is no input, to avoid echos r=ehsan
--HG--
extra : transplant_source : x%A5%D0%A8%F9%7B%7DX%AA%C5%04%7E.%2C%B6%3A%EF%3F%08%5E
2013-09-02 12:59:34 +12:00
Karl Tomlinson
eb237f5e62 b=890528 delay buffer must be greater than max delay frames to avoid reading what has just been written r=ehsan
--HG--
extra : transplant_source : %86L%3C%C2%F0%A79%E4w%F6u%FD%11d%A9%FCu%F90%E8
2013-09-02 12:59:34 +12:00
Karl Tomlinson
88ea5a6a50 test for bug 890528
--HG--
extra : transplant_source : B%22%1A%B5%E9%03%D1%A4%D9%20%F7%12%FA%09%10%14%A0%19x%BA
2013-09-02 12:59:31 +12:00
Karl Tomlinson
5ab5819cdc b=890528 add more documentation and make length optional when createExpectedBuffers is present r=ehsan
--HG--
extra : transplant_source : R%7DJo%87%0C%0D%0FuX%C4%BC%C0%95%08b%5D%DA%D1%BF
2013-09-02 11:27:44 +12:00
Jason Smith
9ae68bc81f Bug 903781 - Mochitest for recording media with timeslice for media recording api. r=roc 2013-08-29 09:56:12 -07:00
Ed Morley
49ca5b33d6 Merge latest green inbound changeset and mozilla-central 2013-08-30 17:23:11 +01:00
Randell Jesup
f587d1f5aa Bug 901583: Reapply mozilla patches on top of webrtc.org 3.34, use NEON detection rs=jesup
--HG--
rename : media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_opensles_android.cc => media/webrtc/trunk/webrtc/modules/audio_device/audio_device_opensles.cc
rename : media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_opensles_android.h => media/webrtc/trunk/webrtc/modules/audio_device/audio_device_opensles.h
2013-08-30 02:08:57 -04:00
Chris Double
db37b141ed Bug 860599 - Use DataSource::CreateFromURI instead of MediaStreamSource - r=cpearce
--HG--
extra : rebase_source : da5a909d64ad903f86ad7fb76cb306252d8ccaad
2013-08-30 16:51:38 +12:00
Shelly Lin
42d5e8fb6a Bug 899935 - Mochitest for stopping the recorder right after starting it. r=jsmith 2013-08-06 22:13:37 -07:00
Shelly Lin
7ef248a099 Bug 899935 - Produce zero-length output if calling Stop right after a Start call of MediaRecorder. r=roc 2013-08-29 19:59:08 +08:00
Paul Adenot
50c6309859 Bug 881092 - Test that we can decode multichannel WAVE file only when using decodeAudioData. r=ehsan
--HG--
extra : rebase_source : fe1cb35be9a1197b01a6c90654abd825f28a67e5
2013-08-29 11:44:05 +02:00
Paul Adenot
3358457bfc Bug 881092 - Allow decoding files we know we can't play, in the context of WebAudio. r=kinetik,rillian
--HG--
extra : rebase_source : ebad931aede2f8225404625e90a5f3228c4a31c0
2013-08-29 11:43:44 +02:00
Eitan Isaacson
bc3f11d694 Bug 909240 - Add SpeechSynthesisUtterance to cycle collection. r=smaug 2013-08-29 14:24:53 +03:00
Rick Eyre
d91df96fac Bug 868509 - Rename TextTrackCue to VTTCue r=rillian
This way we can ensure that JS code written for WebVTT is spec
compliant while at the same time not having to abstract VTTCue
from TextTrackCue.

--HG--
rename : dom/webidl/TextTrackCue.webidl => dom/webidl/VTTCue.webidl
2013-08-27 13:07:00 -07:00
Chris Pearce
359627843e Bug 908862 - Strip ID3 tags before we expose MP3 data to DirectShow, to work around bugs in its MP3 decoder. r=padenot 2013-08-29 10:53:03 +12:00
Boris Zbarsky
527fc53e17 Bug 909645 part 3. Make including SpeechRecognition.h and MediaManager.h not pull ipdl headers. r=ms2ger 2013-08-28 00:14:57 -04:00
Ehsan Akhgari
fa0d16b094 Bug 898967 - Remove the unused StreamBuffer::mForgottenUpTo member; r=roc
--HG--
extra : rebase_source : ef259872ebe3e49dad71a1ca28788c0e8a6ed05f
2013-08-28 10:14:01 -04:00
Brian O'Keefe
0ee041b9fd Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Nicholas Nethercote
709526655e Bug 831193 (part 16) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in media/. r=kinetik.
--HG--
extra : rebase_source : 86c334ccef76af552b64317a08d1c4cb8c3804e3
2013-01-17 21:43:20 -08:00
Boris Zbarsky
814e6108be Back out revisions 042d50591265:69f4af72765c (bug 909645) due to Windows bustage causing a CLOSED TREE. 2013-08-28 01:46:00 -04:00
Boris Zbarsky
a210c094d7 Bug 909645 part 3. Make including SpeechRecognition.h and MediaManager.h not pull ipdl headers. r=ms2ger 2013-08-28 00:14:57 -04:00
Randell Jesup
2bb1e1c451 Bug 909946: missing %s in LOG statement for webrtc_trace logging r=abr 2013-08-27 17:30:10 -04:00
Karl Tomlinson
aca56a9de0 b=903270 remove default null initial event parameter from NS_NewNamedThread() call site r=doublec
--HG--
extra : transplant_source : b%B5%DF%BFTQ%DE%FE%DC%09l%21%ACzA%C7a%27%90%60
2013-08-27 12:39:24 +12:00
Ryan VanderMeulen
52ef962a16 Merge inbound to m-c. 2013-08-26 20:19:26 -04:00
Sotaro Ikeda
b8ce56f688 Bug 905008 - Block bogus MetadataLoaded event. r=doublec 2013-08-26 12:11:58 -04:00
Paul Adenot
0f74c3e49b Bug 908144 - Don't output sound before start() is called when using OscilatorNode. r=ehsan 2013-08-26 11:46:33 +02:00
Wes Kocher
867435ec69 Backed out 2 changesets (bug 909187)
Backed out changeset 79b1a4a62635 (bug 909187)
Backed out changeset 0601038e2a31 (bug 909187)
2013-08-26 02:29:55 -07:00
Randell Jesup
a95c9e7fee Bug 909187: Part 2 - Allow DOM MediaStreams to intercept SetTrackEnabled calls r=roc 2013-08-26 02:07:19 -04:00
Randell Jesup
f001f53426 Bug 909187: Part 1-Refactor MediaStreamTrack disabling so we can call it directly and access from other threads r=roc 2013-08-26 02:07:17 -04:00
Randell Jesup
dc8a4ca944 Bug 884365: Deliver gUM data directly to PeerConnection to avoid delay buildup and resampling r=roc 2013-08-24 09:53:11 -04:00
Randell Jesup
c51f423a38 Bug 884365: Add method to return the amount of buffered data on a SourceMediaStream r=roc 2013-08-24 09:53:01 -04:00
Gabriele Svelto
619cc7ccf1 Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Ms2ger
b5df99e7e3 Revert this CLOSED TREE to changeset 4d3e221584a0. 2013-08-24 13:31:48 +02:00
Gabriele Svelto
b6e8140bfc Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Kyle Huey
bf31d78a83 Bug 903772: Part 3 - Refactor GlobalObject. r=peterv 2013-08-22 22:17:08 -07:00
Ryan VanderMeulen
1ef4f3befe Merge inbound to m-c. 2013-08-22 15:42:18 -04:00
Ryan VanderMeulen
f052649111 Bug 908306 - Disable more Web Audio crashtests on B2G due to frequent timeouts. 2013-08-22 14:04:41 -04:00
Nicholas Cameron
01b99f2af9 Bug 902929. Be explicit about re-attaching async video compositable hosts. r=nical 2013-08-21 13:28:53 +12:00
Ms2ger
dd3ed79f0d Merge PGO-green changeset from inbound to m-c. 2013-08-22 10:31:44 +02:00
Ms2ger
19f3e043e3 Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger
fa65b962f6 Bug 883284 - Part b: Move LIBXUL_LIBRARY into moz.build (a-c); r=joey 2013-08-22 08:55:59 +02:00
Ms2ger
66214743ad Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Eitan Isaacson
a7011bca77 Bug 858529 - Add nsISpeechTask.SendAudioNative. r=smaug 2013-08-21 12:39:27 -07:00
Ehsan Akhgari
2a87c95927 Bug 904695 - #include fewer headers in nsContentUtils.h; r=jst 2013-08-21 15:28:26 -04:00
Jason Smith
b8fca425b6 Bug 899878 - Mochitest for recording media with no timeslice for media recording API. r=roc 2013-08-20 23:40:29 -07:00
Trevor Saunders
6ad6f7d99c bug 899210 - convert camera control to WebIDL r=bz 2013-07-06 16:55:10 -04:00
Randell Jesup
7c2560bf88 Bug 909187: Part 2 - Allow DOM MediaStreams to intercept SetTrackEnabled calls r=roc (reland) 2013-08-26 02:07:19 -04:00
Randell Jesup
4049bed258 Bug 909187: Part 1-Refactor MediaStreamTrack disabling so we can call it directly and access from other threads r=roc (reland) 2013-08-26 02:07:17 -04:00
Wes Kocher
2a9e21a70f Backed out changeset 315c9f0af9bb (bug 902929) 2013-08-20 20:50:20 -07:00
Nicholas Cameron
8acfeaece0 Bug 902929. Be explicit about re-attaching async video compositable hosts. r=nical 2013-08-21 13:28:53 +12:00
David Zbarsky
826b4c099f Bug 903819 - Don't include Layers.h everywhere, part 4 r=nrc 2013-08-20 15:45:30 -04:00
Eitan Isaacson
b64475c4fc Bug 906867 - Include speech synth ipdls regardless of it being enabled at build time. r=gps 2013-08-20 09:24:04 -07:00
Rick Eyre
cc0a3a7eac Bug 905320 - Add regression tests to make sure we don't leak again. r=khuey
Original test comes from bug 895305 which is a duplicate of 905320.
2013-08-15 18:30:13 -04:00
Rick Eyre
7b90a3a973 Bug 905320 - Fix TextTrack classes to utilize cycle collection correctly. r=khuey
We were incorrectly using the wrapper cache cycle collection macros when that
functionality was already implemented by the base classes. Therefore, we
should instead use the inherited version of the cycle collection macros.
2013-08-15 11:11:15 -04:00
Ralph Giles
32a4c9234d Bug 865253 - Part 5: Shorten a comment to fit in 80 columns. r=ehsan 2013-08-19 11:58:00 -07:00
Ralph Giles
b2a2d1d336 Bug 865253 - Part 4: Stop OscillatorNodes on context shutdown. r=ehsan
Like AudioBufferSourceNode and ScriptProcessorNode, OscillatorNode
holds a self-reference in mPlaying. Keep track of all osc nodes
in the AudioContext and explicitly stop them to make sure this
reference is dropped.
2013-08-19 11:57:00 -07:00
Ralph Giles
b6cd82c798 Bug 865253 - Part 3: Direct generation of fixed oscillator types. r=ehsan
Simple direct calculation of the fixed types.

We probably want to use the PeriodicWave machinery to generate
the pre-defined waveforms once it's available. In either case
we can optimize this significantly by caching the generated
waveform when the frequency is stationary over the block.
2013-08-19 11:56:00 -07:00
Ehsan Akhgari
8ac7f2d7eb Bug 865253 - Part 2: Implement the alternate enum values for OscillatorNode; r=roc 2013-08-19 11:54:00 -07:00
Ehsan Akhgari
d323ec880a Bug 865253 - Part 1: Implement the DOM bindings for OscillatorNode; r=roc 2013-08-19 11:53:00 -07:00
Ehsan Akhgari
477c24d934 Bug 905444 - Do not attempt that we can handle empty channels when mixing; r=roc 2013-08-16 10:42:50 -04:00
Chris Double
1a460ea6ef Bug 905070 - Fix uninitialized value use in HTML media element - r=kinetik 2013-08-16 21:57:17 +12:00
Ehsan Akhgari
1bb70455b6 Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-15 15:44:14 -04:00
Ehsan Akhgari
c0a07f27fe Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
L. David Baron
d0c5182318 Back out changeset 2454e6a5edbd (Bug 904926) on CLOSED TREE for lots of fatal assertions in Windows debug builds in MediaDecoder::IsDataCachedToEndOfResource. 2013-08-14 22:36:17 -07:00
Robert O'Callahan
d79d0821c2 Bug 904926. Remove unnecessary lock. r=cpearce 2013-08-15 16:24:00 +12:00
Wes Kocher
0e341ba80c Backed out changeset 016fa89e49b0 (bug 905409) on a CLOSED TREE 2013-08-14 17:21:45 -07:00
Ehsan Akhgari
e73f6e995f Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-14 18:46:00 -04:00
Ryan VanderMeulen
c292f445e7 Merge m-c to inbound. 2013-08-14 17:11:30 -04:00
Randell Jesup
84e1617a01 Bug 905062: Clean up fake source for getUserMedia r=padenot 2013-08-14 17:01:16 -04:00
Carsten "Tomcat" Book
4a10a49030 merge mozilla-central to b2g-inbound 2013-08-14 15:02:24 +02:00
Ms2ger
6ec28362b3 Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar 2013-08-14 08:56:21 +02:00
Shelly Lin
0ce5665500 Bug 903023 - memset with 0 if the buffer of audio chunk is null. r=roc 2013-08-14 11:04:52 +08:00
Shelly Lin
cb7d5fde17 Bug 897895 - Correct the pcm offset when encoding audio source with two channels. r=roc 2013-08-14 11:04:55 +08:00
JW Wang
0a419b70d3 Bug 882171 - Part 2: Call NEON implementation. r=ehsan, r=glandium 2013-08-13 17:30:18 +08:00
JW Wang
99015508fd Bug 882171 - Part 1: Add NEON implementation of AudioNodeEngine.cpp. r=roc, r=padenot, r=derf, r=glandium 2013-08-13 15:39:42 +08:00
Paul Adenot
df42bbf5c3 Bug 903476 - Fuzz a bit more and android as well.
--HG--
extra : rebase_source : 57d9a1ed3549a0c8a2af9fb8be42b5823f21a2ec
2013-08-13 15:56:42 +02:00
Paul Adenot
a458f5268f Bug 903476 - Fuzz a bit more on win32.
--HG--
extra : rebase_source : 321848369a2f2401b1fcaf287bfbcd049a7c299c
2013-08-13 14:48:36 +02:00
Paul Adenot
e46e821b3e Bug 903476 - Update the fuzzing values in test_mediaDecoding.html because we changed the resampler. r=ehsan
--HG--
extra : rebase_source : 3b354018ba83f53cf64d6adb511c41dfcb205039
2013-08-13 12:44:34 +02:00
Chris Pearce
c01b531087 Bug 861693 - Makefile and moz.build changes required for DirectShow audio backend. r=gps 2013-08-13 16:49:25 +12:00
Chris Pearce
d265de7ebd Bug 861693 - DirectShow MP3 decoder HTML5 audio backend for Windows. r=padenot 2013-08-13 16:49:25 +12:00
Karl Tomlinson
6cb557818b b=815643 Implement HRTF panner processing based on Blink implementation r=ehsan
--HG--
extra : rebase_source : 197fd6f39d3d45b61d25d9dc399c72828d93655a
2013-08-09 10:08:06 +12:00
Karl Tomlinson
f90f9409c0 b=815643 Add Blink's HRTFPanner to the build r=ehsan
--HG--
extra : rebase_source : 14187eb58d308c25b3ff37356a1aef6757aee81d
2013-08-09 10:07:49 +12:00
Karl Tomlinson
3d1106b19c b=815643 Refactor DelayNodeEngine delay processing into a shareable class r=ehsan
--HG--
extra : rebase_source : e25ff3e490c2cbce5ed7cdf9419ccc2850ea16e5
2013-08-09 10:07:49 +12:00
Karl Tomlinson
6f77a7975e b=865241 don't join HRTFDatabaseLoader thread until it has finished r=ehsan
Also turn some always-true conditions into assertions.

--HG--
extra : rebase_source : a38b75a1a27f25cef7b9dd86a1cca15ce9f67893
2013-08-09 10:07:42 +12:00
Karl Tomlinson
06048fd447 b=865241 make HRTFDatabaseLoader ref-counting thread-safe r=ehsan
--HG--
extra : rebase_source : 8cab96807c111eb103dbe931d14a86a8b97a824e
2013-08-09 09:59:56 +12:00
Karl Tomlinson
f2dad7aedd b=815643 Add Blink's HRTFDatabase and HRTFDatabaseLoader to the build r=ehsan
--HG--
extra : rebase_source : e7aa0ce1ca436bbb429cb1f6051b3b8210bf767a
2013-08-09 09:56:28 +12:00
Karl Tomlinson
f0d4966e17 b=815643 Add Blink's HRTFElevation to the build r=ehsan
--HG--
extra : rebase_source : 5dda0b6c6302197574ac5fafbb0f06b1ac65980a
2013-08-08 21:38:30 +12:00
Karl Tomlinson
be0aa554a0 b=815643 Reduce convolver fft size for low sample rates r=ehsan
--HG--
extra : rebase_source : 0d7c6d4a3bcb340fc674f0b4181cf264fcc4e041
2013-08-08 21:38:30 +12:00
Karl Tomlinson
e54cf1e0c0 b=815643 Add code to interpret and resample impulse response data r=ehsan
--HG--
extra : rebase_source : 35497353634022f297b2ebf333b7230b12c1f9c2
2013-08-08 21:38:30 +12:00
Karl Tomlinson
d4a45b39b6 b=815643 Add HRTF impulse response data r=ehsan
The impulse response sample data is directly from individual impulse response wave files
in Blink SVN revision 153183.

--HG--
extra : rebase_source : 037471efd5be1f0d4a798bcc01192db9398377c2
2013-08-08 21:38:30 +12:00
Karl Tomlinson
583218c666 b=815643 Use symmetry to halve the number of HRTF kernels calculated and cached r=ehsan
--HG--
extra : rebase_source : 12e4a114630e793c22d3e335c38c641a6bc20ee2
2013-08-08 21:38:29 +12:00
Karl Tomlinson
3bfb5507c3 b=815643 Add Blink's HRTFKernel to the build r=ehsan
A functional difference is that HRTFKernel is not reference-counted.

--HG--
extra : rebase_source : 66a9653fed75265ec55d915b731876bcb793d513
2013-08-08 21:38:29 +12:00
Karl Tomlinson
a650122f64 b=865241 always leave 20 samples of headroom when extracting group delay, removing the discontinuity at delay = 20 r=ehsan
--HG--
extra : rebase_source : 30515ea2236b7503ff7e446d50930f91135bc7e0
2013-08-08 21:38:29 +12:00
Karl Tomlinson
d494799ed1 b=815643 Add Blink's frequency interpolation and group delay methods from FFTFrame to FFTBlock r=ehsan
--HG--
extra : rebase_source : 1e3393c85f1828cbcce49af1e3160fc3535d39b8
2013-08-08 21:38:24 +12:00
Karl Tomlinson
0e2cb4c001 b=865241 don't try to compute a phase for group delay from the DC and nyquist components of the DFT r=ehsan
Given imagP[0] is really realP[halfSize], it doesn't make sense to calculate a
phase from placing the DC and Nyquist components in different directions.
The DC component doesn't have a phase offset and lastPhase is already
initialized to zero.

This makes extractAverageGroupDelay() consistent with addConstantGroupDelay()
and to some extent interpolateFrequencyComponents().

The effect of the bug would have been small for reasonably sized FFTs.

--HG--
extra : rebase_source : b2931d625bd7e014f123b576f28aad7f719c585d
2013-08-08 21:37:36 +12:00
Karl Tomlinson
a7e95885f3 b=815643 remove unused HRTF code r=ehsan
--HG--
extra : rebase_source : f6063443b6e7574055b0ad92e95e32d7f0a850cd
2013-08-08 21:37:36 +12:00
Karl Tomlinson
d1fd66224a b=815643 Import the HRTF panner implementation from Blink r=ehsan
This code was copied from Blink SVN revision 153183.

--HG--
extra : rebase_source : 968f69846f5c532eda3580c8ce2176e2e6b5fc63
2013-08-08 21:37:36 +12:00
Chris Pearce
cd87b3fdae Bug 901944 - Ignore MF_E_TRANSFORM_TYPE_NOT_SET error when setting D3DManager on H264 Decoder. This error is returned on some (or all?) video cards on Vista, and appears to be safe to ignore. r=padenot 2013-08-13 14:42:39 +12:00
Ryan VanderMeulen
f1a7b637de Backed out changeset 635ef1e34417 (bug 899878) for B2G mochitest-3 timeouts. 2013-08-12 16:45:14 -04:00
Ryan VanderMeulen
f7b0f7438b Merge m-c to b2g-inbound. 2013-08-12 15:36:24 -04:00
Ralph Giles
9519eeb8a7 Bug 903012 - Fix static bounds checks. r=kinetik
In reviewing the static asserts in the code I found two
inconsistencies.

riffHeader includes 4 skipped bytes which weren't accounted
for in the bounds check.

Comparisons of a uint against UINT_MAX are very unlikely to
fail regardless, but this at least makes the two MAX_BLOCK_SIZE
checks the same.
2013-08-08 10:30:00 -04:00
Ralph Giles
467c635f04 Bug 903012 - Convert WaveReader to use static_assert. r=kinetik
We prefer the built-in check to the PR_STATIC_ASSERT macro now
that it's supported widely enough to use.

This is mostly adding error strings to report on assertion failure.
2013-08-08 10:30:00 -04:00
Chris Pearce
3fce82c0e2 Bug 901944 - Disable DXVA on Vista, to avoid rendering artifacts. r=kentuckyfriedtakahe 2013-08-12 17:17:38 +12:00
Chris Double
7dd97fc747 Bug 896866 - Media Source Extension demo app doesn't play all segments - r=kinetik
--HG--
extra : rebase_source : 13d66fb5c2d6c0c01929e404b6fb1b5d29073b54
2013-08-12 16:37:10 +12:00
Jason Smith
cd6894f4a5 Bug 899878 - Mochitest for recording media with no timeslice for Media Recording API. r=roc 2013-08-06 22:31:48 -07:00
Randy Lin
e3f3a015c2 Bug 903758 - Media Recording - setting the recorder state to inActive on the stop method. r=roc 2013-08-10 20:29:35 +08:00
Randy Lin
f1681d1942 Bug 902194 - Use mutex to replace the reentrant in EncodedBufferCache. r=roc 2013-08-09 13:46:20 +08:00
Randy Lin
0064bc2e7a Bug 897776 - Test case for MediaRecorder infinite recursion with requestData() calls in "dataavailable" event. r=jsmith 2013-08-11 11:35:16 +08:00
Randy Lin
9c7ebebbcd Bug 897776 - MediaRecorder infinite recursion with requestData() calls in dataavailable event. r=roc 2013-08-07 18:31:51 +08:00
Ryan VanderMeulen
2f3319fe1c No bug - Fix busted crashtest manifest. r=stupidme
DONTBUILD CLOSED TREE
2013-08-14 14:54:27 -04:00
Ryan VanderMeulen
e017fdac69 No bug - Disable timeout-prone B2G crashtests.
CLOSED TREE
2013-08-14 13:40:20 -04:00
Brian O'Keefe
3dadb0e396 Bug 896177 - Remove useless config.mk includes; r=gps 2013-07-17 16:06:53 -04:00
Paul Adenot
67460f4277 Bug 899135 - Drop buffers in ScriptProcessorNode instead of buffering them when the main thread is blocked. r=roc 2013-08-13 19:34:22 +02:00
Ryan VanderMeulen
a199b3df6e Merge m-c to inbound. 2013-08-09 19:29:45 -04:00
Ryan VanderMeulen
13be9bc4d0 Merge inbound to m-c. 2013-08-09 19:08:45 -04:00
Ryan VanderMeulen
c56b4e5a84 Merge b2g-inbound to m-c. 2013-08-09 17:26:14 -04:00
Ryan VanderMeulen
cce8ae15b0 Backed out changesets 6126987777f3 and a232e4df28e5 (bug 882171) due to Android build bustage. 2013-08-08 14:38:33 -04:00
Mark Hammond
f9c8c5e605 Bug 897811 - fix uses of browser.pagethumbnails.capturing_disabled to reflect the pref controls if it is *disabled* rather than enabled. r=gavin 2013-08-08 09:52:01 +10:00
Thomas Zimmermann
b2f6b083af Bug 831224: Added mochitest for variable-bitrate MP3s, r=padenot
The test checks the duration of an MP3 file with variable bitrate. The
MP3 file only contains silence. It uses a high bit-rate encoding for its
first half, a low bit-rate encoding for its second half. The correct
duration is 10 seconds, but an incorrect implementation will return a
much shorter value.
2013-08-07 18:54:04 +02:00
Ryan VanderMeulen
7b01d7a416 Backed out changeset ce3a1df4d559 (bug 875247) for mochitest-mc crashes. 2013-08-09 17:56:15 -04:00
Chris Pearce
1f88a47969 Bug 875247 - Use DXVA2 via D3D11 on Windows 8 to avoid readback of video frames when we turn on OMTC on Windows 8. r=Bas,padenot,gps 2013-08-10 08:17:44 +12:00
Carsten "Tomcat" Book
87a23c556a merge b2g-inbound to mozilla-central 2013-08-08 13:33:12 +02:00
Randy Lin
5c43912958 Bug 902151 - MediaRecorder does not need to tell the cycle collector about mReadThread. r=khuey 2013-08-07 13:55:53 +08:00
Randy Lin
5fe3d87b3f Bug 900708 - Media Recording - Remove the Assertion in EncodedBufferCache.h. r=roc 2013-08-05 16:49:10 +08:00
Shelly Lin
5b02846740 Bug 896980 - Add error handlings if fail to init track encoder or container writer. r=roc 2013-08-06 18:53:07 +08:00
Robert O'Callahan
af27e8ff70 Bug 856361. Part 10: Address review comments. 2013-08-07 15:42:43 +12:00
Boris Zbarsky
adc8e860c3 Back out revision ab9642207875 (bug 897811) for browser-chrome test failures. 2013-08-08 01:13:45 -04:00
Mark Hammond
71bca9e80b Bug 897811 - fix uses of browser.pagethumbnails.capturing_disabled to reflect the pref controls if it is *disabled* rather than enabled. r=gavin 2013-08-08 09:52:01 +10:00
David Zbarsky
9a8d7f077c Bug 901060: Fix build bustage on Windows, r=bz over irc 2013-08-07 17:40:21 -04:00
Robert O'Callahan
830448dff4 Bug 902197. Don't allow multiple MediaStreams to share the same DOMMediaStream wrapper. r=ehsan
--HG--
extra : rebase_source : 60de0aaff391bcabae6c281036e4ab82589e2707
2013-08-07 10:14:35 +12:00
Robert O'Callahan
fed29a23ab Bug 856361. Part 9: Make SpeechStreamListener handle null AudioChunks. r=smaug
--HG--
extra : rebase_source : fdf0bde1220b950c168cae94367c8682184054f0
2013-08-01 16:02:49 +12:00
Robert O'Callahan
537a0a5351 Bug 856361. Part 8: Fix copying of track data from input streams to output streams in AudioNodeExternalInputStream. r=padenot
--HG--
extra : rebase_source : 344780d9c27ce3026ae5c12a08ea6a1ba3b4e924
2013-08-01 16:02:49 +12:00
Robert O'Callahan
a229234f06 Bug 899863. Ensure resources with a Content-Length (that's not the result of a range request) are treated as bounded. r=cpearce
--HG--
extra : rebase_source : b3741deef952bf31b651c418efa5f168f9881469
2013-08-01 16:02:40 +12:00
Ehsan Akhgari
d6eeb2dccd Bug 855568 - Implement MediaElementAudioSourceNode
X-Git-Commit-ID: 52f1fcdd561e8214e6820a3f2478d9e8b9623430

--HG--
extra : rebase_source : c40cd0c7070dec9e0273093499228f13906f8fc5
2013-07-25 15:01:49 +12:00
Robert O'Callahan
306005fb0f Bug 856361. Part 6: Make MediaStreamAudioSourceNode keep its DOMMediaStream alive, and make the DOMMediaStream keep the MediaStreamAudioSourceNode alive. r=ehsan
--HG--
extra : rebase_source : 0e3b5108d8ced8b1f1f427c9fd4f87e97c46921d
2013-07-25 14:07:34 +12:00
secretrobotron
2c86644947 Bug 856361. Part 5: Implement MediaStreamAudioSourceNode. r=ehsan
--HG--
extra : rebase_source : 265f31edda31a2f749eacc568919304622446748
2013-07-24 23:29:39 +12:00
Robert O'Callahan
9dcc71b28c Bug 856361. Part 7: Fix copying of track data from input streams to output streams in TrackUnionStream. r=padenot
--HG--
extra : rebase_source : 7138200b4f1060de00b2410f58c645c353580a6f
2013-08-01 16:02:49 +12:00
Robert O'Callahan
ea28a74f6c Bug 856361. Part 4: Create AudioNodeExternalInputStream. r=ehsan
--HG--
extra : rebase_source : 1061dea560eb1c242a4d11aae0d7d89da191d8fe
2013-07-24 22:15:11 +12:00
Robert O'Callahan
b6ff20d959 Bug 856361. Part 3: Refactor AudioNodeStream to create ComputeFinalOuputChannelCount, AccumulateInputChunk and AdvanceOutputSegment, and make AudioNodeStreams be treated as always consumed by the MediaStreamGraph. r=ehsan
--HG--
extra : rebase_source : ef176c629f16a00042d2a281bfffbe75c31d6002
2013-07-24 22:11:35 +12:00
Robert O'Callahan
383c6492bc Bug 856361. Part 2: Block data from a non-same-origin media resource entering a MediaStream from a media element. r=cpearce
--HG--
extra : rebase_source : db895d3d2d91a92d0c8c381940a0e0ccc9d9a8d0
2013-07-24 21:55:23 +12:00
Robert O'Callahan
d458f68756 Bug 856361. Part 1: Fix comments for MediaInputPort flags to reflect reality. r=jesup
--HG--
extra : rebase_source : 8828d63f75b41500f9c7af5a4d6cf97740fe7215
2013-07-17 15:16:09 +12:00
Mark Hammond
f45a45d737 Bug 897811 - remove browser.pageThumbs.enabled preference. r=gavin 2013-08-07 11:10:58 +10:00
JW Wang
ce885c443c Bug 875277 - Part 2: Implement WaveShaperNode.oversample - speex. r=ehsan 2013-08-06 14:11:32 +08:00
JW Wang
6d8256114d Bug 875277 - Part 1: Implement WaveShaperNode.oversample - webidl enums. r=ehsan 2013-08-06 14:15:07 +08:00
Ryan VanderMeulen
19f45ff72d Backed out changesets aee6b1a6c400 and a633e4d67d31 (bug 875277) for bustage. 2013-08-05 20:47:07 -04:00
JW Wang
ec7bb8499e Bug 875277 - Part 2: Implement WaveShaperNode.oversample - speex. r=ehsan 2013-08-05 10:34:52 +08:00
JW Wang
5d37ced844 Bug 875277 - Part 1: Implement WaveShaperNode.oversample - webidl enums. r=ehsan 2013-07-26 15:14:35 +08:00
Ryan VanderMeulen
03f1e9ee4f Merge m-c to inbound. 2013-08-05 20:00:43 -04:00
Shelly Lin
cacd35ced5 Bug 900811 - Fix the hang if closing its tab during recording a fake gUM. r=roc 2013-08-02 14:59:30 +08:00
Boris Zbarsky
82ba945cef Bug 900898 part 2. Move to using Nullable<TypedArray> to represent possibly-null TypedArray structs. r=smaug 2013-08-05 13:40:01 -04:00
Randell Jesup
102bdb9382 Bug 825112: Enable opensles webrtc backend on gonk r=mwu,jesup,ted
--HG--
rename : media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_opensles_android.cc => media/webrtc/trunk/webrtc/modules/audio_device/audio_device_opensles.cc
rename : media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_opensles_android.h => media/webrtc/trunk/webrtc/modules/audio_device/audio_device_opensles.h
2013-07-17 20:00:43 -04:00
Ehsan Akhgari
fa95f63946 Bug 900341 - Shut down the decoder object for an AudioContext from a runnable; r=bent,roc 2013-08-02 12:07:17 -04:00
Thomas Zimmermann
107e31f04d Bug 831224: Use multi-threaded I/O for reading and processing MP3 frames, r=padenot
Reading large MP3 files from a slow medium, such as an SD card, takes
several seconds. This is too long for interactive applications like the
music app.

With this patch, the OmxDecoder reads large MP3 file in smaller chunks
and hands over each chunk individually to the MP3 parser. Reading the
file is done in the I/O thread, which is allowed to block, parsing is
done on the main thread.

The current chunk size is 8 MiB, which is small enough to not cause any
delay.
2013-05-06 20:07:29 +02:00
Robert O'Callahan
2ac93d314a Bug 878015. Make RoundUpToAudioBlock always advance to the next audio block. r=padenot
--HG--
extra : rebase_source : d931a0f144579bd7f7f57bd9e2c7d4ecc1700b27
2013-08-02 21:27:58 +12:00
Mike Hommey
ca80cd82ad Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Martijn Wargers
7f63b0ec1a Bug 898696 - Fix some content/media test files by adding preload=metadata to media element. r=cpearce 2013-07-31 09:35:44 +02:00
Shelly Lin
f9bc5baa95 Bug 895730 - AudioTrackEncoder should handle the case where audio chunk is null. r=roc 2013-07-31 12:21:29 +08:00
Shelly Lin
2e2b0af1b7 Bug 894341 - Stop encoding data when the eos flag has written to ContainerWriter. r=roc 2013-07-29 14:29:08 +08:00
Ehsan Akhgari
085494b95d Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
3717325909 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Paul Adenot
2c94d0b2f4 Bug 895720 - Actually use the fuzz value. 2013-07-30 11:10:33 +01:00
Paul Adenot
a33021b0b3 Bug 895720 - On MacOS, increase the fuzz factor for test_audioBufferSourceNodeOffset.html. 2013-07-30 11:06:33 +01:00
Nicolas Silva
2b6a0c31a2 Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc 2013-07-30 11:59:51 +02:00
Ed Morley
9243c1b657 Backed out changeset 0ad406a69f2c (bug 856361) for mochitest-1 failures in test_mediaElementAudioSourceNode.html on a CLOSED TREE 2013-07-29 09:56:06 +01:00
Ed Morley
0903e2af97 Backed out changeset 3f2c0edda4c2 (bug 856361) 2013-07-29 09:55:15 +01:00
Ed Morley
c9d0e6b7f2 Backed out changeset f211d6754796 (bug 856361) 2013-07-29 09:55:12 +01:00
Ed Morley
29f1f1c74b Backed out changeset 2af84c01ac0c (bug 856361) 2013-07-29 09:55:09 +01:00
Ed Morley
910ec19dd4 Backed out changeset 9e90a81b9e37 (bug 856361) 2013-07-29 09:55:06 +01:00
Ed Morley
d3f9d8e0ba Backed out changeset 3d6f6f06da5e (bug 856361) 2013-07-29 09:55:03 +01:00
Ed Morley
578087bb22 Backed out changeset 911a11878522 (bug 855568) 2013-07-29 09:55:01 +01:00
Ed Morley
9dce8cb0fe Backed out changeset 3fbe86d67b6a (bug 856361) 2013-07-29 09:54:58 +01:00
Ed Morley
e23310cad6 Backed out changeset f7496fddb076 (bug 856361) 2013-07-29 09:54:52 +01:00
Robert O'Callahan
24bd270877 Bug 856361. Fix test bustage. r=me
--HG--
extra : rebase_source : fe7a3854f521518f80c3ae8d70bae13eadfca3b7
2013-07-29 16:56:36 +12:00
Robert O'Callahan
89f722607a Bug 856361. Part 7: Address review comment. r=ehsan 2013-07-29 15:09:48 +12:00
Ehsan Akhgari
570b52a11a Bug 855568 - Implement MediaElementAudioSourceNode. r=roc
--HG--
extra : rebase_source : f6b44a0400aeaa6a2075d16a3196f3db13d0afb5
2013-07-25 15:01:49 +12:00
Robert O'Callahan
8b83880fa4 Bug 856361. Part 6: Make MediaStreamAudioSourceNode keep its DOMMediaStream alive, and make the DOMMediaStream keep the MediaStreamAudioSourceNode alive. r=ehsan
--HG--
extra : rebase_source : b7172f79fbf0cacaaf10f812444444ba17ad00e9
2013-07-25 14:07:34 +12:00
secretrobotron
8f02d85140 Bug 856361. Part 5: Implement MediaStreamAudioSourceNode. r=ehsan
--HG--
extra : rebase_source : ee1a8c2dc39574aeb6165a063553489f08d19380
2013-07-24 23:29:39 +12:00
Robert O'Callahan
36cf03dce0 Bug 856361. Part 4: Create AudioNodeExternalInputStream. r=ehsan
--HG--
extra : rebase_source : 6e172f800942b0f9f1aff047a142764da2dd57a3
2013-07-24 22:15:11 +12:00
Robert O'Callahan
126382b197 Bug 856361. Part 3: Refactor AudioNodeStream to create ComputeFinalOuputChannelCount, AccumulateInputChunk and AdvanceOutputSegment, and make AudioNodeStreams be treated as always consumed by the MediaStreamGraph. r=ehsan
--HG--
extra : rebase_source : 3c1fe8769dc616d0ea70f00e41d6952346ead491
2013-07-24 22:11:35 +12:00
Robert O'Callahan
0bcfa0b5cc Bug 856361. Part 2: Block data from a non-same-origin media resource entering a MediaStream from a media element. r=cpearce
--HG--
extra : rebase_source : fd0ac711b6be627b87634b5a6c518c82ffd46448
2013-07-24 21:55:23 +12:00
Robert O'Callahan
0c0de93e83 Bug 856361. Part 1: Fix documentation of MediaInputPort flags. r=jesup
--HG--
extra : rebase_source : 509fc344912aa6da728ad8dd10398ae501921ebb
2013-07-17 15:16:09 +12:00
Chris Pearce
50e8d08a10 Bug 846769 - OggReader::SeekBisection() should use granule end times, not start times. r=rillian 2013-07-29 10:03:21 +12:00
Chris Pearce
89003737e2 Bug 846769 - Mark Ogg frames with MediaResource offset, instead of (incorrectly) trying to infer and then use the offset of pages. r=rillian 2013-07-29 10:03:06 +12:00
Ryan VanderMeulen
95c899b5cd Bug 894941 - Increase fuzz tolerance for the small-shot.ogg mediaDecoding test to resolve a CLOSED TREE. 2013-07-26 15:17:34 -04:00
Ryan VanderMeulen
ba5199d8de Merge m-c to inbound. 2013-07-26 14:20:01 -04:00
Ryan VanderMeulen
c1de6c1439 Backed out changesets f2862e93b710, 4fe81f58dbef, and f8f855f0b7dc (bug 896353) for mochitest-1 asserts. 2013-07-26 14:08:29 -04:00
Martijn Wargers
a14788acd3 Bug 896582 - Implement a workaround to bug 838726 to get a bunch of content/media mochitests running on B2G. r=jgriffin 2013-07-25 22:32:17 +02:00
Randy Lin
a4a5e87045 Bug 896353 - Media Recording - Test case for record the MediaStream from audioContext. r=jsmith 2013-07-26 10:47:56 +08:00
Randy Lin
2de1bb6588 Bug 896353 - Media Recording - Can't record the mediaStream created by AudioContext. r=roc 2013-07-26 20:29:41 +08:00
JW Wang
80ae7609e9 Bug 896353 - Set principal for mDOMStream in MediaStreamAudioDestinationNode. r=roc. 2013-07-23 11:54:32 +08:00