Commit Graph

3498 Commits

Author SHA1 Message Date
Benoit Jacob
15ef84b8b5 Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00
Benoit Jacob
981c6431d3 Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Robert O'Callahan
2a08c179aa Bug 952893. Part 3: Tighten TimeVarying invariants so that GetAt always returns an end time when the value actually changes. r=padenot 2014-01-16 00:13:08 +13:00
Robert O'Callahan
d747d15e12 Bug 952893. Part 2: When all streams in the MSG are blocked, allow the MSG to suspend indefinitely and pause AudioStream outputs while suspended. r=padenot 2014-01-16 00:13:07 +13:00
Robert O'Callahan
1ac533d470 Bug 952893. Part 1: Block the AudioDestinationNode when it's the only node in the AudioContext. r=padenot 2014-01-16 00:08:20 +13:00
Paul Adenot
76d630d993 Bug 952893 - Backout changesets 780cba0f9f59, 887fe3a09c3d and fb04a4252ea3 for bad commit message, DONTBUILD. 2014-01-29 17:36:56 +01:00
Robert O'Callahan
91a95d4419 Bug 952893. Part 3: Tighten TimeVarying invariants so that GetAt always returns an end time when the value actually changes. r=padenot
* * *
Bug 952893 - Fix the rebase.
2014-01-16 00:13:08 +13:00
Robert O'Callahan
270ee7e65f Bug 952389. Part 2: When all streams in the MSG are blocked, allow the MSG to suspend indefinitely and pause AudioStream outputs while suspended. r=padenot 2014-01-16 00:13:07 +13:00
Robert O'Callahan
c16d623fd5 Bug 952389. Part 1: Block the AudioDestinationNode when it's the only node in the AudioContext. r=padenot 2014-01-16 00:08:20 +13:00
Karl Tomlinson
c6ca28de6e b=964376 correctly handle a non-null ProduceAudioBlock aOutput parameter r=padenot
--HG--
extra : transplant_source : 6%BA%8FNSz%8C%BCrgZ%8B%96T-%8F%F6_%0B%01
2014-01-29 23:47:58 +13:00
Karl Tomlinson
743f9efec2 b=964376 don't SetNull() mLastChunks in debug builds r=roc
Some code was depending on this for correct operation, but then failed in
non-debug builds.

Instead, distort only mDuration to check that ProduceAudioBlock sets chunks.

--HG--
extra : transplant_source : %05%F7%F3C%09%2B%1D%13%1D%2B%0CsuA%9Dr%84%17%FC%8B
2014-01-29 12:55:10 +13:00
Karl Tomlinson
43c660c3e2 b=933304 Remove unnecessary channel count parameter from AudioBlockInPlaceScale r=padenot
--HG--
extra : transplant_source : s%04%B1%11%E9%F9%E2%92l%182%FFZm%81%E4/M%B3%BD
2014-01-28 18:14:25 +13:00
Karl Tomlinson
2045be44b0 b=933304 use AudioChunk::mVolume to optimize distance and cone gain r=padenot
--HG--
extra : transplant_source : %B6%97%20%08%AD%1E%D5N%A8q%5DMZ%5C%DB%10%89%F9%00%29
2014-01-28 18:14:25 +13:00
Karl Tomlinson
dfcaf16629 b=933304 apply PannerNode input gain to both channels, even for stereo input r=padenot
--HG--
extra : transplant_source : %BE%A54%E4%8Ezy%AC%FC%BD2%7D%A0h%BB%E0%25%60%94%CA
2014-01-28 18:14:25 +13:00
Karl Tomlinson
2a7e31175b test for bug 933304
--HG--
extra : transplant_source : %B6%EB%D6%89%CCpe%8A%3Cq%EE%F8%F8j%AC%EE%98%08h%08
2014-01-28 18:14:24 +13:00
Karl Tomlinson
73f610301f b=957359 change failing output + finished assertion to warning r=padenot
--HG--
extra : transplant_source : %9A%B8%EE7h7PV%A9%E3P%B9%29%C1%FFz%40%DBPH
2014-01-28 18:14:24 +13:00
Karl Tomlinson
8d04d9052f b=957468 remove unused mNonRealtimeIsRunning r=ehsan
--HG--
extra : transplant_source : %F1%A1%5DT%21%AE%B0%AAh%1F%BB%06X%80F%9C%BBe%15U
2014-01-28 18:14:22 +13:00
Ryan VanderMeulen
b43ef033c1 Merge b2g-inbound to m-c. 2014-01-19 15:40:48 -05:00
Ryan VanderMeulen
8eeeeece37 Backed out changeset 1395d2a59698 (bug 879668) for landing without review. 2014-01-18 23:00:52 -05:00
John Lin
28a230737b Bug 879668 - Part 5: Add OmxAudioTrackEncoder to file OmxTrackEncoder. r=roc 2014-01-17 14:30:13 -05:00
Shelly Lin
9a0dd6c5c9 Bug 879668 - Part 4: Add OmxVideoTrackEncoder to file OmxTrackEncoder. r=roc 2014-01-17 14:30:02 -05:00
John Lin
7519996813 Bug 879668 - Part 3: Add OMXCodecWrapper. r=roc 2014-01-17 14:29:41 -05:00
John Lin
4b7023299e Bug 879668 - Part 2: Add utility function to convert codec data from OMX AVC/H.264 encoder for MP4 container writer. r=roc 2014-01-17 14:29:20 -05:00
Shelly Lin
ab2daf3a31 Bug 879668 - Part 1: Make CreateMutedFrame static. r=roc 2013-12-03 17:50:48 +08:00
Rick Eyre
acf78892f7 Bug 957847 - Fix VTTCue crash at TextTrackCue::AddCue. r=rillian 2014-01-15 11:30:58 -05:00
Tom Schuster
5e3191afd2 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00
Rick Eyre
1fe94a73b3 Bug 882299 - Implement VTTCue::Line r=smaug,rillian,bz 2014-01-15 08:04:00 -08:00
Josh Aas
2fe3f2202b Remove dead code, stuff that used to override IPDL methods that don't exist any more. No bug. r=jduell,eitan 2014-01-17 13:58:05 -06:00
Josh Aas
cbf4bb1d5b Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 1. r=bent 2014-01-17 11:46:41 -06:00
Ali Akhtarzada
09cc9a436c Bug 959123 - Implement CairoImage::GetAsSourceSurface. r=nical
Deprecate CairoImage::Data::mSurface and add an mSourceSurface.
Also change all the callers of CairoImage::SetData to set the
SourceSurface as well.

