Alastor Wu
47fe7031a0
Bug 1400758 - part3 : report the error description with InitPromise for ffmpeg decoders. r=jya
...
MozReview-Commit-ID: 3MGmU34JY3t
2017-09-18 18:10:05 +08:00
Jean-Yves Avenard
278692ecb6
Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre
...
Includes some side 80 columns fix.
MozReview-Commit-ID: IXRoQfM0Hjc
2017-09-04 11:27:43 +02:00
Chris Pearce
79bacf04fb
Bug 1388288 - Make dom/media/platforms build in non-unified mode. r=jya
...
MozReview-Commit-ID: 43uEIDmfCMR
2017-08-08 14:35:36 +08:00
Jean-Yves Avenard
6a03444cb6
Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
...
MozReview-Commit-ID: JgbAwtLNr9e
2017-05-03 23:25:54 +02:00
Carsten "Tomcat" Book
9bb0317224
Backed out changeset c79b6d337d04 (bug 1223270)
2017-06-20 09:41:39 +02:00
Jean-Yves Avenard
5605af724a
Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
...
MozReview-Commit-ID: JgbAwtLNr9e
2017-05-03 23:25:54 +02:00
JW Wang
d24c707be3
Bug 1359715 - let functions in MediaData.h take TimeUnit instead of int64_t. r=kaku
...
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.
MozReview-Commit-ID: LRz9d4yKBYJ
2017-04-24 17:33:05 +08:00
JW Wang
68670a77ff
Bug 1357986 - Use helper functions of TimeUnit to make code more readable. r=kaku
...
1. using media::TimeUnit to save some typing.
2. replace TimeUnit() with TimeUnit::Zero().
3. replace TimeUnit::FromXXX(0) with TimeUnit::Zero().
4. replace TimeUnit::FromMicroseconds(std::numeric_limits<int64_t>::max()) with TimeUnit::FromInfinity().
5. replace some uses of int64_t with TimeUnit.
6. replace t > TimeUnit() with t.IsPositive().
MozReview-Commit-ID: 6hC94PXx86i
2017-04-17 16:35:04 +08:00
JW Wang
b447b29002
Bug 1356530 - Change the type of MediaData::mTime to TimeUnit since int64_t is ambiguous. r=kaku
...
MozReview-Commit-ID: 4bVeqIuWO2O
2017-04-14 17:13:36 +08:00
JW Wang
e98c80cb28
Bug 1356506 - change the type of MediaData::mTimecode to TimeUnit since int64_t is ambiguous. r=gerald
...
MozReview-Commit-ID: 7dO5OOUuORz
2017-04-14 14:52:14 +08:00
JW Wang
a71811e3c2
Bug 1355756. P3 - let CreateAndCopyData() and its friends take TimeUnit for duration. r=gerald
...
MozReview-Commit-ID: ES0on9VCuu3
2017-04-12 17:46:09 +08:00
JW Wang
91b9052b82
Bug 1355756. P1 - change the type of MediaData::mDuration to TimeUnit. r=gerald
...
MozReview-Commit-ID: 3d4bUYtSuMI
2017-04-12 17:27:34 +08:00
Jean-Yves Avenard
a4d8c4f9e0
Bug 1322739: P3. Add low-latency option to FFmpeg. r=gerald
...
ContentPrefs.cpp line ending was incorrectly set to CRLF.
MozReview-Commit-ID: LIcZNnNzFd8
2017-02-22 13:02:59 +01:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Jean-Yves Avenard
f466c5434b
Bug 1336947: P2. Fix coding style. r=gerald
...
MozReview-Commit-ID: 74OQ6GxSFWX
2017-02-07 23:27:56 +01:00
Jean-Yves Avenard
d6b004c4a8
Bug 1319987: P5. Promisify MediaDataDecoder. r=cpearce,gerald,mattwoodrow,snorp
...
This is a big change, and unfortunately impossible to break down with independently functional commits.
There are four main changes being applied here:
* Code cleanup, including making all MediaDataDecoder related code mozilla coding style compliant
* Make MediaDataDecoder use MozPromise
* Making Flush and Shutdown processes fully asynchronous
* Fixing few data races encountered across the code, in particular in the Android PDM
MozReview-Commit-ID: DpiZucGofJT
2017-01-26 13:56:46 +01:00
sotaro
1fd7b170c2
Bug 1305907 - Assume BT.709 as VP9 default color space r=jya
2016-12-02 20:38:17 +09:00
Sotaro Ikeda
4e496b651a
Bug 1309802 - Supress warning r=jya
2016-10-13 06:10:31 -07:00
Sotaro Ikeda
14833ac920
Bug 1306521 - Handle VP9 colorspace BT.709 on BasicCompositor r=nical,jwwang,jya,jrmuizel
2016-10-11 19:46:28 -07:00
Jean-Yves Avenard
2f6bc81356
Bug 1304252: P1. Provide error details for ffmpeg decoder. r=gerald
...
MozReview-Commit-ID: A0qbYNm4CjX
2016-09-21 13:21:27 +10:00
Jean-Yves Avenard
a18c867daa
Bug 1299072: P18. Use MediaResult with InitPromise. r=gerald
...
MozReview-Commit-ID: JiLgiyxvfNC
2016-09-13 13:06:18 +10:00
Jean-Yves Avenard
3972e5c3d6
Bug 1299072: P15. Provide additional error details for most remaining decoders. r=gerald
...
Additionally, mark non fatal decoding error as such.
Due to the complexity of WMF decoder error handling, this will be done in a follow up bug.
MozReview-Commit-ID: KHWORM8899c
2016-09-13 11:15:36 +10:00
Jean-Yves Avenard
b3e05c1edc
Bug 1296152: [ffmpeg] Don't use all CPUs available when decoding. r=mattwoodrow
...
MozReview-Commit-ID: C4CTiC9H79A
2016-08-18 15:34:19 +10:00
Matt Woodrow
873d6b711f
Bug 1292032 - Clean up VideoData static constructor methods. r=jya
2016-08-04 15:31:52 +12:00
Bryce Van Dyk
d5acd96c8e
Bug 1290284 - Centralise string comparisons for H264 and VPX detection. r=cpearce
...
Remove string comparisons to determine from mime types if content is VPX or
H264. Replace with calls to VPXDecoder::IsVPX or MP4Decoder::IsH264 to
centralise such logic.
This patch introduces MP4Decoder:IsH264, and moves the similar functionality out
of H264Convertor for the sake of consistently having these functions in
decoders.
MozReview-Commit-ID: 5nfYusYHrUR
2016-07-29 14:12:54 +12:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Alfredo Yang
e890782c53
Bug 1068151 - keep decoding a corrupted video. r=jya
2016-05-30 18:24:00 +02:00
JW Wang
cbe7f99505
Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
...
MozReview-Commit-ID: E3DG84yKRmw
2016-05-19 17:50:31 +08:00
Jean-Yves Avenard
c29d04969a
Bug 1270323: [ffmpeg] P3. Use the dts of the last sample input, not the dts of the last decoded sample. r=cpearce
...
Amendment to bug 1244410. If no frames had been output yet, last dts would have been INT64_MIN.
MozReview-Commit-ID: LOdWLpyuLYm
2016-05-23 15:37:34 +10:00
Ryan VanderMeulen
a668852c77
Backed out changeset 0e4c5be816f3 (bug 1257107) for webm reftest failures.
...
CLOSED TREE
2016-05-19 10:39:07 -04:00
Alfredo Yang
2616966638
Bug 1257107 - Discard decoded data if its pts is smaller than seek time. r=jya
2016-05-17 21:46:00 -04:00
JW Wang
403c45d43f
Bug 1271508. Part 3 - extract code to the parent class and remove use of mTaskQueue from sub-classes. r=jya.
2016-05-09 23:23:48 +08:00
JW Wang
70b7507094
Bug 1271508. Part 2 - rename functions so they are the same as those of FFmpegAudioDecoder so it would be easier to extract common code to the parent class. r=jya.
...
MozReview-Commit-ID: LLwSBoL2A7r
2016-05-09 23:06:14 +08:00
Carsten "Tomcat" Book
70a979ac69
Backed out changeset 31dc08c9c505 (bug 1068151) for causing assertion failures
2016-05-06 14:02:12 +02:00
Alfredo Yang
5371875960
Bug 1068151 - keep decoding with malformat video. r=jya
2016-05-06 01:10:00 +02:00
Jean-Yves Avenard
61fd269bf3
Bug 1244410: [ffmpeg] Ensure the last drained frame has the proper duration set. r=gerald
...
FFmpeg's AVFrame pkt_dts doesn't contain the dts of the frame used to decode the frame; but of the frame "that triggered returning this frame.". The last frame was returned when draining which is done by feeding the decoder with dummy frames ; all having a dts of 0.
Additionally, rename DurationMap argument name from aDts to aKey.
MozReview-Commit-ID: GWYT3sEJVQs
2016-05-06 17:29:48 +10:00
Kyle Huey
b972c94d0f
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
aadd508ffe
Backed out changeset 85ce8cb0639a (bug 1268313)
2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Jean-Yves Avenard
da1d0deed3
Bug 1243538: P4. Adjust ffvpx decoder to allow different decoding size from metadata. r=mattwoodrow
...
MozReview-Commit-ID: FyfAhJ42w5l
2016-04-20 17:43:57 +10:00
Jean-Yves Avenard
9bb1aea9e5
Bug 1243538: P1. Make MediaInfo::mImage an nsIntSize again and introduce a mImageRect member. r=mattwoodrow
...
MozReview-Commit-ID: 3iVCA1b7bHc
2016-04-20 17:43:35 +10:00
Jean-Yves Avenard
cb6ec63932
Bug 1247041: [ffmpeg] Request YUVJ420P format explicitly. r=kentuckyfriedtakahe
...
Requesting YUV420P causes crashes with some version of FFmpeg.
MozReview-Commit-ID: I69jNZ64Le5
2016-02-15 23:02:24 +11:00
Jean-Yves Avenard
dc46b6fd6c
Bug 1240995: [ffmpeg] P1. Refactor FFmpeg PDM. r=kentuckyfriedtakahe
...
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-23 01:35:52 +11:00
Jean-Yves Avenard
151531f4ce
Bug 1240630: [ffmpeg] P4. Rename FFmpegH264Decoder into FFmpegVideoDecoder. r=kentuckyfriedtakahe
...
The days we used to only be able to use the FFmpeg decoder for H264 are long gone. It can do H264, VP6, VP8 and VP9.
2016-01-19 22:20:01 +11:00
Wes Kocher
7004fb81c7
Backed out 4 changesets (bug 1240630) for asan failures in mochitest(2) and mochitest(oth) CLOSED TREE
...
Backed out changeset dc949ca1e1ec (bug 1240630)
Backed out changeset 06abea99a292 (bug 1240630)
Backed out changeset 9d90d4b0b928 (bug 1240630)
Backed out changeset 6162c46b32ff (bug 1240630)
2016-01-20 13:47:41 -08:00
Wes Kocher
aa6606894d
Backed out changeset 8b78eccf2c29 (bug 1240995) for asan failures in mochitest(2) and mochitest(oth) CLOSED TREE
2016-01-20 13:47:13 -08:00
Jean-Yves Avenard
7af9163691
Bug 1240995: [ffmpeg] Refactor FFmpeg PDM. r=kentuckyfriedtakahe
...
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-20 20:22:43 +11:00
Jean-Yves Avenard
4b68f0505e
Bug 1240630: [ffmpeg] P4. Rename FFmpegH264Decoder into FFmpegVideoDecoder. r=kentuckyfriedtakahe
...
The days we used to only be able to use the FFmpeg decoder for H264 are long gone. It can do H264, VP6, VP8 and VP9.
2016-01-19 22:20:01 +11:00
Carsten "Tomcat" Book
847c39d65f
Backed out changeset 2360ccbf3aaa (bug 1240630)
2016-01-20 16:10:48 +01:00
Carsten "Tomcat" Book
f2ce22a6ee
Backed out changeset 4ab338518d02 (bug 1240995)
2016-01-20 16:10:46 +01:00