Commit Graph

361 Commits

Author SHA1 Message Date
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Birunthan Mohanathas
c316215317 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj 2015-05-18 13:50:35 -07:00
Jean-Yves Avenard
cb58d9f184 Bug 1163445: Part5. Replace dom::TimeRanges with TimeIntervals object. r=mattwoodrow 2015-05-18 16:15:47 +10:00
Jean-Yves Avenard
e9a1f13c0b Bug 1163485: Part1. Enable MediaFormatReader by default. r=kentuckyfriedtakahe 2015-05-18 15:42:32 +10:00
Jean-Yves Avenard
24b8523293 Bug 1163458: Part1. Move PlatformDecoderModule outside fmp4. r=kentukyfriedtakahe 2015-05-18 15:42:32 +10:00
Jean-Yves Avenard
92fc890f99 Bug 1156708: Part2. Add pref to toggle new code. r=kentuckyfriedtakahe
media.format-reader.mp4=true: Will enable the new format decoder for mp4
media.mediasource.format-reader.mp4=true: Will enable new format decoder for
 mp4 within MSE.
2015-05-18 15:41:22 +10:00
Alfredo Yang
16a90a53b2 Bug 1161984 - Get rid of IsWaitingMediaResources() in MP4Reader. r=jya 2015-05-13 00:02:00 -04:00
Alfredo Yang
42a069e06c Bug 1162867 - Release video buffer when failing to create video frame. r=ajones 2015-05-08 01:21:00 -04:00
Chris Pearce
d540034495 Bug 1163814 - Only check if we can create decoder in MP4Decoder::CanCreate*Decoder() on Windows. r=mattwoodrow 2015-05-15 03:27:00 +02:00
Karl Tomlinson
ed95ca7a9e bug 1162364 report telemetry on WMFMediaDataDecoder errors r=cpearce,f=vladan,bsmedberg 2015-05-13 17:54:31 +12:00
Karl Tomlinson
13d1283aa4 bug 1162364 detect and abort MF_E_TRANSFORM_STREAM_CHANGE infinite loops r=cpearce 2015-05-13 16:36:45 +12:00
Eric Rahm
485ac2e37a Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00
Jean-Yves Avenard
7dd12af2e0 Bug 1159027: Part5. Ensure we have up to date index when calculating offsets. r=cpearce 2015-05-11 20:57:46 +10:00
Jean-Yves Avenard
6f5d1efc36 Bug 1159027: Part3. Add MP4Demuxer object. r=cpearce 2015-05-11 20:57:20 +10:00
Matt Woodrow
a11787749a Bug 1158089 - Remove LAYERS_D3D10 enum value since it's unused. r=Bas 2015-05-11 16:22:51 +12:00
Matt Woodrow
2357174f30 Bug 1158089 - Fall back to d3d9 DXVA if d3d11 initialization fails. r=cpearce 2015-05-11 16:21:31 +12:00
Chris Pearce
ec67288f9d Bug 1160321 - Test whether we can create H.264/AAC decoders before we report we support them. r=mattwoodrow 2015-05-08 13:36:32 +12:00
Karl Tomlinson
c090c45212 bug 1161903 ensure pending DrainComplete is not run after Flush() r=cpearce
Using a Decode task already in the queue had the potential for out of order
flushing.

This is similar in behavior to the implementation prior to f550eb7809b6, but
keeps mDecoder->Flush() on the platform decoder's task queue, in the hope of
avoiding any ordering problems from calling in the middle of decoding input,
or races with MFTDecoder::mDiscontinuity.