Also change scope of CairoImage::mSource to private
2014-01-17 11:22:09 -05:00
JW Wang
5f2bd531d3 Bug 960243 - Try to fetch m frames such that there will be n frames after resampling which will fit into an Opus packet duration perfectly. r=rillian 2014-02-07 11:18:36 +08:00
Ed Morley
99155ba26d Merge mozilla-central and b2g-inbound
--HG--
rename : content/events/src/nsDOMEvent.h => dom/events/nsDOMEvent.h
2014-01-15 18:09:12 +00:00
Randy Lin
08cfaa6d12 Bug 959501 - [Media Encoder] Add preferences for video encoder. r=roc 2014-01-14 15:26:04 +08:00
Chris Pearce
778de3dc48 Bug 959440 - Apply MP4Reader cleanups to WMFDecoderModule. r=padenot
Update WMFDecoderModule and friends to reflect changes to PlatformDecoderModule
interface in previous patch.
2014-01-15 16:14:15 +13:00
Chris Pearce
f6c08a2043 Bug 959440 - Various cleanups in MP4Reader. r=kinetik
Change PlatformDecoderModule::Create*Decoder() to take an
mp4_demuxer::{Audio,Video}DecoderConfig parameter, instead of enumerating all
parameters. This means the platform decoders can have more data if need be,
like the AACAudioConfig.

Change MediaDataDecoder::Input() to take an nsAutoPtr<MP4Sample>&. The sample
will be deleted by the caller (MP4Reader) if Input() returns DECODE_STATUS_OK,
but if the MediaDataDecoder wants to assume responsibility of the
lifecycle of the sample (say to enqueue it), it can forget() on the
nsAutoPtr& passed in and assume responsibility.

Call PlatformDecoderModule::Create() on the decode thread. This is a step
towards making these classes decode-thread only.

Add PlatformDecoderModule::Init(), which caches the pref's we need, since
PlatformDecoderModule::Create() is no longer called on the main thread, we can
no longer access them in there.

Add Init() method to MediaDataDecoder interface. This is so that we can call
MediaDataDecoder::Shutdown() to unblock the initialization of a decoder, if
that init needs to block.

Pass LayersBackend type to WMFVideoDecoder, so it knows whether to init DXVA.
2014-01-15 16:13:54 +13:00
Wes Kocher
4feb8dd8e3 Merge b2g-inbound to m-c 2014-01-14 15:44:06 -08:00
Ryan VanderMeulen
18cde65ac6 Bug 865407 - Follow-up to fix other places expecting the old IID.
CLOSED TREE
2014-01-14 14:03:59 -05:00
Ryan VanderMeulen
9298dcfd06 Bug 865407 - Bump nsIWebVTTParserWrapper IID. CLOSED TREE 2014-01-14 13:52:48 -05:00
Ed Morley
f605c333d3 Bug 760770 - Disable test_timeupdate_small_files.html on Linux for intermittent failures 2014-01-14 16:38:25 +00:00
Alfredo Yang
471c9e9aa9 Bug 957939 - Move Audio_Track/Video_Track out of ISOTrackMetadata. r=cpearce 2014-01-14 09:59:40 -05:00
Paul Adenot
49abe4d300 Bug 955911 - r=roc 2014-01-13 17:38:30 +01:00
Edwin Flores
c637986ec6 Bug 945864 - Remove buggy MediaOmxReader::GetBuffered method override r=cpearce 2014-01-14 12:38:40 +13:00
Ryan VanderMeulen
5b8b6a8f8d Merge inbound to m-c. 2014-01-13 17:44:24 -05:00
Rick Eyre
07cdd82baa Bug 865407 - Part 7: Update vtt.js to latest version. r=rillan
We now call WebVTTParser.processCues() on the vtt.jsm module in order to get the computed divs of the cues.
2013-12-17 10:36:26 -05:00
Rick Eyre
4e420f1c25 Bug 865407 - Part 6: Expose VTTCue::Reset to Chrome JS. r=bz 2013-12-12 13:13:38 -05:00
Rick Eyre
78e1d23095 Bug 865407 - Part 5: Move update display of cues code to TextTrackManager. r=bz, r=rillian 2013-12-12 12:02:17 -05:00
Rick Eyre
4739efe22b Bug 865407 - Part 4: Expose TextTrackCue::DisplayState to chrome JS. r=rillian, r=bz 2013-12-12 11:27:30 -05:00
Rick Eyre
bc2db591c5 Bug 865407 - Part 3: Add TextTrackList::GetAllActiveCues(). r=rillian 2013-12-12 10:57:21 -05:00
Alfredo Yang
0d8cda28c7 Bug 959022 - Add data-offset-present in traf box. r=cpearce 2014-01-13 08:28:26 -05:00
Wes Kocher
d8f87242ae Backed out 2 changesets (bug 959440) on an unrelated CLOSED TREE
Backed out changeset f4fd03805620 (bug 959440)
Backed out changeset bfee2bc18e55 (bug 959440)
2014-01-14 17:37:57 -08:00
Ryan VanderMeulen
d65ecca981 Backed out 5 changesets (bug 865407) for Windows crashes.
Backed out changeset d3e7f6392670 (bug 865407)
Backed out changeset 7ba94f08b7a5 (bug 865407)
Backed out changeset 3de6e32a4346 (bug 865407)
Backed out changeset 5c0572c6727b (bug 865407)
Backed out changeset 5db43cac79f5 (bug 865407)
2014-01-10 11:50:49 -05:00
Rick Eyre
e58109c645 Bug 865407 - Part 7: Update vtt.js to latest version. r=rillan
We now call WebVTTParser.processCues() on the vtt.jsm module in order to get the computed divs of the cues.
2013-12-17 10:36:26 -05:00
Rick Eyre
d6dc5e74a0 Bug 865407 - Part 6: Expose VTTCue::Reset to Chrome JS. r=bz 2013-12-12 13:13:38 -05:00
Rick Eyre
7b7b323893 Bug 865407 - Part 5: Move update display of cues code to TextTrackManager. r=bz, r=rillian 2013-12-12 12:02:17 -05:00
Rick Eyre
57a293b49e Bug 865407 - Part 4: Expose TextTrackCue::DisplayState to chrome JS. r=rillian, r=bz 2013-12-12 11:27:30 -05:00
Rick Eyre
cabf0b003d Bug 865407 - Part 3: Add TextTrackList::GetAllActiveCues(). r=rillian 2013-12-12 10:57:21 -05:00
Chris Pearce
2e6efb39f8 Bug 959440 - Apply MP4Reader cleanups to WMFDecoderModule. r=padenot
Update WMFDecoderModule and friends to reflect changes to PlatformDecoderModule
interface in previous patch.
2014-01-15 13:31:12 +13:00
Chris Pearce
1ade2536ed Bug 959440 - Various cleanups in MP4Reader. r=kinetik
Change PlatformDecoderModule::Create*Decoder() to take an
mp4_demuxer::{Audio,Video}DecoderConfig parameter, instead of enumerating all
parameters. This means the platform decoders can have more data if need be,
like the AACAudioConfig.

