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

191 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard de2ba98442 Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e

--HG--
extra : rebase_source : 72bc0cd32d95fc6eadc0604c00b9f53227135557
2017-05-03 23:25:54 +02:00
Carsten "Tomcat" Book 57edf8693b Backed out changeset c79b6d337d04 (bug 1223270) 2017-06-20 09:41:39 +02:00
Jean-Yves Avenard 683d6562da Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e

--HG--
extra : rebase_source : c7e813a29bd4d0f46c73b5579fec4bc77081cee1
2017-05-03 23:25:54 +02:00
Cameron McCormack 76df568747 Backed out changeset ff724e355b2d (bug 1345342) per jya's request. 2017-06-05 15:58:41 +08:00
Jean-Yves Avenard f5de325f6f Bug 1345342: Cancel pending requests. r=jya
If the pending first frame decoding was cancelled, the next call to decode could lead to a crash.

MozReview-Commit-ID: 6Q4eKUzqOly

--HG--
extra : rebase_source : 620efb39265944998c23c184e831a5b71f9b437f
2017-06-04 12:03:25 +02:00
Jean-Yves Avenard b35c566d48 Bug 1364870: [ffmpeg] only check format if frame has been decoded. r=gerald
The format member isn't set when an audio frame hasn't been decoded yet.

MozReview-Commit-ID: IgUj6bjVzdF

--HG--
extra : rebase_source : bb47fa523384f9a85ee7d0ed5b6de4fe2c73526a
2017-05-19 09:52:12 +02:00
Ralph Giles cfe9afb991 Bug 1363857 - Add missing includes to FFmpegLibWrapper. r=gerald
This was working because of the unified build, but passing
--enable-av1 changed the source partitioning in such a way
that the referenced defines and symbols were no longer available.

MozReview-Commit-ID: CRjyhLtOhoM

--HG--
extra : rebase_source : bce3810fcff39669c4578f1b545fb619be691e38
2017-05-10 14:57:25 -07:00
JW Wang 80c9f230f3 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

--HG--
extra : rebase_source : 1f73f1f338142b3183491d04726821a881ccabbe
extra : intermediate-source : 88e167b7b06303d10d92cd5317502f405d1c553e
extra : source : 98deb30ec93d395f9951f5fc488170ae35e29675
2017-04-24 17:33:05 +08:00
JW Wang f2ea37e57b 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

--HG--
extra : rebase_source : 1ea3b409e6ec12915f3e1a00359d6ff4152c8917
extra : intermediate-source : e31a12ad0e7a4840119036f261ed17eaaff85734
extra : source : ae07ee48000c4a52da0e4fd502b4d690ec51ce1f
2017-04-17 16:35:04 +08:00
JW Wang 302d82c85a Bug 1356530 - Change the type of MediaData::mTime to TimeUnit since int64_t is ambiguous. r=kaku
MozReview-Commit-ID: 4bVeqIuWO2O

--HG--
extra : rebase_source : d504ac15a6dc59ad42f3ab80faf23f629d74315f
extra : intermediate-source : 6e52995b6c8146451d98dffc62f6907755dc856e
extra : source : 82d2649cdafb5a6389f6858c23578811933580c9
2017-04-14 17:13:36 +08:00
JW Wang 235f1f55ed Bug 1356506 - change the type of MediaData::mTimecode to TimeUnit since int64_t is ambiguous. r=gerald
MozReview-Commit-ID: 7dO5OOUuORz

--HG--
extra : rebase_source : 1c1c020700d9180ef9f85d7e2e679f498ab71fce
extra : intermediate-source : d173c820bef7a113e28e9732c42e8c1af36160ab
extra : source : 04c08a780526ca3a5ac4d1a6f9b7ae30d9957e92
2017-04-14 14:52:14 +08:00
JW Wang 6359124d70 Bug 1355756. P3 - let CreateAndCopyData() and its friends take TimeUnit for duration. r=gerald
MozReview-Commit-ID: ES0on9VCuu3

--HG--
extra : rebase_source : 8d3e80ec2e1923587b5865516a16bfff9009397d
extra : intermediate-source : 3e59c61b1ccef78e3e8fe52791d7104aade7930c
extra : source : 46fd639ea6a2219bbed70f6555a2acf03ec01a7a
2017-04-12 17:46:09 +08:00
JW Wang 464497b945 Bug 1355756. P1 - change the type of MediaData::mDuration to TimeUnit. r=gerald
MozReview-Commit-ID: 3d4bUYtSuMI

--HG--
extra : rebase_source : 94c821b6d381421035e6a12cbe038436055c5822
extra : intermediate-source : 9a06beffc736486f47b9cf05e7f482e726d53068
extra : source : fdbdcd5c1474f04dc1dbde66fcf3a9ecec953053
2017-04-12 17:27:34 +08:00
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