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
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
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
0bc50b1ec6
Bug 1299072: P4. Return extended failure details to reader. r=gerald
...
We provide even further details for the GMP decoder. Other decoders to follow.
MozReview-Commit-ID: 7NxJPec8xWv
2016-09-10 09:56:53 +10:00
Matt Woodrow
f8cc289363
Bug 1301294 - Remove unnecessary nsresult return value from MediaDataDecoder interface. r=jya
2016-09-09 15:50:37 +12:00
Jean-Yves Avenard
721a2dc099
Bug 1297265: P10. Rework FFmpeg Decoder use of InputExhausted. r=kamidphish
...
MozReview-Commit-ID: 8fndcHQELTo
2016-09-01 19:42:39 +10:00
Phil Ringnalda
fc6fc4652f
Backed out 11 changesets (bug 1297265) for gtest timeouts during MediaDataDecoder.H264
...
Backed out changeset 04d9b7160ac9 (bug 1297265)
Backed out changeset c7bffd1ba7fd (bug 1297265)
Backed out changeset ad1915ff688b (bug 1297265)
Backed out changeset 67a97304d44d (bug 1297265)
Backed out changeset e6b9e6184457 (bug 1297265)
Backed out changeset 30636ac0790f (bug 1297265)
Backed out changeset cc70d3a139bc (bug 1297265)
Backed out changeset 345a577c92a1 (bug 1297265)
Backed out changeset ec1f3ac8751c (bug 1297265)
Backed out changeset da9117375d2e (bug 1297265)
Backed out changeset dd4c7aafcc3d (bug 1297265)
2016-08-31 19:49:28 -07:00
Jean-Yves Avenard
8acdb727cb
Bug 1297265: P10. Rework FFmpeg Decoder use of InputExhausted. r=kamidphish
...
MozReview-Commit-ID: 8fndcHQELTo
2016-08-30 15:22:36 +10:00
Jean-Yves Avenard
eb50c1b477
Bug 1270016: P3. Only check audio format at decode time. r=kamidphish
...
With raw streaming flac, we can't determine the audio format at the time the codec is opened.
Additionally, when using streaming flac, we do not have a STREAMINFO block. The FFmpeg flac decoder check that extradata is null and not its size and would error due to an invalid extradata.
MozReview-Commit-ID: KZ3n8b8WUMo
2016-08-16 16:21:18 +10:00
Jean-Yves Avenard
42c92f11c5
Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
...
MozReview-Commit-ID: BmwtZF3NSEI
2016-08-02 22:54:26 +10:00
Wes Kocher
494be38a74
Backed out 3 changesets (bug 1270016) for various media test failures/unexpected-passes a=backout
...
Backed out changeset 9178e6e14a5a (bug 1270016)
Backed out changeset 8359b182bb99 (bug 1270016)
Backed out changeset 8a0f3231b43e (bug 1270016)
2016-08-22 10:07:57 -07:00
Jean-Yves Avenard
762ddc4f77
Bug 1270016: P3. Only check audio format at decode time. r=kamidphish
...
With raw streaming flac, we can't determine the audio format at the time the codec is opened.
Additionally, when using streaming flac, we do not have a STREAMINFO block. The FFmpeg flac decoder check that extradata is null and not its size and would error due to an invalid extradata.
MozReview-Commit-ID: KZ3n8b8WUMo
2016-08-16 16:21:18 +10:00
Jean-Yves Avenard
cb23b0fbf0
Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
...
MozReview-Commit-ID: BmwtZF3NSEI
2016-08-02 22:54:26 +10:00
Jean-Yves Avenard
17692015a6
Bug 1275339 - [ffmpeg] Don't assume AVFrame has a constant size.
...
An AVFrame has a different size between FFmpeg 0.10 and LibAV 0.8 though both have the same version number.
Forgot to add the fixes (twice now :( )
MozReview-Commit-ID: DR3b3fqSngh
2016-06-11 11:04:10 +01:00
Alfredo Yang
e890782c53
Bug 1068151 - keep decoding a corrupted video. r=jya
2016-05-30 18:24:00 +02: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
a0e4669610
Bug 1271517. Part 2 - remove use of FlushableTaskQueue. r=jya.
...
MozReview-Commit-ID: 8pkErp6UjC5
2016-05-11 11:30:57 +08:00
JW Wang
71ff1aa4bd
Bug 1271517. Part 1 - remove use of FlushableTaskQueue::Flush() from FFmpegDataDecoder::Flush(). r=jya.
...
MozReview-Commit-ID: 2jAyXo2P6p7
2016-05-11 11:30:55 +08: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
ad237a53fe
Bug 1270350 - per comment 0, use SyncRunnable to repalce the boilerplate code. r=jya.
...
MozReview-Commit-ID: 9hqmUnNC3Vm
2016-05-05 11:54:44 +08: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
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
b32324d95a
Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
...
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-19 17:29:19 +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
acb371b446
Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
...
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-19 17:29:19 +11:00
Carsten "Tomcat" Book
b865b52699
Backed out changeset 07e06fefa4c7 (bug 1240630) for webgl leaks
2016-01-20 16:11:05 +01:00
Carsten "Tomcat" Book
f2ce22a6ee
Backed out changeset 4ab338518d02 (bug 1240995)
2016-01-20 16:10:46 +01:00
Jean-Yves Avenard
d3cc076d5e
Bug 1240995: [ffmpeg] Refactor FFmpeg PDM. r=kentuckyfriedtakahe
...
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-20 23:55:37 +11:00
Jean-Yves Avenard
c4ffe86614
Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
...
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-20 23:55:35 +11:00
Jean-Yves Avenard
f8293234b1
Bug 1232268: [ffmpeg] P4. Add support for libavcodec 57. r=kentuckyfriedtakahe
...
At this stage only the original FFmpeg project is supported.
2016-01-11 17:52:44 +11:00
Jean-Yves Avenard
6ecb895cec
Bug 1232268: [ffmpeg] P1. Provide finer granularity on which symbols are to be loaded. r=kentuckyfriedtakahe
2016-01-11 17:50:28 +11:00
Jean-Yves Avenard
18aa896d77
Bug 1214462: P4. Add Windows support for the FFmpeg PDM. r=kentuckyfriedtakahe
2016-01-06 23:03:52 +11:00
Jean-Yves Avenard
1be723bd5d
Bug 1237210: [ffmpeg] P1. Have specialized AVCodecContext initialization. r=gerald
...
A common initialization procedure is too restrictive, and we end up setting up audio configuration for video decoding and vice-versa
2016-01-06 23:03:49 +11:00
Jean-Yves Avenard
cf09fd969f
Bug 1234553: Always request 16 bits audio for libavcodec 53. r=kentuckyfriedtakahe
...
LibAV 0.8 produces rubbish floating point data. We had restricted LibAV 0.8 to produce 16 bits audio instead, unfortunately some ubuntu version appears to have bumped the minor version.
2015-12-24 13:53:37 +11:00
Jean-Yves Avenard
5021bd00a9
Bug 1233340: [ffmpeg] Support YUV420J pixel format. r=kentuckyfriedtakahe
...
YUV420J is 12bpp YUV420P.
2015-12-21 13:20:23 +11:00
Jean-Yves Avenard
1f4a245b00
Bug 1226707: [ffmpeg] P1. Delete codec context upon initialization failure. r=gerald
2015-11-23 16:30:47 +11:00
Jean-Yves Avenard
070d179ee4
Bug 1223333: [ffmpeg] Do not rely on library name to determine the libavcodec's version. r=kentuckyfriedtakahe
...
Also uses portable way to dynamically open libraries.
2015-11-19 10:32:21 +11:00
Jean-Yves Avenard
d09b5ad542
Bug 1206977: P15. Fix FFmpeg shutdown crash should decoder not be initialised. r=me
2015-10-08 00:34:49 +11:00
Jean-Yves Avenard
53db64bf42
Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce
2015-10-08 00:34:41 +11:00
Nigel Babu
86234cab2d
Backed out 16 changesets (bug 1206977, bug 1211652, bug 1211335) for linux bc7 bustage ON A CLOSED TREE
...
Backed out changeset 51b1b076a386 (bug 1206977)
Backed out changeset dec7c35469d1 (bug 1206977)
Backed out changeset bf9ddc78b394 (bug 1206977)
Backed out changeset 08f5cff5aa12 (bug 1206977)
Backed out changeset e4e91de99867 (bug 1206977)
Backed out changeset 696ecf2e2947 (bug 1206977)
Backed out changeset ab2d524a9b35 (bug 1206977)
Backed out changeset d66be0e4547f (bug 1206977)
Backed out changeset 64c58afbd6c1 (bug 1206977)
Backed out changeset eb10d09015e1 (bug 1206977)
Backed out changeset 042959216393 (bug 1206977)
Backed out changeset 7e0de7f62202 (bug 1206977)
Backed out changeset 3d095569f6ba (bug 1206977)
Backed out changeset 041418a07ae5 (bug 1206977)
Backed out changeset 654970da23e4 (bug 1211335)
Backed out changeset 8ba8e24a84d3 (bug 1211652)
2015-10-07 13:43:39 +05:30
Jean-Yves Avenard
8c2f0f46f9
Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce
2015-10-07 16:40:22 +11:00
Jean-Yves Avenard
35ce60ed4f
Bug 1209806: Remove dependency on libavformat. r=edwin
2015-10-01 19:05:47 +10:00
Jean-Yves Avenard
74ec9d2d2a
Bug 1208917: Fix VP9 decoding with recent version of libav. r=kentuckyfriedtakahe
...
Recent libav do not require a codec parser to decode VP9.
2015-09-28 10:30:03 +10:00
Jean-Yves Avenard
dfff37d858
Bug 1206979: P3. Request S16 audio for libav 0.8 and earlier. r=edwin
2015-09-23 12:59:28 +10:00