Commit Graph
1183 Commits
Author SHA1 Message Date
JW Wang 8e957c1b3c Bug 1265634. Part 3 - constify some functions. r=jya.
MozReview-Commit-ID: Lq0vZoeaK1l
2016-04-20 16:02:37 +08:00
JW Wang 43722535fb Bug 1265634. Part 2 - rename mReaderWrapper for less wording. r=kaku.
MozReview-Commit-ID: FRjCQMqoAlR
2016-04-20 14:45:41 +08:00
JW Wang fa8484ebc9 Bug 1265634. Part 1 - add more proxy functions to MediaDecoderReaderWrapper and remove unused members from MDSM. r=kaku.
MozReview-Commit-ID: DpccSccPrxU
2016-04-20 14:45:40 +08:00
Carsten "Tomcat" Book b14e8aa268 Backed out changeset b15c10c42148 (bug 1264199) for android crashes 2016-04-18 14:22:19 +02:00
Jean-Yves Avenard 9f2feb46ae Bug 1264199: P1. Perform audio conversion in the reader's taskqueue and ahead of use. r=kinetik
This will allow to easily detect audio configuration change prior immediate playback.

MozReview-Commit-ID: IwDUGOd17ND
2016-04-13 17:17:54 +10:00
Kaku Kuo 2bb060f426 Bug 1261020 - part 2 - modify MDSM to adopt SeekTask; r=jwwang
MozReview-Commit-ID: IE9quRehVEg
2016-04-07 14:30:39 +08:00
JW Wang ef5a7e2a96 Bug 1259473 - per comment 14, move actions involving |this| to Init() from the constructor. r=jya. 2016-04-01 23:10:44 +08:00
Jean-Yves Avenard 7fc6840baa Bug 1248861: P3. Use AlignedAudioBuffer object with AudioData. r=cpearce
MozReview-Commit-ID: 7HiF4eHlRwB
2016-04-03 23:09:45 +10:00
Kaku Kuo cfe5934c2f Bug 1261312 - Make sure that audio/video decode task is filed again. r=jwwang
The idea is that we can call Ensure{Audio/Video}DecodeTaskQueued() directly
since the conditions in the DispatchDecodeTasksIfNeeded() have already been
checked.

MozReview-Commit-ID: 9xataQiuSIx
2016-04-07 15:18:17 +08:00
Andreas Pehrson a4bec845a0 Bug 1208371 - Hook up DecodedStream with PrincipalHandle. r=mt,jwwang
MozReview-Commit-ID: 1LmiFyfjhsr
2016-02-02 13:14:13 +08:00
JW Wang d4d3fdaf3b Bug 1250054. Part 2 - employ MediaDecoderReaderWrapper for MDSM and remove code about adjusting start time. r=jya.
MozReview-Commit-ID: CvEnGuvr6gt
2016-03-31 16:35:47 +08:00
JW Wang c9a3ad5edc Bug 1258966 - Remove unnecessary null-checks of MediaDecoderStateMachine::mReader. r=bechen.
MozReview-Commit-ID: HXbFkSd3SZA
2016-03-24 16:54:36 +08:00
JW Wang 612f711e2a Bug 1258627 - always schedule next cycle so MDSM has a chance to leave buffering state. r=cpearce.
MozReview-Commit-ID: ByCHVF9IxvS
2016-03-23 10:25:58 +08:00
JW Wang 8063297f12 Bug 1258271 - Remove arguments from MediaDecoderStateMachine::HaveEnoughDecodedAudio(). r=bechen.
MozReview-Commit-ID: E0qE18TmNH0
2016-03-21 17:23:30 +08:00
Matt Woodrow 4fa3204918 Bug 1257013 - Part 3: Stop checking for corrupt frames in MediaDecoderStateMachine since we no longer produce them. r=ajones 2016-03-21 18:50:41 +13:00
JW Wang f681b656a9 Bug 1242783. Part 2 - per comment 12, buffer only 1s when audio is captured. r=kinetik.
MozReview-Commit-ID: 2SUSvQzUSgR
2016-03-19 18:29:44 +08:00
JW Wang 32d76e9da4 Bug 1242783. Part 1 - per comment 11, increase mAmpleAudioThresholdUsecs to 2s to avoid audio underrun when BT is connected. r=kinetik.
MozReview-Commit-ID: DBQwrDxnjjh
2016-03-19 18:29:34 +08:00
JW Wang 8c759101fe Bug 1257094 - Remove MediaDecoderStateMachine::DECODER_STATE_DECODING_NONE. r=cpearce.
MozReview-Commit-ID: JYMQVwHBSc3
2016-03-19 07:51:06 +08:00
Matt Woodrow f1e3760a8b Bug 1236112 - Block on d3d9 video frames to complete before returning them from the decoder. r=cpearce 2016-03-09 10:34:49 +13:00
Jean-Yves Avenard a2a82b278e Bug 1230641: P2. Increase the video queue size on mac. r=cpearce
The mac decoder when used on intel GPU gives bad performance due to locking. Increasing the queue size allows to alleviate most problems.

