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

2457 Коммитов

Автор SHA1 Сообщение Дата
Ralph Giles 87fbf8e48c Bug 1154045 - Don't leak temporary GStreamer caps. r=kinetik 2015-04-13 14:08:00 -07:00
Chris Pearce ext:(%2C%20Matt%20Woodrow%20%3Cmwoodrow%40mozilla.com%3E) 3916a66ac9 Bug 875247 - Add support for DXVA2 via D3D11. r=cpearce,gps,padenot 2015-03-31 18:21:15 +13:00
Naoki Hirata a1cb354136 Backed out changeset 861b69f6f3b2 (bug 1146729) due to bug 1153831 2015-04-13 12:48:31 -07:00
Bobby Holley 177765d6a7 Bug 1153370 - Do MediaPromise TailDispatch checking outside the scope of the MediaPromise lock. r=jww
This reduces the potential for deadlocks.
2015-04-13 11:13:08 -07:00
Bobby Holley 3d89d1e8b9 Bug 1153370 - Rescope monitor. r=jww
We can do this now that we're not manually nulling out mRunningThread anymore.
2015-04-13 11:13:08 -07:00
Bobby Holley b6e5b6793e Bug 1153370 - Make mRunningThread atomic and manage it in AutoTaskGuard. r=jww 2015-04-13 11:13:07 -07:00
Bobby Holley 4fb3e448a1 Bug 1153370 - Remove AbstractThread::Create. r=jww 2015-04-13 11:13:07 -07:00
JW Wang 9c67641aac Bug 1152645 - Enable EME mochitests on B2G. r=cpearce. 2015-04-13 14:35:41 +08:00
Chris Pearce e61fe5c00d Bug 1143278 - Make gmp-clearkey not require a Win8 only DLL to decode audio on Win7. r=edwin 2015-04-13 13:39:46 +12:00
Edwin Flores 22ff3a6f11 Bug 1148071 - Fix CDM update behaviour - r=cpearce 2015-04-04 17:03:16 +13:00
Jean-Yves Avenard c54d0287f1 Bug 1153110: Don't prefer VDA for 720p and above. r=rillian
Partially reverts the prior c6e173b28eca change.
2015-04-12 19:16:33 +10:00
Jean-Yves Avenard 6d85e0a7a5 Backout changest ee75ba3d3937 for using wrong comment 2015-04-12 19:14:44 +10:00
Jean-Yves Avenard 1ef165a869 Bug 1137529: Partial evert of commit c6e173b28eca. r=rillian 2015-04-12 18:22:07 +10:00
Chris Peterson ed34cc4ff2 Bug 1153378 - Move local variable `in` behind #ifndef MOZILLA_XPCOMRT_API. r=jesup 2015-04-10 11:54:24 -07:00
Alfredo Yang db11a06df3 Bug 1132832 - Remove media resource API from PlatformDecoderModule. r=jya 2015-04-10 02:16:00 -04:00
Sotaro Ikeda 7ba730e8d8 Bug 1153050 - Add ICameraControl check to MediaEngineGonkVideoSource::Start() r=jesup 2015-04-10 07:39:36 -07:00
Blake Wu 079a5da49b Bug 1152218 - Have a larger tolerance to decide if video data is low or not. r=cpearce.
--HG--
extra : rebase_source : 4fedd13388c3a180df012ddd4ee46a0bf6a5de1e
2015-04-08 17:57:18 +08:00
Blake Wu 3abc5e1763 Bug 1146729 - [FFOS] Enable MP4Reader for MSE and local playback. r=cpearce.
--HG--
extra : rebase_source : 266be05dba0167a0740fb2ae71e363c65d051f74
2015-04-09 14:02:41 +08:00
Ryan VanderMeulen b263712851 Backed out 4 changesets (bug 1152151, bug 1152153, bug 1151693) for test_eme_persistent_sessions.html timeouts on multiple platforms.
Backed out changeset 395ef92d464f (bug 1152153)
Backed out changeset 5b2e38cdb64d (bug 1152151)
Backed out changeset 3a63c4087b9f (bug 1151693)
Backed out changeset 88b5d5b06e02 (bug 1151693)

CLOSED TREE
2015-04-10 00:21:43 -04:00
Ryan VanderMeulen ea5c01418c Merge m-c to inbound. a=merge
CLOSED TREE
2015-04-09 23:00:24 -04:00
Ryan VanderMeulen 23b2440390 Merge inbound to m-c. a=merge 2015-04-09 22:43:57 -04:00
Gerald Squelart aa40e32957 Bug 1152153 - [EME] test_eme_persistent_sessions does not handle multi-stream cases - r=edwin 2015-04-09 14:38:25 +10:00
Gerald Squelart b1da31cf89 Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin 2015-04-09 14:38:20 +10:00
Gerald Squelart 080b56ee3c Bug 1151693 - [EME] Tests to verify loaded data, p2: Add timers for fetch and appendBuffer - r=edwin 2015-04-09 14:38:15 +10:00
Gerald Squelart f5265ee0c1 Bug 1151693 - [EME] Tests to verify loaded data, p1: Check size and checksum of received fragments - r=edwin 2015-04-09 14:38:10 +10:00
Jonathan Hao 6f5a8818ad Bug 1149616 - Fix the calculation of slots count in Read/WriteBuffer. r=bechen 2015-04-08 16:57:39 +08:00
Jan-Ivar Bruaroey be0e2218cc Bug 1152443 - Fix broken validation which prevented reading of enumerate_devices.txt. r=jesup 2015-04-08 15:24:41 -04:00
Randall Barker abe07cabea Bug 1101651 - Part 1: xpcomrt version of dom media library need for standalone webrtcs. r=jesup
Enable WebRTC unit tests to be built using standalone WebRTC library Includes VideoSegment and SimpleImageBuffer.

