Commit Graph

5087 Commits

Author SHA1 Message Date
Guang-De Lin
3cae5cd623 Bug 1154213 - Handle timestamps of video/webm vorbis track encoding. r=mreavy, r=rjesup 2015-11-18 10:51:07 +08:00
Birunthan Mohanathas
a2f3b6dcef Bug 1217307 - Remove some unnecessary null checks in rest of dom/. r=njn 2015-11-19 09:13:49 +02:00
Eitan Isaacson
80ea21c78d Bug 1225352 - Check that mSpeechQueue is not empty before referencing first element. r=smaug 2015-11-18 21:54:32 -08:00
Phil Ringnalda
08a2aaa363 Bug 1189784: Disable webrtc test on Android 4.3 debug - emulator too slow
CLOSED TREE
2015-11-18 19:09:47 -08:00
Makoto Kato
38ce257bd5 Bug 1202735 - Add nsIObserver to avoid warning. r=eeejay 2015-11-19 10:10:23 +09:00
Jean-Yves Avenard
ca2e9753ac Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
Following bug 1209410, it was no longer used.
2015-11-19 10:40:33 +11:00
Jean-Yves Avenard
d87ff925cb Bug 1223333: [ffmpeg] Do not rely on library name to determine the libavcodec's version. r=kentuckyfriedtakahe
Also uses portable way to dynamically open libraries.
2015-11-19 10:32:21 +11:00
Randell Jesup
0a99fea175 Bug 1189784: Disable webrtc test on Android 4.3 debug - emulator too slow rs=bustage
on a CLOSED TREE
2015-11-18 17:29:14 -05:00
Randell Jesup
53349d20c9 Bug 1225729: Whitelist specific bad RTCP timestamp value r=drno 2015-11-18 15:03:29 -05:00
Randell Jesup
d32ed4e100 Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons
Landing as one rolled-up patch to avoid breaking regression tests, and in
keeping with previous WebRTC imports.  Broken out parts that needed review
are on the bug.
2015-11-18 15:03:25 -05:00
Randell Jesup
c45f35255b Bug 1218799: Shutdown MediaManager engines from the MediaManager thread r=jib 2015-11-18 15:03:13 -05:00
Phil Ringnalda
88de6ddd33 Merge m-c to m-i 2015-11-17 20:33:07 -08:00
Phil Ringnalda
859fb1b648 Bug 1223394 - Reenable webspeech synth tests on Mulet now that it has audio support, a=philor 2015-11-17 19:30:54 -08:00
Karl Tomlinson
baa74b2355 bug 1225649 use CreatePlanarYCbCrImage() now that CreateImage() is gone r=dvander
See 57c5d2b88d26 and 1274f88a8e35.
2015-11-18 12:40:05 +13:00
Gregory Arndt
30cf358c50 Bug 1223394 - Use desktop-test image for Mulet mochitests to fix audio issues, r=aus, a=philor 2015-11-17 14:40:31 -06:00
Karl Tomlinson
ad595a58a2 bug 1222202 implement query interface to nsIMemoryReporter r=bz 2015-11-16 13:08:21 +13:00
JW Wang
dbf9e6cd6d Bug 1219142. Part 2 - remove unused code. r=jya. 2015-11-18 09:01:01 +08:00
JW Wang
ca20668867 Bug 1219142. Part 1 - add AbstractMediaDecoder::DataArrivedEvent() to publish events. r=jya. 2015-11-18 09:00:56 +08:00
Karl Tomlinson
a1ddc41ae8 bug 1225003 test no crashes in decodeAudioData() and offline context memory reporting r=erahm 2015-11-18 10:52:35 +13:00
Karl Tomlinson
ef06316a55 bug 1225003 null-check mBuffer in SizeOfExcludingThis() r=padenot 2015-11-17 08:58:48 +13:00
Karl Tomlinson
87114f605c bug 1224022 produce memory report after processing main thread messages r=padenot
which may add new streams.
2015-11-13 18:58:16 +13:00
Eugen Sawin
50957b1e3a Bug 1221991 - [4.2] Add AndroidDecoderModule logging. r=snorp 2015-11-17 20:50:29 +01:00
Eugen Sawin
803336e4c9 Bug 1221991 - [3.1] Manage module state via accessor functions. r=snorp 2015-11-17 20:50:29 +01:00
Eugen Sawin
0e89120ad2 Bug 1221991 - [2.3] Split DecoderLoop into functions, simplify decoding state and clean up style. r=snorp 2015-11-17 20:50:28 +01:00
Eugen Sawin
bddda7c447 Bug 1221991 - [1.3] Make SupportsMimeType a const function. r=jya 2015-11-17 20:50:28 +01:00
Jean-Yves Avenard
f545557d21 Bug 1222201: Only use container calculated dimensions. r=cpearce 2015-11-17 21:30:46 +11:00
Nils Ohlmeier [:drno]
9575c33670 Bug 1221837 - Accept hard coded codec numbers without rtpmaps. r=bwc 2015-11-15 23:26:46 -08:00
David Anderson
2cadcf2890 Remove Gonk usage of ImageContainer::CreateImage. (bug 1222910, r=sotaro) 2015-11-17 00:09:01 -08:00
David Anderson
3b2a1618b6 Decouple SharedRGBImage and PlanarYCbCrImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:01 -08:00
David Anderson
541d0e4d7d Decouple MacIOSurfaceImage from ImageContainer. (bug 1222910, r=mstange) 2015-11-17 00:09:00 -08:00
David Anderson
0b4676f5e2 Decouple SurfaceTextureImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
6f1947dc8d Decouple EGLImageImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
625f310506 Decouple D3D9SurfaceImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
dc3cb48a73 Decouple D3D11ShareHandleImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
f64d767dfe Decouple CairoImage from ImageContainer. (bug 1222910, r=roc) 2015-11-17 00:09:00 -08:00
Gerald Squelart
66f629325e Bug 1220326 - Wipe stack after Mac node id generation. r=jrmuizel
Implemented GetStackAfterCurrentFrame() for Mac, by finding which Mach VM
region contains the stack, then erasing everything between the start of the
region (lowest possible stack address) and the current stack frame pointer.
2015-11-16 11:51:00 -05:00
Andrea Marchesini
defe60ba8f Bug 1225146 - 'explicit' in some Gonk CTOR code, r=bkelly 2015-11-16 15:48:31 +00:00
Phil Ringnalda
3d37af912f Merge m-c to m-i 2015-11-15 19:16:20 -08:00
Phil Ringnalda
84b609a1bd Bug 1223394 - skip more failing webspeech tests on Mulet, a=tlast 2015-11-15 19:11:14 -08:00
Phil Ringnalda
abbe4bc961 Bug 1223394 - skip failing webspeech tests on Mulet, a=relief 2015-11-15 17:52:34 -08:00
Phil Ringnalda
14cfb4933f Bug 1223394 - remove an odd extra space, a=nnoyance 2015-11-15 17:50:41 -08:00
Phil Ringnalda
3d6a8942dd Bug 1223394 - skip dom/media/tests/mochitest/ipc/test_ipc.html on Mulet, where it both fails and behaves in a deeply weird way, a=horror 2015-11-15 17:46:55 -08:00
JW Wang
3dbaca5456 Bug 1221009. Part 3 - add assertions to functions that shouldn't be called after shutdown. r=roc. 2015-11-16 07:51:22 +08:00
JW Wang
a99bdedf26 Bug 1221009. Part 2 - remove unused code. r=roc. 2015-11-16 07:51:03 +08:00
JW Wang
987294af08 Bug 1221009. Part 1 - add a class to forward notifications from MediaResource to MediaDecoder. r=roc. 2015-11-16 07:50:55 +08:00
Phil Ringnalda
bf6b0c0919 Merge m-i to m-c, a=merge 2015-11-14 13:22:10 -08:00
Phil Ringnalda
ec3cb3e0c6 Back out changeset 202b199b9fcf (bug 1223394) since it didn't actually disable the permaorange tests, a=nnoyance 2015-11-14 13:07:10 -08:00
Phil Ringnalda
02699453d1 Merge m-c to m-i
CLOSED TREE
2015-11-13 21:10:49 -08:00
Robert O'Callahan
f5c152dfb5 Bug 1198663. Skip null Images in VideoSink::RenderVideoFrames instead of treating them as valid. r=jwwang 2015-11-12 09:59:04 +13:00
Gregor Wagner
0fa3890c24 Bug 1223394 - disable permaorange webrtc tests on Mulet, a=verylargeorange 2015-11-11 02:18:00 -08:00
Randell Jesup
9644dd13fd Bug 1224442: null-check GMP Parent Shmem messages from the Child to handle messages after shutdown r=cpearce 2015-11-13 01:08:01 -05:00
Kyle Huey
d9adfa1d30 Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Karl Tomlinson
fffc0237ee bug 1223520 avoid leaking NaNs to and from the otherwise unused imaginary frequency components r=padenot
The zeroth component is not removed from the BufferComplexMultiply() call so
as not to disrupt alignment.