MozReview-Commit-ID: 3yQ3btiMqvk
2016-03-15 11:54:19 +11:00
Bryce Van Dyk 52314f023d Bug 657791 - Update seekable range handling for cueless WebMs. r=kinetik
MediaDecoder previously had 3 states within GetSeekable(), media is either
seekable, seekable but not supported by transport, or not seekable. Due to
changes to make cueless webms playable, a 4th option is needed: a file that is
not fully seekable, but may support seeking from the transport, such as these
webms, should only be seekable in the buffered range.

MozReview-Commit-ID: ISeFkngtrGU
2016-02-04 17:31:21 +13:00
JW Wang eb8314ffe3 Bug 1255268 - Replace SeekJob::Steal() with move semantics. r=cpearce.
MozReview-Commit-ID: 3idqNa2MWA9
2016-03-10 15:30:32 +08:00
JW Wang e00632dc32 Bug 1252767 - Remove MediaDecoderStateMachine::mPendingSeek. r=cpearce. 2016-02-29 17:00:52 +08:00
Bryce Van Dyk 33c9c86450 Bug 1251460 - MDSM now waits on a promise to enqueue first frame loaded. r=jya
MediaDecoderStateMachine's EnqueueFIrstFrameLoadedEvent would previously call
into MediaDecoderReader to update MDR's buffered ranges and enqueue the frame
loaded event. This commit aims to instead have the buffered update take place,
and only afterwards enqueue the event. This should remove the possibility that
the event will be fired and handled before the update of the buffered ranges has
taken place.

MozReview-Commit-ID: GP8w2nF4xmj
2016-03-09 15:32:49 +13:00
Wes Kocher 525a340949 Backed out changeset 6358a64e4f15 (bug 1236112) for windows video wpt failures
MozReview-Commit-ID: 6tovOHlvyak
2016-03-08 16:23:04 -08:00
Matt Woodrow 7f6dcdffbf Bug 1236112 - Block on d3d9 video frames to complete before returning them from the decoder. r=cpearce 2016-03-09 10:34:49 +13:00
JW Wang 118cdb0d89 Bug 1253928 - adjust the time passed to RequestVideoData() by the start time to avoid incorrectly skipping key frames. r=jya.
MozReview-Commit-ID: 9NHapIMoozG
2016-03-07 18:44:03 +08:00
JW Wang d49ab0bc70 Bug 1252753. Part 2 - remove MediaDecoderStateMachine::PushFront(). r=kinetik.
MozReview-Commit-ID: 2jtDFI61bGf
2016-03-08 11:20:39 +08:00
JW Wang 8065129030 Bug 1252753. Part 1 - remove calls to PushFront(). r=kinetik.
MozReview-Commit-ID: BJ9F4GRYFIe
2016-03-08 11:20:22 +08:00
JW Wang 0e8d37e563 Bug 1253490 - fix the calculation of decodeTime. r=jya.
MozReview-Commit-ID: 6LMH7cQrC02
2016-03-05 09:32:26 +08:00
JW Wang da3de38e0a Bug 1252766 - Remove MediaDecoderStateMachine::mDecodeToSeekTarget which is never read. r=kaku.
MozReview-Commit-ID: KAArYtFqUKQ
2016-03-04 10:47:26 +08:00
JW Wang 90a4bbf791 Bug 1252762 - Decode at most one audio/video sample before finishing seeking. r=cpearce.
The idea is to make NeedToDecode{Audio,Video} return false when mState is DECODER_STATE_SEEKING
so DispatchDecodeTasksIfNeeded() basically does nothing during seeking. And we call
Ensure{Audio,Video}DecodeTaskQueued instead during seeking to request audio/video samples
only when audio/video seeking is not completed.