Change MediaDataDecoder::Input() to take an nsAutoPtr<MP4Sample>&. The sample
will be deleted by the caller (MP4Reader) if Input() returns DECODE_STATUS_OK,
but if the MediaDataDecoder wants to assume responsibility of the
lifecycle of the sample (say to enqueue it), it can forget() on the
nsAutoPtr& passed in and assume responsibility.

Call PlatformDecoderModule::Create() on the decode thread. This is a step
towards making these classes decode-thread only.

Add PlatformDecoderModule::Init(), which caches the pref's we need, since
PlatformDecoderModule::Create() is no longer called on the main thread, we can
no longer access them in there.

Add Init() method to MediaDataDecoder interface. This is so that we can call
MediaDataDecoder::Shutdown() to unblock the initialization of a decoder, if
that init needs to block.

Pass LayersBackend type to WMFVideoDecoder, so it knows whether to init DXVA.
2014-01-15 13:31:12 +13:00
Randy Lin
4526c822d4 Bug 926684 - Test Case for MediaRecorder: Assertion failure: mEncoder (CreateEncoder failed). r=jsmith 2014-01-09 10:52:29 +08:00
Rick Eyre
af35c2dfc6 Bug 949643 - Implement VTTCue::PositionAlign. r=rillian 2013-12-13 12:57:48 -05:00
Paul Adenot
2ca7f2f126 Bug 952860 - Leaky integrate sawtooth and square waves in the OscillatorNode to prevent bad DC offset when changing frequency. r=karlt
--HG--
extra : rebase_source : f526506e80a4d7db553fe54cc115d8bf1c7be9d2
2014-01-10 12:40:05 +01:00
Ryan VanderMeulen
f4de297d84 Backed out 6 changesets (bug 939294) for B2G bustage on a CLOSED TREE.
Backed out changeset 8c3aa9973da0 (bug 939294)
Backed out changeset 37098c13e59e (bug 939294)
Backed out changeset 7c9ade6c871c (bug 939294)
Backed out changeset fed59539afc1 (bug 939294)
Backed out changeset 89e9d3fa16fc (bug 939294)
Backed out changeset c97e58ebc5f4 (bug 939294)
2014-01-09 14:17:39 -05:00
Rick Eyre
86640b66f3 Bug 950830 - Clean up TextTrackCue style and TODO comments. r=rillian 2013-12-16 14:49:22 -05:00
Rick Eyre
c4a5a3c5a6 Bug 949642 - Implement VTTCue::LineAlign. r=rillian 2013-12-13 09:29:15 -05:00
Paul Adenot
ab2cc97579 Bug 943589 - Handle AudioChunk::mVolume (from GainNode) in AudioParam. r=ehsan 2014-01-10 15:30:40 +01:00
Paul Adenot
3f4dc71b42 Bug 942022 - Return safely when thread creation fails, in ReverbConvolver. r=karlt 2014-01-10 16:01:18 +01:00
Tom Schuster
6bf8fcd77b Bug 939294 - Handlify content/. r=smaug 2014-01-09 18:39:37 +01:00
Edwin Flores
ed3d2608a0 Bug 953394 - Force OMXCodec to output a sane colour format on Android 4.4 and above r=doublec 2014-01-09 14:54:57 +13:00
Ryan VanderMeulen
f48197c371 Merge inbound to m-c. 2014-01-08 15:33:52 -05:00
Shelly Lin
60dc6c5d1b Bug 955981 - Make function InterleaveTrackData public and static. r=roc 2014-01-07 18:05:05 +08:00
Ryan VanderMeulen
b0bb1ab64e Merge b2g-inbound to m-c. 2014-01-07 16:29:13 -05:00
Ryan VanderMeulen
02620df6b9 Backed out changesets 7e3a322f9fd6, 91749b627a04, and 69bf31cfafa1 (bug 916135) for Android mochitest failures. 2014-01-07 11:15:00 -05:00
Sotaro Ikeda
6bb9ea150f Bug 948005 - Release reasources in MediaOmxReader's destructor. r=doublec 2014-01-07 09:44:02 -05:00
Shelly Lin
21501b468b Bug 936981 - Setup GTest for content/media and add a test case for OpusTrackEncoder. r=rillian 2014-01-07 11:04:51 +08:00
Robert O'Callahan
594868f59d Bug 943461. Part 20: Don't revive an offline MediaStreamGraph that has finished. Instead, process any pending events using their RunInShutdown sequence. r=padenot
--HG--
extra : rebase_source : 7d2d6282418cf0a339684ad651f8c29876acf496
2014-01-07 09:09:29 +13:00
JW Wang
2e9400827b Bug 916135 - Part 2: Don't call OMXCodec::pause in emulator mode to prevent getting stuck in paused state of OMXCodec. r=doublec 2013-12-16 16:30:59 +08:00
JW Wang
7a3277f62f Bug 916135 - Part 1: Force releasing codec to prevent timeout in waiting for acquiring h264 codec. Setting the preload attribute to "auto" to prevent timeout in waiting for loadedmetadata event. r=padenot 2014-01-07 09:53:55 +08:00
Wes Kocher
9ad9413521 Merge b2g-inbound to m-c 2014-01-06 17:16:48 -08:00
Ethan Tseng
ce4165d316 Bug 951117 - [RTSP][Video][V1.3] Crash happened while stop playing RTSP strreaming. r=sworkman 2013-12-23 17:05:11 +08:00
Randy Lin
2c7f09a036 Bug 950429 - Media Recording - Allow NS_DispatchToCurrentThread in Media Encoder thread. r=roc 2014-01-05 01:20:21 +08:00
Andrew Quartey
985efe81df Bug 882718 - Part a: Add list of newly introduced cues to TextTrackManager. r=rillian 2014-01-06 13:03:50 -05:00
Birunthan Mohanathas
dfbad43639 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Robert O'Callahan
26cfed0478 Bug 943461. Part 19: nsSpeechTask should explicitly finish its audio track before finishing the stream. r=eitan
--HG--
extra : rebase_source : 8c927ef0f777e1c5c5fe39361df1185e73a06111
2013-12-13 01:33:01 +13:00
Robert O'Callahan
f478c60988 Bug 943461. Part 18: Ensure AudioBufferSourceNode's engine always produces an audio block when ProduceAudioBlock is called, and add an assertion to catch this kind of error directly. r=karl
--HG--
extra : rebase_source : e6ae51dc34f5567998af3b299acd48dd10e8394e
2013-12-13 01:33:01 +13:00
Robert O'Callahan
a2e908e72a Bug 943461. Part 17: MediaDecoderStateMachine::StopPlayback should not set mPlayDuration based on real time, but on whatever we're using for GetClock. r=cpearce
--HG--
extra : rebase_source : 855fd9cb87cfc5824676697cc73dee12ab816c16
2013-12-13 01:33:01 +13:00
Robert O'Callahan
8c723f3346 Bug 943461. Part 16: Fix test_streams_element_capture_reset to make its expected current times be independent of possibly-buggy v.currentTime. r=cpearce
--HG--
extra : rebase_source : ed67ce62701d5386bc4ba1ba98edd8e4d3946748
2013-12-13 01:33:01 +13:00
Robert O'Callahan
81d72a6306 Bug 943461. Part 15: Make MediaDecoder set its currentTime based on the decoded stream's time directly, if we are decoding to a stream. r=cpearce
--HG--
extra : rebase_source : 35fe51dbec3107d7dae801a5a179c5ef5fa53725
2013-12-13 01:33:00 +13:00
Robert O'Callahan
b33d4283d0 Bug 943461. Part 13: Keep producing silence in AudioNodeStreams' mLastChunks even after they've finished r=padenot
Without this the last before-finished audio block gets picked up by downstream
ObtainInputBlock calls.