The mOutputBuffer[halfSize].i assertions are removed because the code no
longer uses these components, and so their values are irrelevant.
2015-11-11 20:34:41 +13:00
Karl Tomlinson
cd9005adaa test for bug 1223520 r=padenot 2015-11-12 12:16:32 +13:00
Karl Tomlinson
92711a7cb2 bug 1224102 reduce the size of the final FFT convolution stage if possible r=padenot 2015-11-12 17:34:13 +13:00
sajitk
16f44d3d8d Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
sajitk
6208e4b76c Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn 2015-11-15 14:48:08 +01:00
JW Wang
8021ea75bb Bug 1223599 - Remove the throttling argument from AbstractMediaDecoder::NotifyDataArrived(). r=jya. 2015-11-11 17:59:16 +08:00
Makoto Kato
e11f0b3b51 Bug 1223153 - Create new thread to enumerate voice items. r=eeejay 2015-11-12 18:24:12 +09:00
Wes Kocher
798325cd22 Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE 2015-11-11 09:36:56 -08:00
sajitk
ac8ad4ec76 Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-11 06:52:00 +01:00
Jean-Yves Avenard
36a6316a64 Bug 1221825: P2. Ensure frame memory allocation succeeded. r=cpearce 2015-11-12 01:10:37 +11:00
Jean-Yves Avenard
a3704eb891 Bug 1221825: Fix logging arguments. r=cpearce 2015-11-12 01:10:36 +11:00
Dan Minor
411bb6d7d6 Bug 1171436 - support at least 8192 elements for PeriodicWave r=padenot
This increases the maximum PeriodicWave size to 8192 and adds an optimization
to use 8192 elements only in the case where we receive more than 4096
components. In accordance with the spec, a maximum number of components is no
longer enforced.
2015-10-27 22:05:47 -04:00
Jean-Yves Avenard
c1cd8aa37c Bug 1220033: Fix HTMLMediaElement::seekable attribute for Mediasource. r=gerald
Interval is to start from 0 when duration is +infinity
2015-11-11 21:24:01 +11:00
Andreas Pehrson
2a3bc5d1c1 Bug 1223655 - Only check for track end if track exists in MediaEngineDefaultAudioSource. r=jesup 2015-11-11 12:18:51 +08:00
JW Wang
2b9c4e6d5c Bug 1220558. Part 2 - remove unused members. r=jya. 2015-11-11 07:43:41 +08:00
JW Wang
53e4b15b42 Bug 1220558. Part 1 - remove unused arguments from MediaDecoderReader::DispatchNotifyDataArrived() and its callees/callers. r=jya. 2015-11-11 07:43:38 +08:00
Sotaro Ikeda
d3368d5041 Bug 1214997 - Use MozPromise in MediaCodecProxy and OMXCodecProxy r=bwu 2015-11-10 05:42:42 -08:00
Andreas Pehrson
88324bcf6f Bug 1219711 - Lower AudioStreamAnalyser's smoothingTimeConstant for speedier tests. r=padenot 2015-11-10 17:18:18 +08:00
Andreas Pehrson
ec662f37c1 Bug 1219711 - Don't rely on timer interval in fake audio track. r=jesup
Fake audio tracks would rely on an nsITimer firing every 10ms, and on
each fire they would append 10ms of data.

