Граф коммитов

178 Коммитов

Автор SHA1 Сообщение Дата
John Lin 2f58c785e9 Bug 1344649 - part 3: rename DurationMap and turn it into a generic class. r=jya
MozReview-Commit-ID: AMMxMPkuYXk

--HG--
extra : rebase_source : 438100efafb883c8cd67895657877da9fb6f54ce
2017-03-07 19:49:08 +08:00
Jean-Yves Avenard afb15861d6 Bug 1342645: Rename low latency preference. r=gerald
Make it available if either FFmpeg or FFVPX is configured

MozReview-Commit-ID: 7VTWQ7km4tV

--HG--
extra : rebase_source : 453db0336f47f6dcd657c33345d3894aaa54f882
2017-02-25 23:53:53 +01:00
Jean-Yves Avenard a65131a76f 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
Jean-Yves Avenard 572d9a0a80 Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd

--HG--
extra : rebase_source : 019627d3ff0ef0430bcaf83a4098ffd62fc53b05
2017-02-17 22:19:55 +01:00
Sebastian Hengst 955ce77a9f Backed out changeset f508a675e8dc (bug 1339748) 2017-02-18 17:36:21 +01:00
Jean-Yves Avenard 1aee5fb0ac Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd

--HG--
extra : rebase_source : ce57fbd3028333485368267955b2645057f54805
2017-02-17 22:19:55 +01:00
Tom Tromey 5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
John Lin 286d9b45fd Bug 1336792 - part 1: extract DurationMap and make it thread safe. r=jya
MozReview-Commit-ID: EGSc5sMfxvL

--HG--
extra : rebase_source : 465a09144b1ffe129761a64b17eb80aa3b938347
2017-02-10 11:39:18 +08:00
Jean-Yves Avenard bb51f92016 Bug 1336947: P2. Fix coding style. r=gerald
MozReview-Commit-ID: 74OQ6GxSFWX

--HG--
extra : rebase_source : 307827dc3e1d624ee8a13044e2d352ae5826ff3c
2017-02-07 23:27:56 +01:00
Jean-Yves Avenard 73fd84bc5d 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

--HG--
extra : rebase_source : 80bd6c6f9726d536b6f306c40d9af6df27333be9
2017-01-26 13:56:46 +01:00
karo a91edd5c7a Bug 1321076 - PDMFactory defaults to using VPXDecoder when alpha is present. r=jya
FFmpegDecoderModule and AndroidDecoderModule returns nullptr if alpha is
present, then PDMFactory rolls over to using VPXDecoder.

MozReview-Commit-ID: H2JaolEfJgR

--HG--
extra : rebase_source : a2b4bad848c6350041c2cff805803fb5728342d2
2016-12-21 15:00:17 +13:00
Karl Tomlinson 840b173b85 bug 1323382 remove static FFmpegLibWrapper constructor and destructors r=jya
The libraries are no longer closed, which works around bug 1304156.

The MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS name seems a little odd here
but it ensures the desired class behaviour and usage, and is consistent with
changes for bug 1226376.

MozReview-Commit-ID: JLO4HEvNrff

--HG--
extra : rebase_source : bd95fb3e93826c7fe2919b72d341ff0938775fd0
2016-12-14 16:23:51 +13:00
sotaro dbc67afb0b Bug 1305907 - Assume BT.709 as VP9 default color space r=jya 2016-12-02 20:38:17 +09:00
Gerald Squelart e076c9edaa Bug 1263665 - media.libavcodec.allow-obsolete=true bypasses blocking - r=jya
If "media.libavcodec.allow-obsolete" is set to true, the checks for older
libavcodec library versions are ignored.

MozReview-Commit-ID: HBhHfFomsrr

--HG--
extra : rebase_source : 6bfe06bd4354fcda90d7d33bedcbd176663cab31
2016-10-05 15:04:04 -07:00
Gerald Squelart 653c89f1cb Bug 1263665 - Expose reason for libavcodec linking failure - r=jya
FFmpegLibWrapper returns a precise success/failure code.
FFmpegRuntimeLinker uses that to record the most interesting issue and
associated library name (if any).

MozReview-Commit-ID: J7asDfngw5e