--HG--
extra : rebase_source : d7f804cea59454bdb0aa5931d19bcc123e0d16cb
2013-12-10 13:49:03 +13:00
Robert O'Callahan
6f87a9fa58 Bug 943461. Part 12: Remove spurious ScriptProcessorNode from test. r=karl
--HG--
extra : rebase_source : e902519b5e1d7bbd7f60545147edd8241e4d9455
2013-12-10 13:49:03 +13:00
Robert O'Callahan
43581067c4 Bug 947796. Must convert milliseconds to MediaTime correctly. r=padenot
--HG--
extra : rebase_source : 8cbe26ea9f5189df38985a57fdd447e858885b18
2013-12-09 18:08:02 +13:00
Robert O'Callahan
2189b5f9e4 Bug 943461. Part 11: Don't tear down an OfflineAudioContext until its current time has actually reached its end, to ensure that all relevant stream state changes have been forwarded to the main thread. r=padenot
--HG--
extra : rebase_source : 32b9a4cf4c39edfabf5be17cec50a676f1ad4641
2013-12-09 18:08:02 +13:00
Robert O'Callahan
e4b0b7a283 Bug 943461. Part 10: Fix and simplify setting of mNextMainThreadFinished. r=padenot
--HG--
extra : rebase_source : 4530688441600d6538cd9a9662466762ca845ff9
2013-12-09 18:08:02 +13:00
Robert O'Callahan
cbd0519476 Bug 943461. Part 9: Handle absence of INCLUDE_TRAILING_BLOCKED_INTERVAL flag correctly. r=padenot
--HG--
extra : rebase_source : b7bf3e56e0332dcf1357f959891ff39a86f89cd1
2013-12-09 18:08:02 +13:00
Robert O'Callahan
d4e6ad4a05 Bug 943461. Part 8: When a MediaDecoder is decoding to a stream, run PlaybackEnded when the stream finishes. r=padenot
--HG--
extra : rebase_source : 92c8b55c5d8330bcf8242d379bc608fa3d30bc6b
2013-12-07 01:01:33 +13:00
Robert O'Callahan
e156997b45 Bug 943461. Part 7: DecodedStreamData::mNextVideoTime is not relative to mStartTime. r=cpearce
--HG--
extra : rebase_source : 63b4fe1859c362683b3d3192114263dd7910b183
2013-12-06 18:39:49 +13:00
Robert O'Callahan
3f3751da91 Bug 943461. Part 6: Fix test to handle automatic stop of MediaRecorder. r=rlin
--HG--
extra : rebase_source : 15e9a2042c4ac940afe9e6d524fab7a4d75e8675
2013-12-06 09:59:00 +13:00
Robert O'Callahan
d235857918 Bug 943461. Part 5: Don't allow a stream to finish before it has produced output up to mStateComputedTime. r=padenot
--HG--
extra : rebase_source : 9bf003c246b63b1dd64665024533fda74a8e1fa4
2013-12-06 09:23:57 +13:00
Robert O'Callahan
22e6021b04 Bug 943461. Part 4: Fix TrackUnionStream track-ended calculation to catch cases where a track ends at the point where the input stream is completely blocked. r=padenot
We can have a situation where interval.mStart == interval.mEnd always (because
the input stream is always blocking) but the track has actually ended.