This didn't work in practice as the intervals observed were most of the
time larger than 10ms, e.g.:
> Last Notify() 12,042ms ago
> Last Notify() 11,327ms ago
> Last Notify() 11,097ms ago
> Last Notify() 11,601ms ago
> Last Notify() 11,694ms ago
> Last Notify() 11,593ms ago
> Last Notify() 11,698ms ago
> Last Notify() 12,492ms ago

This patch first appends a slight buffer to the fake audio track to have
some resilience against underruns when the timer exceeds its interval
like this. It also measures the actual time between two Notify() calls
so that the exact number of consumed audio samples can be appended back.

Should we be under such heavy CPU load that the MediaManager thread is
starved out, we'll print a warning and avoid appending exceedingly much
data by appending only the size of the initial buffer.
2015-11-09 23:17:42 +08:00
Andreas Pehrson
1e78784f75 Bug 1219711 - Remove fakeness from webrtc tests. r=jib 2015-11-09 23:17:42 +08:00
Andreas Pehrson
6c7833bebf Bug 1219711 - Let fake stream take precedence in testing. r=jib
TL;DR requesting a fake stream always gives you a fake stream. No magic.

The gUMConstraint `fake: true` should take precedence and if set always
use MediaEngineDefault.
If it is set the state of `faketracks` is passed
on to MediaEngineDefault.
If it is not set, but (any of) audio/video loopback devices are set, the
device enumeration will filter out only those.
2015-11-09 23:17:42 +08:00
Andreas Pehrson
c9661d9a29 Bug 1219711 - Add mochitest for track disabling over a peer connection. r=jib 2015-11-10 17:17:13 +08:00
Andreas Pehrson
378e2b660c Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib 2015-11-09 23:17:41 +08:00
Makoto Kato
c01703c148 Bug 1221520 - nullcheck for mSpeechdClient. r=eeejay 2015-11-10 19:14:02 +09:00
John Lin
300de1cf25 Bug 1222919 - Make ProcessFlush() virtual. r=jya 2015-11-09 18:59:00 +01:00
Alastor Wu
af56ef608c Bug 1218593 - switch back to the AudioCallbackDriver when there is new audio again. r=padenot 2015-11-09 16:32:00 +08:00
Kelly Davis
9101f95751 Bug 1218337 - Part 1 of 1: Introduced permission 'speech-recognition' and used it in place of the app-check. r=smaug 2015-11-06 09:59:00 +01:00
John Lin
c931bd1038 Bug 1216895 - assert that decoder methods are run on correct thread. r=jya 2015-11-09 18:58:00 +01:00
Wes Kocher
415f6a45c6 Merge m-c to inbound, a=merge 2015-11-09 17:33:59 -08:00
Wes Kocher
f3da035e9b Merge b2ginbound to central, a=merge 2015-11-09 17:31:35 -08:00
Bill McCloskey
c98949c21f Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats) 2015-11-09 10:21:11 -08:00
Alastor Wu
3d60b9c567 Bug 1220320 - implement the nsSupportsWeakReference. r=baku 2015-11-06 16:29:03 +08:00
Carsten "Tomcat" Book
b99a10013e merge mozilla-inbound to mozilla-central a=merge 2015-11-09 14:55:30 +01:00
Wes Kocher
323f28486f Merge m-c to b2ginbound, a=merge 2015-11-06 15:14:26 -08:00
Wes Kocher
8012c27726 Backed out 5 changesets (bug 1219711) for frequent android m(9) failures a=bustage
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)
2015-11-06 11:14:11 -08:00
Gregor Wagner
81a213c732 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01:00
Benjamin Chen
fe6cd8d3b1 Bug 1219300 - Add mutex to protect the |result| because the variable will be access by multiple threads at the same time. r=cpearce 2015-11-06 15:28:22 +08:00
hsteinbr
36c7724428 Bug 1211656 - GUM Constraints for screen sharing don't affect stream resolution. r=jib 2015-11-04 19:06:00 +01:00
Andreas Pehrson
6678c5e754 Bug 1219711 - Remove fakeness from webrtc tests. r=jib 2015-11-05 17:15:51 +08:00
Andreas Pehrson
6695aebdce Bug 1219711 - Let fake stream take precedence in testing. r=jib
TL;DR requesting a fake stream always gives you a fake stream. No magic.