--HG--
extra : rebase_source : 206c5bccc1ca2e2284dd836aef4b4781447459b2
2016-09-22 01:59:59 -07:00
Gerald Squelart 206f9a0404 Bug 1263665 - Block libav < 54.35.1 - r=jya
MozReview-Commit-ID: HgTXlDnj2Gw

--HG--
extra : rebase_source : c579cdc2bc0d0cde58da0dd621e8c09f74bc59eb
2016-09-21 00:04:12 -07:00
Sotaro Ikeda 39fa68003d Bug 1309802 - Supress warning r=jya 2016-10-13 06:10:31 -07:00
Sotaro Ikeda 1d3ceeff04 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 0ac98dd6e1 Bug 1304252: P1. Provide error details for ffmpeg decoder. r=gerald
MozReview-Commit-ID: A0qbYNm4CjX

--HG--
extra : rebase_source : 4c9c719e9a4310ef34b99bf491c7f76bd1e5e3e4
2016-09-21 13:21:27 +10:00
Jean-Yves Avenard 70ed5282de Bug 1299072: P18. Use MediaResult with InitPromise. r=gerald
MozReview-Commit-ID: JiLgiyxvfNC

--HG--
extra : rebase_source : 4cc453a5fe7b1e4f4b865c31a24a5feed64df7e4
2016-09-13 13:06:18 +10:00
Jean-Yves Avenard 829f0d44fc 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

--HG--
extra : rebase_source : 77ada9bb95ba4d44d1bca209e4a7d28369f24f6e
2016-09-13 11:15:36 +10:00
Jean-Yves Avenard f4efa8be06 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

--HG--
extra : rebase_source : f44120983070e5c107ecd5cafc762da90aab44bf
2016-09-10 09:56:53 +10:00
Matt Woodrow 99bf9b18df Bug 1301294 - Remove unnecessary nsresult return value from MediaDataDecoder interface. r=jya 2016-09-09 15:50:37 +12:00
Jean-Yves Avenard 526bb76265 Bug 1297265: P10. Rework FFmpeg Decoder use of InputExhausted. r=kamidphish
MozReview-Commit-ID: 8fndcHQELTo

--HG--
extra : rebase_source : ee4d208b67964fbce0b618150c31f80938bea8f5
2016-09-01 19:42:39 +10:00
Phil Ringnalda 9f470c98e5 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 02473df25a Bug 1297265: P10. Rework FFmpeg Decoder use of InputExhausted. r=kamidphish
MozReview-Commit-ID: 8fndcHQELTo

--HG--
extra : rebase_source : f54aea05056e674a76431a8a95225e13e8b6b57f
2016-08-30 15:22:36 +10:00
Jean-Yves Avenard e3d7cee89e 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

--HG--
extra : rebase_source : a0dd8f517d730b1414c6461fc5c5e5b08d0d8b10
2016-08-16 16:21:18 +10:00
Jean-Yves Avenard f06897e560 Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
MozReview-Commit-ID: BmwtZF3NSEI

--HG--
extra : rebase_source : 4b7bc5d49bf129f8442314d3d43110577c0c7484
2016-08-02 22:54:26 +10:00
Wes Kocher 9c3d37e549 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 5b527b5eca 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

--HG--
extra : rebase_source : a0dd8f517d730b1414c6461fc5c5e5b08d0d8b10
2016-08-16 16:21:18 +10:00
Jean-Yves Avenard cc1aaa08e8 Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
MozReview-Commit-ID: BmwtZF3NSEI

--HG--
extra : rebase_source : 4b7bc5d49bf129f8442314d3d43110577c0c7484
2016-08-02 22:54:26 +10:00
James Cheng 21f18593ca Bug 1295920 - Replace enum with enum class in PlatformDecoderModule.h. r=jya
MozReview-Commit-ID: lDjsTI82pV

--HG--
extra : rebase_source : 9ec7b89e3af8fe0e50ea4bb48d464367e49c86c4
2016-08-17 17:24:13 +08:00
Jean-Yves Avenard 8ac9ba75d3 Bug 1296152: [ffmpeg] Don't use all CPUs available when decoding. r=mattwoodrow
MozReview-Commit-ID: C4CTiC9H79A