--HG--
extra : rebase_source : d2ffdf56b51196dfaab15beb145db33dd97c749e
2013-12-04 19:01:59 +13:00
Robert O'Callahan
ee1833e055 Bug 943461. Part 3: Like part 1, blocking calculations should note that a stream is only fully ended whenall of its tracks have finished playing out. r=padenot
--HG--
extra : rebase_source : 892cd92396e317d1c46a2f67d0061dc3d513de98
2013-12-04 19:00:26 +13:00
Robert O'Callahan
8dd460fc87 Bug 943461. Part 2: Add assertion to catch cases where we NotifyOuput after NotifyFinished. r=padenot
--HG--
extra : rebase_source : 8653b45d9f1dde5ff40bd2621ee9cda527bb6be1
2013-12-04 18:59:14 +13:00
Robert O'Callahan
77beca3623 Bug 943461. Part 1: A stream is fully finished when all its tracks have finished playing out. r=padenot
--HG--
extra : rebase_source : 0efa4353ea22ffd52d550331623098d275382148
2013-12-04 14:08:12 +13:00
Boris Zbarsky
9d25dc48cc Bug 950315 part 1. Convert a bunch of event targets to passing a Window or nsDOMEventTargetHelper directly to the constructor of their ancestor nsDOMEventTargetHelper. r=smaug 2014-01-06 21:53:23 -05:00
Karl Tomlinson
14bf099fae b=956611 remove costly atomic reference counting from ProduceDataForStreamsBlockByBlock r=padenot
--HG--
extra : transplant_source : %D7bP%80%E1zKym%0A6%E2w%FB%22%3Cy%00%23V
2014-01-07 12:53:49 +13:00
Karl Tomlinson
c0820c5d01 b=944143 avoid producing infinite stream of subnormals in ZeroPole tail r=padenot
--HG--
extra : transplant_source : gI%94%E9%DB%99%83%B7%09%B6%82q%FF9%5DI%BE%D6%EF%B6
2014-01-07 12:53:48 +13:00
Karl Tomlinson
e2d74dc640 b=949683 optimize zero-gain in GainNode r=padenot
--HG--
extra : transplant_source : %97Js%1B%23%13%AEb%7F%9E%B5%C4%BEx%84xV%C1%F7%5B
2014-01-07 12:53:48 +13:00
Karl Tomlinson
49afc90fac b=944851 don't consider AudioNode input when getting AudioParam values on the main thread r=ehsan
--HG--
extra : transplant_source : %15o4%BAA%1F%D4%87%01%CD%B3H%A1T%B0%88%27%9F%A1e
2014-01-07 12:53:47 +13:00
Karl Tomlinson
b0df417f11 b=952756 always remember offset and duration from Start() r=padenot
--HG--
extra : transplant_source : %9A%3D%12wAbL%0D%E1%16G%A9%B7%23%A9%16%7F%8C%2B%18
2014-01-07 12:53:47 +13:00
Wes Kocher
7ea7ee3eae Merge m-c to inbound 2014-01-06 18:14:57 -08:00
Chris Pearce
2feedd2f79 Bug 945645 - Only init WMF video decoding if we have a video container. r=padenot. 2014-01-07 14:36:12 +13:00
Paul Adenot
0a391e2f8e Bug 956201 - Null check the destination node when muting. r=karlt
This can happen since we now mute instead of suspending when an AudioContext
shuts down.
2014-01-07 11:17:28 +01:00
Karl Tomlinson
b30e46dcaa b=957468 don't unset mNonRealtimeProcessing after offline graph completion r=roc
--HG--
extra : transplant_source : %D1%17%20%079%82%2B%91ES%B5%CC%83%E3t%8B%F9%A8%D6%E7
2014-01-08 17:04:36 +13:00
Karl Tomlinson
473f7b8c71 b=943461 don't move messages from mCurrentTaskMessageQueue after it has been emptied r=roc
--HG--
extra : transplant_source : a%27%91%24%A5%1Fe%82%B5%5B%82%AF%17%1A%BA%D8%9DRai
2014-01-08 16:58:14 +13:00
Karl Tomlinson
1c1570d60b b=956604 optimize inverse FFT scaling during convolution r=padenot
--HG--
extra : transplant_source : %FD%10%CEAnU%98w%15%9D%9E6l%A7Q1%E1V%CDD
2014-01-08 16:58:11 +13:00
Karl Tomlinson
3ef01a9b6c b=956604 Remove unnecessary channel count parameter from AudioBufferInPlaceScale r=padenot
--HG--
extra : transplant_source : %98%098%E3%1D%9D%B4%22%FD%ED%3C%96%11%96%F9P%89%F4J0
2014-01-08 16:57:53 +13:00
Karl Tomlinson
65f6a47487 b=956604 rename block version of AudioBufferInPlaceScale to AudioBlockInPlaceScale r=padenot
--HG--
extra : transplant_source : %EE%9C%0D%B4%F0S%DA%AFX%3D%D2%10H%28-%82%EE%B5%AB%84
2014-01-08 16:57:26 +13:00
Ehsan Akhgari
384530ea4e Bug 884368 - Part 1: Add a memory reporter for AudioContexts; r=roc,njn 2014-01-04 13:15:41 -05:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Randy Lin
2569256f4b Bug 952052 - Avoid release Session object in Media Encoder thread. r=roc 2014-01-03 15:24:57 +08:00
Ryan VanderMeulen
7b8cc3a77f Merge m-c to inbound. 2014-01-02 16:17:34 -05:00
Ryan VanderMeulen
462c38e424 Merge b2g-inbound to m-c. 2014-01-02 16:14:38 -05:00
Wolfgang Rosenauer
d74a129254 Bug 953130 - Fix system NSPR builds for content/media. r=rjesup 2014-01-02 09:14:52 +01:00
Jan Gerber
8c3c11c7cb Bug 952186 - Remove downmix code from WebMReader; r=rillian 2013-12-19 23:43:26 +05:30
Randy Lin
7113bf2f0e Bug 952020 - Remove the MediaEncoder::OnEncoderThread(). r=roc 2013-12-19 18:13:05 +08:00
Ms2ger
98586cdbc1 Bug 950143 - Remove the implicit conversion operator from nsIntSize to IntSize; r=roc 2013-12-31 10:06:12 +01:00
Alfredo Yang
8df1fa2248 Bug 891704 - Add ISO media container muxer. r=cpearce 2014-01-02 10:39:24 -05:00
Rick Eyre
2488f7f69c Bug 921484 - Fix bugs found in TextTrack::GetActiveCues(); r=rillian
* mDirty needs to be set to false after the list has been recomputed.
* The loop that adds cues to the list doesn't work properly when the
  list has become dirty as we check if endTime < playback time and
  since we start from pos 0 we will never get past the first cue.