The contract is not clear on whether DrainComplete() should be run during
Flush(), but I've kept it in this version.
2015-05-07 14:15:24 +12:00
Karl Tomlinson
63c5e81af1 bug 1161903 reset mDrainComplete after Flush() as DrainComplete() may be called before Flush() r=mattwoodrow
DrainComplete() can also be called during Flush().
2015-05-06 11:40:58 +12:00
Karl Tomlinson
afba938cae bug 1161892 use separate thread pool for platform decoder task queues r=bholley
so that platform decoder tasks will run when their readers wait and block
their thread pool.
2015-05-07 16:01:43 +12:00
Karl Tomlinson
3b4861b3b4 bug 1161402 assert active proxy if callback is called r=ajones 2015-05-06 17:09:54 +12:00
Blake Wu
950ef8801f Bug 1161444 - Change MP4Reader's IsMediaSeekable() to only check with Demuxer. r=cpearce 2015-05-06 11:16:06 +08:00
Karl Tomlinson
10abc8e204 bug 1161402 more thread doc for MediaDataDecoder use from IsVideoAccelerated() r=cpearce 2015-05-06 16:43:52 +12:00
Karl Tomlinson
4674ce9ac9 bug 1161402 assert there is no mActiveProxy during SharedDecoderManager::Shutdown() r=cpearce 2015-05-05 19:11:55 +12:00
Karl Tomlinson
d6de54d98e bug 1161402 assert that public methods are not called after shutdown r=cpearce
Bug 1141241 suggests that this may be happening.
2015-05-05 18:53:13 +12:00
Karl Tomlinson
263fdd2005 bug 1161402 assert that some public methods are called on reader task queue r=cpearce
No assert is added for Init() and Shutdown() because SharedDecoderProxy does
not set the MediaDataDecoderCallback in these methods, and
IsVideoAccelerated() calls these from the main thread.
2015-05-04 11:54:24 +12:00
Karl Tomlinson
dcc297ded4 bug 1161402 add MediaDataDecoderCallback::OnReaderTaskQueue() r=cpearce 2015-05-01 12:03:32 +12:00
Karl Tomlinson
25daca3269 bug 1161402 remove async MediaDataDecoder::Drain() from the list of blocking examples r=cpearce
Async since bug 1039128.
2015-05-04 09:54:17 +12:00
Karl Tomlinson
6da9ac67b0 bug 1161402 document that MediaDataDecoder::IsHardwareAccelerated() is called from the state machine task queue r=cpearce 2015-05-04 09:53:04 +12:00
Phil Ringnalda
25e5d3ddc4 Back out dbb002daa455 (bug 1160321) for assertion failures 2015-05-05 20:04:39 -07:00
Jean-Yves Avenard
9c7b67e386 Bug 1161443: Always read SDM::mWaitForInternalDrain while holding monitor. r=gerald 2015-05-06 09:58:09 +10:00
Jean-Yves Avenard
8b0b960e01 Bug 1161416: Don't wait for a drain complete that will never happen. r=cpearce 2015-05-06 09:58:09 +10:00
Jean-Yves Avenard
ac74263022 Bug 1154896: Part2. Ignore kVTDecodeInfo_FrameDropped flag. r=rillian
It appears that on some machine, all video frames are marked with kVTDecodeInfo_FrameDropped even when valid. We just can't rely on it.
2015-05-06 09:58:09 +10:00
Jean-Yves Avenard
a3140613cb Bug 1154896: Report decoding errors back to MP4Reader. r=rillian 2015-05-06 09:58:09 +10:00
Chris Pearce
b8de3abe20 Bug 1160321 - Test whether we can create H.264/AAC decoders before we report we support them. r=mattwoodrow 2015-05-06 11:40:45 +12:00
Alfredo Yang
f239f95dc1 Bug 1127656 - Remove class inheritance hierarchy from gonk PlatformDeocdeModule. r=ajones 2015-05-04 19:34:00 +02:00
Blake Wu
afaaf613b7 Bug 1153895 - Support audio AMR-WB for Gonk in MP4Reader. r=jya 2015-05-04 10:11:29 +08:00
Alfredo Yang
cde38c1b43 Bug 1153149 - Remove IsWaitingMediaResources() from PlatformDecoderModule. r=jya 2015-05-04 03:07:00 -04:00
Alfredo Yang
8692261871 Bug 1154512 - Remove MediaTaskQueue::SyncDispatch() from PDM. r=cpearce 2015-05-04 03:04:00 -04:00
Jean-Yves Avenard
fd7ab059d9 Bug 1159496: Ensure decoders are properly shutdown. r=alfredo 2015-05-04 21:16:48 +10:00
Ryan VanderMeulen
6ffda2e313 Merge m-c to b2g-inbound. a=merge 2015-05-01 12:59:30 -04:00
Jean-Yves Avenard
51142a971d Bug 1157203: Fix SharedDecoderProxy::IsWaitingMediaResources( . r=kentuckyfriedtakahe
Don't wait until the decoders has received data to check if it's ready or not.
2015-05-01 15:27:29 +10:00
Jean-Yves Avenard
63b6293bbe Bug 1156689: Part10. Remove static_cast on TrackInfo objects. r=cpearce 2015-05-01 15:26:51 +10:00
Jean-Yves Avenard
8b4c79cc59 Bug 1156689: Part1. Remove mp4_demuxer::TrackType. r=cpearce 2015-05-01 15:26:50 +10:00
Blake Wu
b51fc34871 Bug 1159509 - Support audio AMR-NB for Gonk in MP4Reader. r=jya 2015-04-30 22:11:13 +08:00
Karl Tomlinson
86726091ec bug 1159456 finish and exit from Flush() even if MFTManager rejects sample r=cpearce 2015-04-29 04:36:13 +12:00
Blake Wu
b930aff62b Bug 1147304 - Send codec specific data for MPEG4 codec type only. r=jya 2015-04-28 16:08:00 +08:00
Matt Woodrow
43ec2624bf Bug 1151611 - Null check PDM::Create to fix bustage. CLOSED TREE 2015-04-28 15:58:13 +12:00
Matt Woodrow
f458612d3a Bug 1151611 - Expose DXVA status in about:support. r=cpearce,felipe 2015-04-28 15:07:22 +12:00
Blake Wu
2866b0eb2b Bug 1146729 - [FFOS] Enable MP4Reader for MSE and local playback. r=cpearce. r=jwwang 2015-04-23 20:40:32 +08:00