The gUMConstraint `fake: true` should take precedence and if set always
use MediaEngineDefault.
If it is set the state of `faketracks` is passed
on to MediaEngineDefault.
If it is not set, but (any of) audio/video loopback devices are set, the
device enumeration will filter out only those.
2015-11-05 17:15:51 +08:00
Andreas Pehrson
29bdd03a43 Bug 1219711 - Add mochitest for track disabling over a peer connection. r=jib 2015-11-05 17:15:51 +08:00
Andreas Pehrson
207c4f7cf6 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib 2015-11-05 17:15:50 +08:00
Mike Hommey
1db89374d8 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Ralph Giles
699617f3bc Bug 1222537 - Update vtt.js to v0.12.1. r=kinetik
Upstream release from March.
2015-11-06 10:46:44 -08:00
Ralph Giles
0d8e544970 Bug 1222537 - Allow passing a commit to update-webvtt. r=kinetik
This simplifies updating to a specific revision instead of
always defaulting to master. e.g.

  npm install
  node update-webvtt.js -d ~/vtt.js -r v0.12.1

Note the script will clobber the given repo's HEAD, checking
out the rev (or master) instead.
2015-11-06 10:46:16 -08:00
Ralph Giles
7fab7afd94 Bug 1222145 - Bump maximum video size to 8k. r=jya
YouTube and WebVR have been experimenting with 8k video for
immersive applications, where you need more than 4k resolution
even on a mid-resolution display because you're not looking
at the whole scene simultaneously.

We were rejecting video frames larger than 4000x3000,
or 16k in any one dimension, to limit resource exhaustion
attacks. Bump this to accept 8k video now that there's
a demand for it.
2015-11-05 13:45:00 -08:00
Chris Pearce
a7066108c2 Bug 1222888 - Implement MediaKeySession callable value. r=gerald 2015-11-10 07:59:28 +13:00
Chris Pearce
0ed0dd47c2 Bug 1222888 - Add mochitest for MediaKeySession 'callable' value. r=gerald 2015-11-10 07:59:22 +13:00