2013-12-13 10:09:33 -05:00
Brendan Long
2d0fd1214e Bug 882703 - Add TextTrackList change event; r=rillian,bz 2013-12-17 23:19:09 -06:00
Wes Kocher
19e7b8c082 Backed out changeset df0855f26e4d (bug 949642) for introducing a new intermittent failure 2013-12-20 18:33:55 -08:00
Wes Kocher
58a13fe0cb Backed out changeset 6532bf066bb4 (bug 882299) 2013-12-20 18:33:04 -08:00
Wes Kocher
e1b2f4d192 Backed out changeset 9ca7e64ef0d0 (bug 921484) 2013-12-20 18:32:44 -08:00
Wes Kocher
9c61949d24 Backed out changeset 00aa14a1f461 (bug 950830) 2013-12-20 18:32:20 -08:00
Jan Gerber
ec34c08ae6 Bug 950793 - Loop over all supported codecs in test. r=rillian 2013-12-16 10:50:00 -08:00
Jan Gerber
3712c67040 Bug 949525 - VP9 tests. r=cpearce
Remuxed vp9cake.webm to correct CodecDelay values.
2013-12-19 07:02:00 -08:00
Jan Gerber
e898b93f0a Bug 945513 - Opus-in-WebM tests. r=rillian
detodos.webm was remuxed with ffmpeg N-58726-g9695fb2 from detodos.opus

