Commit Graph

3512 Commits

Author SHA1 Message Date
Ben Kelly
baa4dd0cda Bug 960873: Part 7: Reduce apple mp3 MAX_AUDIO_FRAMES to minimize alloc slop. r=cpearce 2014-02-04 23:10:43 -05:00
Ben Kelly
d4056edd6e Bug 960873: Part 6: Make DirectShow use AudioCompactor. r=cpearce 2014-02-04 23:10:43 -05:00
Ben Kelly
21eed869a5 Bug 960873: Part 5: Make gstreamer use AudioCompactor. r=cpearce 2014-02-04 23:10:43 -05:00
Ben Kelly
d59e1509d7 Bug 960873: Part 4: Make OMX use AudioCompactor. r=cpearce 2014-02-04 23:10:43 -05:00
Ben Kelly
374dfef993 Bug 960873: Part 3: AudioCompactor gtest unit tests. r=cpearce 2014-02-04 23:10:43 -05:00
Ben Kelly
ceb8a27ae2 Bug 960873: Part 2: Create AudioCompactor class to minimize allocation slop. r=cpearce
Based on original patch written by :gal.
2014-02-04 23:10:43 -05:00
Ben Kelly
1f1ea86463 Bug 960873: Part 1: Refactor MediaDecoderReader.h into separate headers. r=cpearce 2014-02-03 20:49:21 -05:00
Karl Tomlinson
65d29a3804 b=966867 use internal linkage for GetSampleRateForAudioContext r=kinetik
--HG--
extra : transplant_source : t%F5%2A%A2%ADbI%40%A3%0E%9FS%D1%FCC%0B%1B%3E%0A%9B
2014-02-03 17:40:24 +13:00
Karl Tomlinson
f967a2f301 b=966867 don't overwrite preferred sample rate with default r=kinetik
--HG--
extra : transplant_source : /S%9D/%BC%80%E0%E3%C3%11%E7%EA%D4%BB%F3%D7%AD%06%B7%25
2014-02-03 17:40:03 +13:00
Karl Tomlinson
15a109ce4e b=966800 don't ignore blocking changes when another stream is finishing or underrunning r=roc
--HG--
extra : transplant_source : %7C%C3B%08%3E%D2%B2%93%BC%811%22%D1%27%95%AF%BD%D1eB
2014-02-03 13:55:41 +13:00
Alfredo Yang
86c16b7caa Bug 964197 - Add frame duration for synchronization. r=cpearce 2014-02-02 20:57:41 -05:00
Alfredo Yang
06e9d4304d Bug 961618 - Reduce memory usage by swapping audio/video array pointer. r=cpearce 2014-01-31 21:51:27 -05:00
Benjamin Chen
08847cde7f Bug 964132 - [RTSP] Fix the cycle reference in RtpsMediaResource. r=sworkman 2014-02-05 10:41:42 +08:00
Paul Adenot
fbc46d612c Bug 883010 - Optimize MediaStreamGraphImpl::UpdateStreamOrder in order to optimize away how much time we spend on it in every iteration of the MSG. r=roc
--HG--
extra : rebase_source : f1b09842f12b66ac0398b4780865cde461445a8a
2014-01-29 14:34:35 +01:00
Karl Tomlinson
5530939c60 b=966636 rename resampling copy variables consistently and test remaining input better r=padenot
--HG--
extra : rebase_source : 7d2c34865aeb21d67207e0d4e7b2fd3e8956d54c
2014-02-05 14:42:18 +13:00
Chris Pearce
423a5bf288 Bug 962385 - Make WMF PlatformDecoderModule conform to new async interface. r=padenot
--HG--
rename : content/media/fmp4/wmf/WMFAudioDecoder.cpp => content/media/fmp4/wmf/WMFAudioOutputSource.cpp
rename : content/media/fmp4/wmf/WMFAudioDecoder.h => content/media/fmp4/wmf/WMFAudioOutputSource.h
rename : content/media/fmp4/wmf/WMFVideoDecoder.cpp => content/media/fmp4/wmf/WMFVideoOutputSource.cpp
rename : content/media/fmp4/wmf/WMFVideoDecoder.h => content/media/fmp4/wmf/WMFVideoOutputSource.h
2014-02-05 14:29:31 +13:00
Chris Pearce
43df7e9854 Bug 962385 - Update PlatformDecoderModule interface to run asynchronously. r=kinetik 2014-02-05 14:29:28 +13:00
Chris Pearce
1aaf07c131 Bug 962385 - Add MediaTaskQueue, for synchronizing events to be run in a thread pool. r=kinetik 2014-02-05 14:29:26 +13:00
Ralph Giles
71602cd943 Bug 951770 - Reject invalid Opus pre-skip in WebM. r=doublec
The 'pre-skip' value representing encoder delay in the Opus
format is recorded once in the .opus representation, but for
WebM it's in the file both in the CodecDelay element and in
the CodecPrivate data. We now reject files where these two
fields don't match.