--HG--
extra : rebase_source : 8eeea15e41fd298baef1ef1a2bc3f60182962861
2015-04-09 09:15:00 -04:00
Juan Gomez 74d291470d Bug 1087161 - Upgrading B2G toolchain to gcc-4.9
* Fixed some -Werror=format issues by making function-style castings

--HG--
extra : rebase_source : e9677c42819a8e95008bb3e97b97b47eff915021
2015-04-09 18:13:39 +02:00
Carsten "Tomcat" Book 31c4421faf Backed out changeset 7fc52c48e6e3 (bug 1094764) for mulet m-3 perma failure in /test_dataChannel_basicAudioVideo.html 2015-04-09 13:44:27 +02:00
Jean-Yves Avenard aa270b640c Bug 1152652: Part1. Use mStandardMozillaStyle for crypto classes. r=edwin 2015-04-09 21:14:56 +10:00
Jean-Yves Avenard 8a19b6772a Bug 1150853: Part3. Do not modify provided extradata array. r=edwin
The extradata provided may be modified elsewhere, prevent potential conflict.
2015-04-09 21:14:56 +10:00
Jean-Yves Avenard e6858f0af5 Bug 1150853: Part2. Use new MediaRawObject across the board. r=cpearce. 2015-04-09 21:14:55 +10:00
Jean-Yves Avenard a441d92aa3 Bug 1150853: Part1. Create MediaRawData object type. r=cpearce
This object extends MediaData and will be used to contain demuxed compressed
data.
2015-04-09 21:14:55 +10:00
Boris Egorov 7947703867 Bug 1152359 - Fix doppler shift calculation formula. r=padenot 2015-04-08 21:18:54 +06:00
Paul Adenot 70b6a9e143 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Alfredo Yang 747b227596 Bug 1152236: OMX codec should use AnnexB as input format. r=jya 2015-04-09 01:18:00 +10:00
Bobby Holley 72ad334118 Bug 1151656 - Use TailDispatch for the MDSM's task queue. r=mattwoodrow 2015-04-08 21:33:21 -07:00
Bobby Holley 018e5fc24d Bug 1151656 - Make MediaPromises operate with TaskDispatchers. r=mattwoodrow 2015-04-08 21:33:21 -07:00
Bobby Holley 07fc0fdd03 Bug 1151656 - Implement the ability to assert tail dispatch. r=mattwoodrow
In order to make sure that the MDSM properly dispatches everything via tail
dispatch, we want verification that is more robust than simple inspection.
2015-04-08 21:33:20 -07:00
Bobby Holley 0cf99d6b30 Bug 1151656 - Implement a post-run TaskDispatcher for MediaTaskQueue. r=mattwoodrow 2015-04-08 21:33:20 -07:00
Bobby Holley a413743712 Bug 1151656 - Implement TaskDispatcher.h. r=mattwoodrow 2015-04-08 21:33:19 -07:00
Bobby Holley 9839891059 Bug 1151656 - Implement the ability to get the currently running task queue. r=mattwoodrow
I think this will generally be useful for asserting things. If we're concerned
about the TLS overhead we could make it debug-only, but my sense is that it's
negligible.
2015-04-08 21:33:19 -07:00
Bobby Holley 1571be1aab Bug 1151656 - Do static initialization explicitly. r=mattwoodrow 2015-04-08 21:33:18 -07:00
Bobby Holley c71babaf43 Bug 1151656 - Stop doing sync dispatch of PlaybackEnded. r=mattwoodrow 2015-04-08 21:33:18 -07:00
Bobby Holley 1748d9ab1f Bug 1151656 - Add some more assertions. r=mattwoodrow 2015-04-08 21:33:17 -07:00
Andreas Pehrson 0efa763940 Bug 1149494 - Part 2. Add mochitest. r=jesup
--HG--
extra : rebase_source : 95a1de85dfe6c3036a16f9cdd09df43e70fa0888
2015-04-08 17:59:30 +12:00
Robert O'Callahan 1524dbeb74 Bug 1149494 - Part 1. Add a listener directly to the unblocked input stream that reports the size of the first non-empty frame seen. r=pehrsons
--HG--
extra : rebase_source : 79b92a9726670125cd028355e298e43a200785ab
2015-04-08 17:51:21 +12:00
Jan-Ivar Bruaroey bfc47b27ab Bug 1150539 - fix getUserMedia constraint default to aPrefs.mFPS, not aPrefs.mMinFPS. r=jesup 2015-04-08 12:07:37 -04:00
Jan-Ivar Bruaroey 93369565ff Bug 1150539: log getUserMedia constraints used in MediaManager:5. r=jesup 2015-04-08 12:06:39 -04:00