Commit Graph
1098 Commits
Author SHA1 Message Date
JW Wang dec6aa1fe4 Bug 1184874. Part 2 - add the ability to know which item is popped from the MediaQueue. r=cpearce. 2015-07-23 14:12:28 +08:00
JW Wang c28d2577fb Bug 1185892. Part 3 - replace all calls to MediaDecoder::IsExpectingMoreData() with MediaResource::IsExpectingMoreData. r=jya. 2015-07-22 20:58:00 +08:00
JW Wang 9db7d2a108 Bug 1186299 - Consolidate AudioSink::PrepareToShutdown and AudioSink::Shutdown into one function. r=kinetik. 2015-07-22 18:52:13 +08:00
JW Wang f24487e3f8 Bug 1185416 - Don't stop AudioSink prematurely when decoding is completed. r=kinetik. 2015-07-19 21:25:02 +08:00
JW Wang 00b0bb27e4 Bug 1185407. Part 1 - have AudioSink::Init() return a promise. r=kinetik. 2015-07-22 09:54:06 +08:00
Jean-Yves Avenard fe4ae71664 Bug 1177452: Ensure start time is always calculated on first frame decoding. r=jwwang 2015-07-21 10:14:48 +10:00
JW Wang 650e7c28a0 Bug 1183518. Part 2 - Move update of mIgnoreProgressData to main thread. r=cpearce. 2015-07-20 14:34:18 +08:00
JW Wang 1a3142f692 Bug 1183518. Part 1 - move calls to mResource->SetReadMode out of Mediadecoder::{Start,Stop}ProgressUpdates since they are not related to progress update. r=roc. 2015-07-20 14:29:10 +08:00
Bobby Holley 0d7ca19bc1 Bug 1184634 - Move various includes into the mozilla namespace. r=gerald
I did my a quick best-effort pass to fix up the most egregious ordering
problems. I left some big pre-existing messes alone.
2015-07-16 22:23:18 -07:00
Bobby Holley 8fcb9d8c7b Bug 1184634 - Rename MediaTaskQueue to TaskQueue. r=gerald 2015-07-16 22:23:06 -07:00
Bobby Holley 5d7e8e8407 Bug 1184634 - Rename "TaskQueue()" accessor to "OwnerThread()". r=gerald
Otherwise this name will collide with the rename of MediaTaskQueue to TaskQueue.
It's also a better naming convention, because it generalizes to things that are
owned by an AbstractThread that is not a Task Queue.