Our detodos.webm file was exactly this sort of mismatched
file. It has been renamed and added to the invalid file list
to verify we now reject it. A new detodos.webm replaces it,
remuxed from detodos.opus with a bugfixed mkvmerge.

Based on a patch by Jan Gerber.

--HG--
rename : content/media/test/detodos.webm => content/media/test/invalid-preskip.webm
2014-02-02 19:39:00 -08:00
Edwin Flores
228ef9f9f7 Bug 963621 - Stop passing kClientNeedsFramebuffer into Qualcomm OMXCodec r=doublec
Qualcomm's OMXCodec implementation interprets the kClientNeedsFramebuffer flag
to mean that we only want a thumbnail. Thus, it returns only one frame and then
returns EOS.

This patch adds a Qualcomm-specific hack to not pass their decoder this flag.
2014-01-28 17:31:00 +13:00
Eric Faust
c5363b4739 Bug 966044 - Fix unconditional single byte buffer overflow in EbmlComposer::generateHeader(). (r=rillian) 2014-01-30 16:42:00 -08:00
Benoit Jacob
4703621d85 Bug 964442 - Make CreateImage just take a plain format parameter - r=jrmuizel 2014-01-30 17:58:51 -05:00
Benoit Jacob
3ee7a2d643 Bug 962784 - Convert ImageTypes.h to typed enums - r=jrmuizel
find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(GRALLOC_PLANAR_YCBCR\|PLANAR_YCBCR\|SHARED_RGB\|CAIRO_SURFACE\|MAC_IOSURFACE\|REMOTE_IMAGE_BITMAP\|SHARED_TEXTURE\|REMOTE_IMAGE_DXGI_TEXTURE\|D3D9_RGB32_TEXTURE\)\($\|[^A-Za-z0-9_]\)/\1ImageFormat::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|ImageFormat\:\:ImageFormat|ImageFormat|g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)STEREO_MODE_\(MONO\|LEFT_RIGHT\|RIGHT_LEFT\|BOTTOM_TOP\|TOP_BOTTOM\)\($\|[^A-Za-z0-9_]\)/\1StereoMode::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|StereoMode\:\:StereoMode|StereoMode|g'
2014-01-30 17:58:49 -05:00
Ryan VanderMeulen
80b4682516 Merge m-c to inbound. 2014-01-30 16:36:04 -05:00
Ryan VanderMeulen
742d660975 Merge b2g-inbound to m-c. 2014-01-30 16:32:42 -05:00
Ethan Tseng
4fc1d40c03 Bug 962309 - Video RTSP support should be disabled in 1.3. r=sworkman 2014-01-30 08:58:24 +08:00
Alfredo Yang
3aa7145fee Bug 959021 - Rename HAS_AUDIO/HAS_VIDEO and add swap in/out frame data. r=cpearce 2014-01-30 11:06:11 -05:00
Randy Lin
2dd61040f8 Bug 957841 - Test case for MediaRecorder crash [@ mozilla::dom::MediaRecorder::Session::AfterTracksAdded]. r=jsmith 2014-01-29 23:09:46 +08:00
Randy Lin
501eac5dc4 Bug 957841 - MediaRecorder crash [@ mozilla::dom::MediaRecorder::Session::AfterTracksAdded]. r=roc 2014-01-29 23:09:43 +08:00
Rick Eyre
dbde66be6a Bug 965336 - Setting TextTrackCue's Start or End times should set its state to dirty. r=rillian 2014-01-29 12:57:43 -05:00
Rick Eyre
714316e444 Bug 965246 - Integrate bulk updates from vtt.js. r=rillian
Relevant changes for bugs 881976 and 964625.
2014-01-29 09:28:06 -05:00
Ethan Tseng
e3de8a04f3 Bug 951188 - [RTSP][V1.3] No error notification when the RTSP link fails to load. r=sworkman 2014-01-30 10:00:53 +08:00
Karl Tomlinson
f90c19d165 Bug 961996 - restore mForceShutDown check before MediaStreamGraphShutDownRunnable dispatch r=roc
This check was dropped in 1ebe4da27dd5.

