JW Wang
6e296d2756
Bug 1186299 - Consolidate AudioSink::PrepareToShutdown and AudioSink::Shutdown into one function. r=kinetik.
2015-07-22 18:52:13 +08:00
JW Wang
252412fa5d
Bug 1185416 - Don't stop AudioSink prematurely when decoding is completed. r=kinetik.
2015-07-19 21:25:02 +08:00
JW Wang
584f4131cd
Bug 1185407. Part 1 - have AudioSink::Init() return a promise. r=kinetik.
2015-07-22 09:54:06 +08:00
Jean-Yves Avenard
079afae27a
Bug 1177452: Ensure start time is always calculated on first frame decoding. r=jwwang
2015-07-21 10:14:48 +10:00
JW Wang
2a7a82a4ed
Bug 1183518. Part 2 - Move update of mIgnoreProgressData to main thread. r=cpearce.
2015-07-20 14:34:18 +08:00
JW Wang
0440c725fd
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
04eaf4c167
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
997543e6ba
Bug 1184634
- Rename MediaTaskQueue to TaskQueue. r=gerald
2015-07-16 22:23:06 -07:00
Bobby Holley
78001ffc43
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
ca9b1829a7
Bug 1184010 - Put Mirrors/Canonicals together. r=jya.
2015-07-17 13:00:26 +08:00
JW Wang
3b86e653ba
Bug 1184412. Part 2 - remove code that is not used anymore. r=roc.
2015-07-17 10:18:15 +08:00
JW Wang
aeeb938a34
Bug 1184412. Part 1 - remove dependency on MDSM::OnAudioEndTimeUpdate from DecodedStream. r=roc.
2015-07-17 10:18:04 +08:00
JW Wang
74380052df
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
b9ea1d076e
Bug 1183007. Part 2 - remove dependency on MDSM::OnAudioEndTimeUpdate from AudioSink. r=kinetik.
2015-07-16 10:13:27 +08:00
JW Wang
0f6631a522
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
201b1cf54b
Bug 1182738. Part 2 - remove MediaDecoderStateMachine::mStreamStartTime.
2015-07-11 17:20:32 +08:00
JW Wang
21cb8f8904
Bug 1182738. Part 1 - have DecodedStream::GetPosition() return a position including the start time.
2015-07-11 17:20:28 +08:00
JW Wang
0058bf1bad
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
5d896370ea
Bug 1182737
. Part 2 - remove unnecessary code.
2015-07-05 08:24:09 +08:00
JW Wang
ffcd7c5182
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
10e8adb3ae
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
e1c3e55cb9
Bug 1181504. Part 2 - remove MediaDecoderStateMachine::mAudioStartTime. r=kinetik.
2015-07-09 11:07:57 +08:00
JW Wang
9f88e8ea87
Bug 1181504. Part 1 - add assertions to MediaDecoderStateMachine::GetAudioClock(). r=kinetik.
2015-07-09 11:07:27 +08:00
Robert O'Callahan
7570395829
Bug 1143575. Push all available frames to the compositor. r=cpearce
...
--HG--
extra : commitid : 9fbdKi1AxZS
extra : rebase_source : c617ba4e1fbc0a5891ea2b5300107a43d7c990ab
2015-06-15 15:24:57 +12:00
Robert O'Callahan
a24f6175bf
Bug 1143575. Refactor UpdateRenderedVideoFrames to support pushing multiple frames from the VideoQueue to the ImageContainer. r=cpearce
...
--HG--
extra : commitid : LPVtm9Br1v6
extra : rebase_source : 6772fe21e7bc1c875a4c88eb2d2debf65fb6d2c6
2015-07-03 19:33:56 +12:00
Robert O'Callahan
b5074af667
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.
--HG--
extra : commitid : B1zt05nhVn6
extra : rebase_source : af8a411f5f9be9d3a8c15633b2c4ad446be6d13f
2015-07-03 19:29:30 +12:00
Robert O'Callahan
245dd9a984
Bug 1143575. Rename clock_time to clockTime. r=cpearce
...
--HG--
extra : commitid : EsCpdzrtuis
extra : rebase_source : 9a0bcb04adea09f78b22721f6d13477974ff9a60
2015-03-30 16:00:57 +13:00
Robert O'Callahan
9194bf3d65
Bug 1143575. ScheduleStateMachine when the playback rate changes, so we can update the rendered frame queue. r=cpearce
...
--HG--
extra : commitid : 7gJKH1QbPSm
extra : rebase_source : db94d541ad1e55fe44f59b85e1b01ec1b1dd49fd
2015-03-30 15:14:03 +13:00
Robert O'Callahan
f0ee5f8918
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.
--HG--
extra : commitid : JWQlELWFpTu
extra : rebase_source : 7c472cfd5188f5a948af16b734c25ddeed3651f8
2015-03-30 13:40:06 +13:00
Robert O'Callahan
52c7e44c24
Bug 1143575. Rename AdvanceFrame to UpdateRenderedVideoFrames. r=cpearce
...
--HG--
extra : commitid : K6557ZbFFzs
extra : rebase_source : 3409058bbbb2ef281ea943d4b92f348a5e7b8e2b
2015-03-30 11:54:58 +13:00
Robert O'Callahan
c3252e17f5
Bug 1143575. Remove Theora-only duplicate frame optimization. r=cpearce
...
--HG--
extra : commitid : 6kaBElgTmcX
extra : rebase_source : 12941907af16da54a4db81ff82892bedc0b2653f
2015-03-28 10:53:37 +13:00
Robert O'Callahan
c50869770d
Bug 1143575. test_HaveMetadataUnbufferedSeek should not wait for canplay since preload='metadata' elements may not fire canplay. r=cpearce
...
--HG--
extra : commitid : iPriL1BPFj
extra : rebase_source : 80f91242684dd828cf04024248380fe29ba27665
2015-06-10 15:56:27 +12:00
JW Wang
47ae1e0f35
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
96f57cac6e
Bug 1179665. Part 3 - move code about sending stream data into DecodedStream. r=roc.
2015-07-06 11:36:15 +08:00
JW Wang
6f682ecb0d
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
05e6073126
Bug 1171257 - Add force decode ahead to MediaFormatReader r=jya,bholley
2015-07-05 09:39:30 -07:00
Bobby Holley
cfc2efb3e7
Bug 1179499 - Dispatch NotifyPlayback{Started,Stopped}. r=jww
2015-07-02 19:26:24 -07:00
Bobby Holley
7ff89b25af
Bug 1178938 - Mirror shutdown-ness from the MDSM to the MD. r=jww
2015-07-02 12:38:44 -07:00
JW Wang
aecd09b53a
Bug 1178718. Part 1 - Remove dependency on decoder monitor from DecodedStream. r=roc.
2015-07-02 12:10:10 +08:00
JW Wang
df31030460
Bug 1068970 - Ensure MediaDecoderStateMachine::SendStreamAudio() uses UsecsToFrames correctly. r=roc
2015-07-02 10:37:34 +08:00
JW Wang
9357c757c0
Bug 1179116. Part 3 - remove unused code. r=cpearce.
2015-07-02 10:34:30 +08:00
JW Wang
f5b2f59f6b
Bug 1179116. Part 2 - clean up code of MediaDecoderStateMachine::FinishDecodeFirstFrame(). r=cpearce.
2015-07-02 10:34:17 +08:00
JW Wang
293366faa9
Bug 1179116. Part 1 - clean up code of MediaDecoderStateMachine::MaybeStartPlayback(). r=cpearce.
2015-07-02 10:34:05 +08:00
Bobby Holley
2324e58fb3
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
f3eac770a7
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
c1640b0839
Bug 1178437 - Dispatch SetFragmentEndTime. r=jww
2015-07-01 18:46:58 -07:00
Bobby Holley
0f58065114
Bug 1178437 - Assert OnTaskQueue for most of the remaining MDSM methods. r=jww
2015-07-01 18:46:57 -07:00
Bobby Holley
a80e87862b
Bug 1175768 - Use mirroring for buffered ranges. r=jya
2015-06-27 01:19:13 -07:00
Bobby Holley
f25ea07acc
Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
...
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-27 01:19:10 -07:00
Bobby Holley
3494aeaedb
Bug 1175768 - Make the logic in MDSM::NotifyDataArrived apply to mObservedDuration. r=jya
...
With this change, we don't need to condition this work on infinite streams.
2015-06-27 01:19:06 -07:00