--HG--
extra : rebase_source : 05c37856dc72c0b08e23c523cfa41e011b3802ea
2016-08-18 15:34:19 +10:00
Matt Woodrow f323872778 Bug 1292032 - Clean up VideoData static constructor methods. r=jya
--HG--
extra : rebase_source : e025c9a15ad00e970f9027f72c78b5d6effbc301
2016-08-04 15:31:52 +12:00
Bryce Van Dyk dc49694098 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

--HG--
extra : rebase_source : c013c4ebe28d5afedbb91ddfffadb40d23fd0ee3
2016-07-29 14:12:54 +12:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book b043df6724 Backed out changeset a2c87cb66cce (bug 1281115) for causing frequent timeouts in test_ResumeAfterClearing_mp4.html 2016-06-28 13:53:10 +02:00
Alfredo Yang dc6aa95260 Bug 1281115: add SetSeekThreshold for ffmpeg. r=jwwang
MozReview-Commit-ID: 4Vfkz0dGgEk

--HG--
extra : rebase_source : ccb706cc7ff0c7389c43c785aaad3de3bafaa6fd
2016-06-21 16:13:57 +08:00
Dan Glastonbury 1b2a65cfc3 Bug 1281632 - P1: Extract creation parameters and pass via struct. r=gerald
Extract all the parameters passed to CreateAudioDecoder/CreateVideoDecoder and
place them into a structure that is passed down to the creation of the actual
decoder, where the relevant parameters can be extracted.

This makes it easier to add more arguments to the Create*Decoder calls in future.

MozReview-Commit-ID: 9LZlcfRVz6A

--HG--
extra : rebase_source : ce3f0c7d0784b96267728697ff5d535ccb8ee7a6
2016-06-28 17:56:55 +12:00
Jean-Yves Avenard 8bb32f751e Bug 1275339: [ffmpeg] P2. Fetch avcodec_free_frame in libavcodec. r=cpearce
avcodec_free_frame was incorrectly looked in libavuti. On Linux where this code is used, it makes no difference really but for clarity sake.

MozReview-Commit-ID: DC1WJAAKiE4
2016-06-11 11:04:14 +01:00
Jean-Yves Avenard 3b9ae45b0e 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
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Alfredo Yang 68adb6b579 Bug 1068151 - keep decoding a corrupted video. r=jya 2016-05-30 18:24:00 +02:00
Eric Rahm c077aa9010 Bug 1274913 - Move PDM log definition to header. r=njn 2016-05-24 14:55:53 -07:00
JW Wang 8b980a3cbc Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
MozReview-Commit-ID: E3DG84yKRmw

--HG--
extra : rebase_source : 2636b7d1ef5cc544f70b3912d4d6bd30f25424df
2016-05-19 17:50:31 +08:00
Jean-Yves Avenard e1fd229178 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

--HG--
extra : rebase_source : f842d2214b1e82f3b069e843157b95d87e62fa01
2016-05-23 15:37:34 +10:00
Ryan VanderMeulen 84b0a4b61f Backed out changeset 0e4c5be816f3 (bug 1257107) for webm reftest failures.
CLOSED TREE
2016-05-19 10:39:07 -04:00
Alfredo Yang 3fed340de9 Bug 1257107 - Discard decoded data if its pts is smaller than seek time. r=jya
--HG--
extra : rebase_source : 2f17f7b3b70f774e03322dbc63727b0794279f91
2016-05-17 21:46:00 -04:00
Jean-Yves Avenard c16d1665b7 Bug 1271491: [ffmpeg] P4. Remove requirements to call Init on the main thread. r=cpearce
FFMpegRuntimeLinker/FFVPXRuntimeLinker::Init() aren't thread safe, but they can be called on any threads.

MozReview-Commit-ID: 4B9yn7zSyf1

--HG--
extra : rebase_source : 5a5ee52b72afbd01d6477fc312ff9f226ab95248
2016-05-10 17:28:47 +10:00
JW Wang 1039567f4e Bug 1271517. Part 2 - remove use of FlushableTaskQueue. r=jya.
MozReview-Commit-ID: 8pkErp6UjC5
2016-05-11 11:30:57 +08:00