--HG--
extra : rebase_source : 495d81cff39f2ee074effe6bef06caf6b2ac3161
2014-01-30 18:50:17 +13:00
Ryan VanderMeulen
e1f38bbe7d Backed out changeset 15a8086a2431 (bug 963621) for Android bustage. 2014-01-30 14:01:58 -05:00
Edwin Flores
0769ca6dd3 Bug 963621 - Stop passing kClientNeedsFramebuffer into Qualcomm OMXCodec. r=doublec
Qualcomm's OMXCodec implementation interprets the kClientNeedsFramebuffer flag
to mean that we only want a thumbnail. Thus, it returns only one frame and then
returns EOS.

This patch adds a Qualcomm-specific hack to not pass their decoder this flag.
2014-01-30 13:26:54 -05:00
Birunthan Mohanathas
89f96b243e Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan 2014-01-30 13:26:54 -05:00
Robert O'Callahan
dad3d89cd4 Bug 941873. Blocked AudioNodeStreams should not run processing. r=karl
--HG--
extra : rebase_source : 122b7c48df42f78e9f7d2b8176ff6bc1ca14ad28
2014-01-15 23:07:30 +13:00
Robert O'Callahan
7497b4412f 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
d4f02e9853 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
5a93b0d89d Bug 952893. Part 1: Block the AudioDestinationNode when it's the only node in the AudioContext. r=padenot,karlt 2014-01-16 00:08:20 +13:00
Rick Eyre
b0655e013f Bug 918289 - Remove video sources from MediaElements in TextTrack tests where they are not needed. r=cpearce 2014-01-27 12:13:16 -05:00
Ryan VanderMeulen
449e0aabd1 Merge b2g-inbound to m-c on a CLOSED TREE. 2014-01-29 15:37:19 -05:00
Ryan VanderMeulen
733397089c Backed out changesets ac4e6f145b9a, 91c572ac5ee1, f501606dc1d3, and 15fc5d1cb10e (bug 952893) for test failures on a CLOSED TREE. 2014-01-29 14:34:08 -05:00
Paul Adenot
4d185812e3 Bug 952893 - Null-check mStream in AudioDestinationNode::SetIsOnlyNodeForContext as it can be called during CC, on a CLOSED TREE.
--HG--
extra : rebase_source : 20893fd4bba9a92c71a3e205e58dc03e6f2958dd
2014-01-29 19:09:39 +01:00
JW Wang
97f13c1a91 Bug 910903 - Stop requesting data when count >= 30 to prevent the main thread from starving the encoding thread. r=jsmith 2014-01-28 13:41:11 +08:00
John Lin
30886a7f72 Bug 963502 - [MediaEncoder] OMXAudioEncoder will be out of input buffers if input segment is too big. r=roc 2014-01-29 08:20:55 -05:00
Rick Eyre
ebe73621c8 Bug 861320 - HTMLMediaElement has no textTracks without a <source>. r=rillian 2014-01-27 12:26:50 -05:00
Paul Adenot
362b4ac9ad Bug 961787 - Buffer more data when using MediaElementAudioSourceNode / mozCaptureStream from a media decoder. r=roc 2014-01-27 19:10:48 +01:00
Ryan VanderMeulen
46f9b852df Merge m-c to inbound. 2014-01-27 15:24:00 -05:00
Jacek Caban
895c82db13 Bug 962354 - Fixed cross compilation on case sensitive OSes.
--HG--
extra : rebase_source : 1fc397a1fc5086b04f79addf6c162f66b845b991
2014-01-27 19:38:47 +01:00
Shelly Lin
d88b0d14f9 Bug 957439 - Do not assert at Pause or Resume on unsupported input stream. r=roc, r=jsmith 2014-01-27 10:33:00 +08:00
Randy Lin
c99b2ced4f Bug 891705 - [MediaEncoder] Implement WebM 1.0 container writer. r=giles, r=gps, r=rillian
This is an integrated patch which includes:
1. Bug 891705: [MediaEncoder] Implement WebM 1.0 container writer. r=giles, r=gps
2. Bug 950567: [MediaEncoder] Phase-in libmkv library. r=giles
3. bug 883749: Implement Vorbis encoding. r=rillian
4. bug 881840: Implement VP8 track encoder. r=rillian
2014-01-15 14:21:14 +08:00
Ryan VanderMeulen
8dc9129e87 Merge m-c to inbound. 2014-01-23 15:58:06 -05:00
John Lin
b7d8e24543 Bug 961925 - Move MOZ_OMX_ENCODER definition from local moz.build to global configuration file. r=gps 2014-01-23 09:32:32 -05:00
Carsten "Tomcat" Book
535888eb97 merge b2g-inbound to mozilla-central 2014-01-23 10:20:58 +01:00
Chris Pearce
4d39e9748c Bug 962354 - Create a threadsafe threadpool singleton for media threads. r=kinetik 2014-01-23 17:21:05 +13:00
Chris Pearce
83582bbc3b Bug 961885 - Rename the enum entries for HTMLTrackElement.readyState, as HTMLTrackElement::ERROR is defined in some other file that can be included in unified builds, causing errors when we add more files to content/media. r=rillian 2014-01-23 17:19:34 +13:00
Ben Kelly
1ac006397f Bug 961441: Use MallocSizeOf to report decoded-audio memory. r=cpearce r=njn 2014-01-22 22:14:45 -05:00
Alfredo Yang
5e22ba77fc Bug 959861 - Testcase for fragmented mp4 playback. r=cpearce 2014-01-22 10:50:23 -05:00
Alfredo Yang
2b2a9d250c Bug 959861 - Check if the media is seekable in MediaOmxReader::ReadMetadata(). r=cdouble 2014-01-22 10:50:23 -05:00
JW Wang
4c6f58a7e3 Bug 916135 - Part 2: Don't call OMXCodec::pause in emulator mode to prevent getting stuck in paused state of OMXCodec. r=cdouble 2013-12-16 16:30:59 +08:00
JW Wang
7d11cdfa16 Bug 916135 - Part 1: Force releasing codec to prevent timeout in waiting for acquiring h264 codec and set the preload attribute to "auto" to prevent timeout in waiting for loadedmetadata event. r=padenot 2014-01-17 13:58:48 +08:00
Edwin Flores
e373a17f4c Bug 953394 - Remove debug code r=doublec 2014-01-22 09:59:54 +13:00
Sotaro Ikeda
11014e1136 Bug 961405 - Change GraphicBufferLocked as to use AtomicRefCountedWithFinalize. r=nical, r=pchang, r=doublec, r=mikeh 2014-01-21 13:53:48 -05:00
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