| + Muxing application: Lavf55.22.100
| + Writing application: Lavf55.22.100
2013-12-16 10:48:00 -08:00
Rick Eyre
5655b03c49 Bug 950830 - Clean up TextTrackCue style and TODO comments. r=rillian 2013-12-16 14:49:22 -05:00
Rick Eyre
afef117451 Bug 921484 - Fix bugs found in TextTrack::GetActiveCues(). r=rillian 2013-12-13 10:09:33 -05:00
Rick Eyre
68a00515c1 Bug 882299 - Implement VTTCue::Line. r=smaug, r=rillian 2013-12-16 14:35:01 -05:00
Rick Eyre
4fdaf8fb73 Bug 949642 - Implement VTTCue::LineAlign. r=rillian 2013-12-13 09:29:15 -05:00
Wes Kocher
e20ec0842c Backed out changeset 2e2c930a960c (bug 948269) for android 4.0 mochitest-2 permaorange 2013-12-19 19:24:42 -08:00
Matthew Gregan
4ae6fd0723 Bug 948269 - Split MediaDecoderStateMachine::AudioLoop out into new AudioSink class. r=cpearce 2013-12-20 13:52:06 +13:00
Rick Eyre
2837cf469c Bug 950049 - Rename VTTCue::TextTrackCueAlign to AlignSetting. r=rillian 2013-12-13 09:44:50 -05:00
Ryan VanderMeulen
9c7c648b58 Merge b2g-inbound to m-c. 2013-12-18 21:27:05 -05:00
Randy Lin
f60bb6d1ec Bug 879669 - Part 4: Stop can cancel the initialization of start method, change to check the blob case by case. r=roc, r=jsmith 2013-12-18 12:14:44 +08:00
Randy Lin
f0c1dd71b7 Bug 879669 - Part 3: Start recording when tracks have been added. r=roc 2013-12-18 18:39:45 +08:00
Paul Adenot
c11c0c60e1 Bug 936784 - Only mute on Shutdown if the AudioContext is not an OfflineAudioContext. 2013-12-18 16:07:37 +01:00
Paul Adenot
0f3fd2b88f Bug 936784 - Don't overbuffer in the MSG on AudioContext shutdown. r=roc,ehsan 2013-12-17 16:15:07 +01:00
Chris Pearce
822f12eb46 Bug 938107 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-18 16:59:11 +13:00
Randy Lin
d2ab1b4eaf Bug 879669 - Part 2: Let Encoder can support various mimeType. r=roc 2013-12-10 15:24:51 +08:00
Ehsan Akhgari
2a1c0c4590 Bug 950840 - Rename some logging macros in content/media/wmf; r=cpearce 2013-12-17 14:43:29 -05:00
Randy Lin
7ddd2acb4f Bug 879669 - Part 1: Don't callback if there is no track in MediaStream. r=roc 2013-11-23 09:14:29 +13:00
Matthew Gregan
011986eed3 Bug 950120 - Use audio reader if no video reader available, and handle zero reader case. r=doublec 2013-12-16 16:24:44 +13:00
Edwin Flores
66181fe3a2 Bug 866080 - Use Android I420ColorConverter in OMX plugin r=sotaro,doublec 2013-12-17 11:58:16 +13:00
Ehsan Akhgari
efe5b64f54 Bug 950507 - Build content/media/fmp4 in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Ehsan Akhgari
f21c910fc1 Bug 950506 - Part 2: Build content/media/directshow in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Ehsan Akhgari
a6c4451cc2 Bug 950506 - Part 1: Rename the LOG macro to DIRECTSHOW_LOG in SourceFilter.cpp 2013-12-16 13:08:53 -05:00
Ehsan Akhgari
2b7af72ecf Bug 950505 - Build content/media/wmf in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Alexandros Chronopoulos
abe5d773d2 Bug 911482 - Perform audio downmix inside AudioStream class. r=rillian 2013-09-26 22:06:59 +03:00
Paul Adenot
33def62a8b Bug 932621 - Use fabs instead of abs (forgot to address review comments). r=ehsan 2013-12-16 14:08:22 +01:00
Paul Adenot
c02514ecb1 Bug 932621 - Make sure the latency does not grow up in ScriptProcessorNode. r=ehsan 2013-12-13 18:21:05 +01:00
Brian Smith
7efc937c92 Back out cset bce074481220 (bug 950507) for build failure on Windows when warnings are treated as errors 2013-12-16 00:39:15 -08:00
Brian Smith
409af7fddc Back out cset caa78bef50e3 (bug 950506) for build failure on Windows when warnings are treated as errors 2013-12-16 00:39:13 -08:00
Brian Smith
faab1b2168 Back out cset 1566a2e95c3b (bug 950505) for build failure on Windows when warnings are treated as errors 2013-12-16 00:39:11 -08:00
Edwin Flores
ceed8781fc Bug 948326 - Actually address review comments in bug 918135 r=cpearce 2013-12-16 17:47:50 +13:00
Phil Ringnalda
a89c244f90 Back out 377f51d0e354 (bug 938108) for crashtest shutdown crashes 2013-12-15 19:56:24 -08:00
Chris Pearce
0c05712284 Bug 938108 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-16 15:52:59 +13:00
Chris Pearce
e9d0605f33 Bug 938107 - Backed out changeset 7aff3ce81046 for bustage. r=bustage. 2013-12-16 13:48:54 +13:00
Chris Pearce
a584c56a17 Bug 938107 - Wait for media state machine thread to shutdown during XPCOM shutdown before returning. r=roc
Add a MediaShutdownManager and have that as the only xpcom-shutdown
observer. This then shutsdown the MediaDecoders, and blocks waiting for
the media state machine's shared thread to complete shutdown before
exiting from the xpcom-shutdown observer. This ensures that the
MediaDecoder infrastructure does not use XPCOM on any thread after XPCOM
has shutdown, which is a logical error.
2013-12-16 13:31:03 +13:00
Ehsan Akhgari
377eb7e191 Bug 950507 - Build content/media/fmp4 in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Ehsan Akhgari
75fa61048b Bug 950506 - Build content/media/directshow in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Ehsan Akhgari
064d922182 Bug 950505 - Build content/media/wmf in unified mode; r=roc 2013-12-15 19:00:54 -05:00
Tor Arvid Lund
217a12d499 Bug 929513 - Fix compile errors on Windows/Android r=nical
Forgot an include in the ImageLayerD3D9.cpp file (though I am unable to
reproduce the issue on my own windows installation).