We rename to Queue() in TestMozPromise, because that's more accurate.
2015-07-16 22:22:07 -07:00
JW Wang ca1c7e357f Bug 1184010 - Put Mirrors/Canonicals together. r=jya. 2015-07-17 13:00:26 +08:00
JW Wang babb63208e Bug 1184412. Part 2 - remove code that is not used anymore. r=roc. 2015-07-17 10:18:15 +08:00
JW Wang eabdf18864 Bug 1184412. Part 1 - remove dependency on MDSM::OnAudioEndTimeUpdate from DecodedStream. r=roc. 2015-07-17 10:18:04 +08:00
JW Wang ceea71fb59 Bug 1183007. Part 2.5 - don't call AudioEndTime() after mAudioSink becomes null. r=kinetik. 2015-07-16 10:14:42 +08:00
JW Wang fb65108fa6 Bug 1183007. Part 2 - remove dependency on MDSM::OnAudioEndTimeUpdate from AudioSink. r=kinetik. 2015-07-16 10:13:27 +08:00
JW Wang 801c5db392 Bug 1183007. Part 1 - provide a wrapper function so that all read from mAudioEndTime must be through MDSM::AudioEndTime(). r=kinetik. 2015-07-16 10:12:52 +08:00
JW Wang e929b3b15a Bug 1182738. Part 2 - remove MediaDecoderStateMachine::mStreamStartTime. 2015-07-11 17:20:32 +08:00
JW Wang c3aeefe473 Bug 1182738. Part 1 - have DecodedStream::GetPosition() return a position including the start time. 2015-07-11 17:20:28 +08:00
JW Wang 60e0d3fc6c Bug 1182737. Part 3 - make start/stop playback of DecodedStream more consistent with that of AudioSink. 2015-07-11 16:41:39 +08:00
JW Wang 92124fd97d Bug 1182737. Part 2 - remove unnecessary code. 2015-07-05 08:24:09 +08:00
JW Wang 6a86c1d5b6 Bug 1182737. Part 1 - have DecodedStream keep reference to media queues of MDSM so we don't have to pass them everytime. 2015-07-04 09:30:15 +08:00
Matt Woodrow bb6e633231 Bug 1182649 - Log a message when disabling DXVA due to too many invalid frames. r=jrmuizel 2015-07-10 16:49:31 -04:00
JW Wang 7fe8e5be46 Bug 1181504. Part 2 - remove MediaDecoderStateMachine::mAudioStartTime. r=kinetik. 2015-07-09 11:07:57 +08:00
JW Wang 9d31039292 Bug 1181504. Part 1 - add assertions to MediaDecoderStateMachine::GetAudioClock(). r=kinetik. 2015-07-09 11:07:27 +08:00
Robert O'Callahan 8f404b78e8 Bug 1143575. Push all available frames to the compositor. r=cpearce 2015-06-15 15:24:57 +12:00
Robert O'Callahan b52680c1a7 Bug 1143575. Refactor UpdateRenderedVideoFrames to support pushing multiple frames from the VideoQueue to the ImageContainer. r=cpearce 2015-07-03 19:33:56 +12:00
Robert O'Callahan 427694a261 Bug 1143575. Keep currently-rendered frame at the front of the video queue. r=cpearce
This makes normal playback consistent with the buffering state, which already
does this. We'll also need this when we handle multiple images, because then
we need to hande the entire queue of images to the ImageContainer without
pulling any of them off the queue.
2015-07-03 19:29:30 +12:00
Robert O'Callahan bcc8b222b0 Bug 1143575. Rename clock_time to clockTime. r=cpearce 2015-03-30 16:00:57 +13:00
Robert O'Callahan 62c4b2f0c9 Bug 1143575. ScheduleStateMachine when the playback rate changes, so we can update the rendered frame queue. r=cpearce 2015-03-30 15:14:03 +13:00
Robert O'Callahan 94e27890d9 Bug 1143575. Make GetClock return a TimeStamp as well as the stream time. r=cpearce
This makes MediaDecoderStateMachine::GetVideoStreamPosition compute a
time that's more consistent with the audio clock.
2015-03-30 13:40:06 +13:00
Robert O'Callahan 12756ea002 Bug 1143575. Rename AdvanceFrame to UpdateRenderedVideoFrames. r=cpearce 2015-03-30 11:54:58 +13:00
Robert O'Callahan 8e51e47e73 Bug 1143575. Remove Theora-only duplicate frame optimization. r=cpearce 2015-03-28 10:53:37 +13:00
Robert O'Callahan 731383d0a7 Bug 1143575. test_HaveMetadataUnbufferedSeek should not wait for canplay since preload='metadata' elements may not fire canplay. r=cpearce 2015-06-10 15:56:27 +12:00
JW Wang 89c6cdb24d Bug 1179665. Part 4 - remove MDSM::RecreateDecodedStream() which runs on the main thread and doesn't fit into the thread model of MDSM. r=roc. 2015-07-06 11:36:26 +08:00
JW Wang 8e2cd13b77 Bug 1179665. Part 3 - move code about sending stream data into DecodedStream. r=roc. 2015-07-06 11:36:15 +08:00
JW Wang 22cdaf33a9 Bug 1179665. Part 2 - clean up mStreamStartTime since start time of MDSM is now always 0. r=roc. 2015-07-06 11:34:59 +08:00
Sotaro Ikeda 2bdddf0892 Bug 1171257 - Add force decode ahead to MediaFormatReader r=jya,bholley 2015-07-05 09:39:30 -07:00
Bobby Holley 54482e86c6 Bug 1179499 - Dispatch NotifyPlayback{Started,Stopped}. r=jww 2015-07-02 19:26:24 -07:00
Bobby Holley 0b991399de Bug 1178938 - Mirror shutdown-ness from the MDSM to the MD. r=jww 2015-07-02 12:38:44 -07:00
JW Wang 18308e0cdb Bug 1178718. Part 1 - Remove dependency on decoder monitor from DecodedStream. r=roc. 2015-07-02 12:10:10 +08:00
JW Wang c416b75afd Bug 1068970 - Ensure MediaDecoderStateMachine::SendStreamAudio() uses UsecsToFrames correctly. r=roc 2015-07-02 10:37:34 +08:00
JW Wang e6a6faf44d Bug 1179116. Part 3 - remove unused code. r=cpearce. 2015-07-02 10:34:30 +08:00
JW Wang 2df08f670c Bug 1179116. Part 2 - clean up code of MediaDecoderStateMachine::FinishDecodeFirstFrame(). r=cpearce. 2015-07-02 10:34:17 +08:00
JW Wang b19d31db60 Bug 1179116. Part 1 - clean up code of MediaDecoderStateMachine::MaybeStartPlayback(). r=cpearce. 2015-07-02 10:34:05 +08:00
Bobby Holley ab1b700c10 Bug 1178437 - Do the dormant-enabled tracking on the main thread. r=jww,r=jya
This is purely a question of policy, so there's no reason it needs to live on
the off-main-thread decoding machinery.
2015-07-01 18:47:41 -07:00
Bobby Holley 90edc487ae Bug 1178437 - Make mRealTime const and allow it to be accessed on any thread. r=jww 2015-07-01 18:46:59 -07:00
Bobby Holley 33d571ff48 Bug 1178437 - Dispatch SetFragmentEndTime. r=jww 2015-07-01 18:46:58 -07:00
Bobby Holley faabb90319 Bug 1178437 - Assert OnTaskQueue for most of the remaining MDSM methods. r=jww 2015-07-01 18:46:57 -07:00
Bobby Holley 59274bb5f0 Bug 1175768 - Use mirroring for buffered ranges. r=jya 2015-06-27 01:19:13 -07:00