MozReview-Commit-ID: 2n7ehVXAq4H
2016-03-03 15:13:37 +08:00
JW Wang 791870c440 Bug 1252360 - remove some check from NeedToDecodeAudio(). r=bechen.
MozReview-Commit-ID: J8kuQDQAEj9
2016-03-03 10:52:07 +08:00
JW Wang fcfc4e13b6 Bug 1252344. Part 2 - remove unnecessary checks from MediaDecoderStateMachine::NeedToDecodeAudio(). r=bechen.
MozReview-Commit-ID: LiFvkp9RNsI
2016-03-02 10:39:22 +08:00
JW Wang e6ca041270 Bug 1252344. Part 1 - remove unnecessary checks from MediaDecoderStateMachine::NeedToDecodeVideo(). r=bechen.
MozReview-Commit-ID: Jgo9g5B9yq
2016-03-02 10:39:20 +08:00
JW Wang 7ed20b98c1 Bug 1252341 - No need to reset mReader in ~MediaDecoderStateMachine() because the destructor will do that. r=bechen.
MozReview-Commit-ID: AmFsE95Ai9A
2016-03-01 10:47:36 +08:00
Jean-Yves Avenard e261f9bce4 Bug 1244639: P2. Don't clamp audio time to seek time if there's no video track. r=cpearce
This remove the need for working around the MP3 decoder returning decoded frames in the future.
2016-02-05 14:53:58 +11:00
Jean-Yves Avenard 2bcd0eceba Bug 1243608: P5. Add type utility methods to SeekTarget class. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard e70f02fb04 Bug 1243608: P4. Have MediaDecoderReader::SeekPromise return a TimeUnit. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard c9318d6fbf Bug 1243608: P3. Make SeekTarget::mTime a TimeUnit object. r=cpearce
Also makes it a private member and provide a GetTime() accessor instead.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard 9ef9b53e3b Bug 1243608: P2. Pass the full SeekTarget object to MediaDecoderReader::Seek. r=cpearce
This will allow the reader to know if we are performing a fast seek.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard cafbc3ef05 Bug 1243608: P1. Only use video time if video frame contains seek target. r=cpearce
This restrict the behaviour introduced in bug 1112438.
2016-02-02 18:57:11 +11:00
Carsten "Tomcat" Book 0e3de28f66 Backed out changeset 3c471a71317e (bug 1112438) for m2 test failures 2016-02-01 10:08:41 +01:00
Jean-Yves Avenard 23cc8eade3 Bug 1244477: Offset seek time by start time. r=jwwang
We adjust the timestamps as frames are returned by the decoder, but weren't adjusting the seek time.
2016-02-01 17:45:32 +11:00
Jean-Yves Avenard 2c3f34a2e1 Revert "Bug 1112438 - Make newCurrentFrameTime more accurate while seeking by checking audio & video timestamp boundary in addition. r=cpearce" r=cpearce
This reverts commit 4b812ca9

The original commit was a work around for poorly encoded videos generated by some FFOS devices which could make the first audio frame non-zero. Trying then to make them appear as zero when seeking to start.

There are better ways to get around this problem.
2016-02-01 17:45:32 +11:00
JW Wang cb7980a529 Bug 1242845. Part 2 - fix format nits. r=me. 2016-01-27 20:14:43 +08:00
JW Wang 8be9273899 Bug 1242845 - Make the computation of MediaDecoderStateMachine::HasLowUndecodedData() more accurate and consistent. r=jya. 2016-01-27 15:12:49 +08:00
JW Wang dee8d011d5 Bug 1242843 - Make MDSM::mDecodedVideoEndTime zero-based. r=kikuo. 2016-01-27 15:12:46 +08:00
JW Wang 953a88bf0e Bug 1242841 - Make MDSM::mDecodedAudioEndTime zero-based. r=kikuo. 2016-01-26 11:31:56 +08:00
Alastor Wu 200f23ab4c Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang 2016-01-21 10:27:38 +08:00