Also seems in my previous attempt to fix the build, I introduced a
breakage for Android. Hopefully this will fix things.
2013-12-13 18:32:10 +01:00
Tor Arvid Lund
944f0d6f3b Bug 929513 - Replace some instances of gfxIntSize with gfx::IntSize r=nical 2013-12-13 18:32:02 +01:00
Paul Adenot
93b93df051 Bug 949474 - Reflect the fact that the nominal range for the sampleRate argument of the AudioContext.createBuffer changed in the spec. r=
* * *
Bug 949474 - Fix various oranges, on a CLOSED TREE.

--HG--
extra : rebase_source : 1317857063b7f028687aab1c00f113d947cd5685
2013-12-13 17:58:00 +01:00
Wes Kocher
3b7fc0a192 Merge inbound to m-c 2013-12-12 19:12:51 -08:00
Shelly Lin
a9385adbe9 Bug 948819 - Do not round the frame size if the source video is in odd resolutions. r=roc 2013-12-11 17:42:56 +08:00
Bruce Sun
0e31aa3f5e Bug 947113 - Sync RTSP play & pause with the life time of the decoding thread. r=doublec 2013-12-12 11:21:04 +08:00
Thomas Zimmermann
aa0552cb38 Bug 947905: Release OmxDecoder on main thread
OmxDecoder refers to MediaResource, which must be released on
the main thread. This patch changes the MP3 parser logic to send
a runnable to the main thread for releasing OmxDecoder.
2013-12-12 09:57:56 +01:00
Ryan VanderMeulen
ea2a161036 Merge m-c to b-i. 2013-12-11 13:37:13 -05:00
Jan Gerber
c6904a6fd8 Bug 945863 - Handle CodecDelay and SeekPreroll for Opus in WebM. r=kinetik 2013-12-10 10:36:05 +01:00
Shelly Lin
3b41fa6b74 Bug 945127 - Correct the checking of input sampling rate. r=giles 2013-12-11 13:56:18 +08:00
Ryan VanderMeulen
a762d43c40 Merge m-c to inbound. 2013-12-10 15:48:16 -05:00
Carsten "Tomcat" Book
de91ddd9df merge mozilla-inbound to mozilla-central 2013-12-10 13:02:55 +01:00
Randell Jesup
9e71dcb1bc Bug 853356: backout p2 2013-12-10 01:03:23 -05:00
Carsten "Tomcat" Book
b0cb202aed Backed out changeset 1d72742584ad (bug 945614) per Bug 853356 comment 209 2013-12-10 08:38:43 +01:00
Birunthan Mohanathas
58325c73be Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Birunthan Mohanathas
bd0f161288 Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Ehsan Akhgari
d9cd92fa17 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Matthew Gregan
ac618ae54e Backed out changeset 66be4716e86e (bug 944707) for regressing lazy libcubeb initialization, startup time, and causing bug 946037. 2013-12-09 11:49:25 +13:00
Wes Kocher
871ed2b150 merge m-c to b2g-inbound 2013-12-06 20:49:02 -06:00
Randell Jesup
33d6cb846a Bug 945614: Don't track windowIDs in MediaEngine for B2G r=mikeh,schien 2013-12-06 17:38:52 -05:00
Alfredo Yang
e87956b07b Bug 853356 - Part2 Add MediaPermissionGonk.h and MediaPermissionGonk.cpp to implement ContentPermissionPrompt. r=jesup 2013-12-06 17:38:51 -05:00
Jan Gerber
5651a2f1d2 Bug 833023 - Enable VP9 playback in HTML media elements. r=kinetik 2013-12-03 16:21:00 -08:00
Nicholas Nethercote
e02408b49d Bug 947798 (part 2) - Remove MemoryMultiReporter, because it's no longer helpful. r=mccr8.
--HG--
extra : rebase_source : f6f74de69d8c1d79d38b84b19dff5439efc41075
2013-12-07 21:39:47 -08:00
Paul Adenot
4f552f4d9a Bug 947910 - Relax the MOZ_ASSERT(mPosition <= mDuration) in case of looping, in AudioBufferSourceNode::CopyFromBufferWithResampling. r=karlt 2013-12-10 14:35:50 +01:00
Ethan Tseng
02ae3ae476 Bug 938512 - HTMLMediaElement does not fire loadedmetadata. r=sworkman 2013-11-26 17:25:40 +08:00
Chris Pearce
d39ccab1d3 Bug 941314 - Use SpecialPowers.exactGC in media mochitests to hopefully improve their reliability. r=kinetik 2013-12-06 17:15:13 +13:00
Ryan VanderMeulen
4c584f3f4a Merge b2g-inbound to m-c. 2013-12-05 17:53:41 -05:00
Carsten "Tomcat" Book
5ad51b9365 merge b2g-inbound to m-c 2013-12-05 12:57:24 +01:00
Nicholas Nethercote
e9715bfc41 Bug 943660 (part 2) - Remove remnants of Remove nsIMemoryReporter::name.
--HG--
extra : rebase_source : 900bd1c641b26623cccf14d952b5387223b489eb
2013-12-03 20:01:24 -08:00
Ehsan Akhgari
98c4a73d51 Bug 946216 - Build content/media/plugins in unified mode; r=glandium
--HG--
extra : rebase_source : 25f86174a09cf0a4a30f741405dddb153c3453ba
2013-12-04 09:43:36 -05:00