Commit Graph

745 Commits

Author SHA1 Message Date
Kilik Kuo
f041399009 Bug 1307818-[P2] Setup MediaCrypto for both in-process and out-of-process decode. r=cpearce,jchen
MozReview-Commit-ID: Ehbm2u8LeLg

--HG--
extra : rebase_source : 63ddb16545e254b468e9f72f8c4ad7c957f8b29b
2016-11-16 22:10:01 +08:00
Chris Pearce
0a0e9d8f06 Bug 1317822 - Move GMPCrashHelper into its own file. r=gerald
MozReview-Commit-ID: 7CinZ2Y2Fmz

--HG--
extra : rebase_source : 3b176cbfadebf6463384105c261ff208bc58b1c2
2016-11-16 11:35:36 +13:00
Chris Pearce
1b21fde486 Bug 1306314 - Pass decryptor ID to GMPVideoDecoder constructor. r=gerald
Retrieve the ID of the GMPDecryptor from the GMPCDMProxy, and pass that
through to the GMPVideoDecoder's constructor.

MozReview-Commit-ID: IuNsSroZ9Zu

--HG--
extra : rebase_source : d678628dec67a059aec06918f07ea93ecc54a5f9
2016-11-14 11:07:02 +13:00
Carsten "Tomcat" Book
c7a033c3e2 merge mozilla-inbound to mozilla-central a=merge 2016-11-14 10:22:06 +01:00
Iris Hsiao
891306a89a Backed out changeset 9343cb73c218 (bug 1306314) 2016-11-14 11:07:28 +08:00
Chris Pearce
5926bef365 Bug 1306314 - Pass decryptor ID to GMPVideoDecoder constructor. r=gerald
Retrieve the ID of the GMPDecryptor from the GMPCDMProxy, and pass that
through to the GMPVideoDecoder's constructor.

MozReview-Commit-ID: IuNsSroZ9Zu

--HG--
extra : rebase_source : 6f1db4a019deaedac07fa15c1958270268dcb941
2016-11-14 11:07:02 +13:00
James Cheng
abcc5095b5 Bug 1314863 - Correct data sample being fed twice to the decoder r=jya
MozReview-Commit-ID: 2TmHiLju0C4

--HG--
extra : rebase_source : 1dc08471d0cd2df393fecaa53b8bd6cc9b457f58
2016-11-10 17:52:39 +08:00
Gerald Squelart
adda9b7a03 Bug 1316524 - Use 'media.wmf.skip-blacklist' to set some gfxVars - r=mattwoodrow
Reversing bug 1313343, as MediaPrefs are not available from the UI process.
Instead media.wmf.skip-blacklist is used when setting D3D-blacklisting gfxVars,
leaving them empty if we want to skip these blacklists.

MozReview-Commit-ID: JYED4ovC0jq

--HG--
extra : rebase_source : 087230ba95927ced52d7af502b96a988b4077c31
2016-11-11 11:25:52 +11:00
Carsten "Tomcat" Book
4b6cab91f9 merge mozilla-inbound to mozilla-central a=merge 2016-11-10 16:59:38 +01:00
Carsten "Tomcat" Book
d99cbddf48 Backed out changeset d32e0a4ff68c (bug 1314863) on request from jya 2016-11-10 11:02:32 +01:00
Masatoshi Kimura
293cc1082e Bug 1313280 - Suppress warnings from third-party sources. r=glandium
MozReview-Commit-ID: 4R6mPbWIrAm

MozReview-Commit-ID: D15liHKGXHv

MozReview-Commit-ID: KQj3wDLxRZI

--HG--
extra : rebase_source : 4743f1ed016dd8ce488f3cda1ea97ebba072c266
extra : source : 84f6d4e2d33bdf2d9f88d280894a7a5364cf451d
2016-11-04 22:51:17 +09:00
James Cheng
281025dce6 Bug 1314863 - Data sample fed potentially fed twice to the decoder. r=jya
MozReview-Commit-ID: 2TmHiLju0C4

--HG--
extra : rebase_source : a364a4b53dc9bc5b33395f18a16264256cace71f
2016-11-10 14:53:15 +08:00
Jean-Yves Avenard
87a107c468 Bug 1313632: P2. Cleaner Ogg related headers. r=kaku
MozReview-Commit-ID: DpnezpZw27H

--HG--
extra : rebase_source : 3700dbccbc98ae2aadd29fcf3fbef3e38fdec13c
2016-11-09 12:19:06 +11:00
Gerald Squelart
6f36d2e8a8 Bug 1313343 - media.wmf.skip-blacklist controls D3D blaclists - r=cpearce
If pref "media.wmf.skip-blacklist" is true, disable D3D blacklisting based on
"media.wmf.disable-d3d9-for-dlls" and "media.wmf.disable-d3d11-for-dlls".

MozReview-Commit-ID: IothZlUnK7h

--HG--
extra : rebase_source : 1731b39808526fce70d84342a016bd25b6cd8571
2016-11-07 18:12:51 +11:00
James Cheng
7fe0f38dac Bug 1315298 - Remove redundant RefPtr = this in H264Converter.cpp. r=jya
MozReview-Commit-ID: GzYes5HoCeM

--HG--
extra : rebase_source : 2745010535ab4d7749d493cb5e0c3708ab0983e8
2016-11-05 00:14:13 +08:00
Chris Pearce
5cba5b5a25 Bug 1314858 - Refactor multiple callers of HasPluginForAPI into a helper. r=gerald
I've repeated myself a few times, so make a helper to make determining which
GMPs are available easier.

MozReview-Commit-ID: 2fFLeaA5o8u

--HG--
extra : rebase_source : 74ea0b429d339273535610df3bbd7fec7beae469
2016-11-03 14:33:31 +13:00
Chris Pearce
7250493ddc Bug 1314858 - Remove GMPDecoderModule::UpdateUsableCodecs. r=gerald
MozReview-Commit-ID: 7678JImLL9T

--HG--
extra : rebase_source : 77cd678431669cc3932cfaabc7034e546b92166c
2016-11-02 15:31:21 +13:00
Chris Pearce
776ec7bfa9 Bug 1314858 - Make GMPDecoderModule::SupportsMimeType call GMPService::HasPluginForAPI() directly. r=gerald
MozReview-Commit-ID: 3VblaPbTQFJ

--HG--
extra : rebase_source : 6f66e97cb22fa8f92a2d26adffeba60ec8a30936
2016-11-02 10:04:39 +13:00
John Lin
aae0af521c Bug 1313993 - Return zero-duration video frames. r=snorp
MozReview-Commit-ID: I5LDWb4V1ky

--HG--
extra : rebase_source : 4e94338d5f200741afa7cc3133ff8cd265a075bf
2016-11-01 12:46:04 +08:00
Phil Ringnalda
45c34d7e95 Merge m-c to autoland 2016-11-02 20:03:20 -07:00
Matt Woodrow
5375ddbb83 Bug 1300681 - Use gfxVars for DXVA blacklist prefs so that they work in the GPU process. r=dvander,gerald 2016-11-03 09:57:18 +13:00
Matt Woodrow
552d016944 Bug 1300678 - Use gfxPrefs for media vars that get accessed from the GPU process. r=jya 2016-11-03 09:57:18 +13:00
Matt Woodrow
b087b32f08 Bug 1314192 - Initialize the normal WMF PDM as well as the Remote one since we need it as fallback for audio. r=jya 2016-11-03 09:57:18 +13:00
Ralph Giles
2de2f42926 Bug 1266792 - Don't play opus with AndroidDecoderModule. r=jya
The android 5.1.1 OMX decoder claims to support audio/opus
but crashes on the output of our mp4 demuxer. Work around
this by rejecting the mime type, allowing fallback to the
libopus-based AgnosticDecoderModule.

In any case, since we're shipping the libopus-based decoder
we're prefer to use it for consistency.

MozReview-Commit-ID: GQaTMALajnZ

--HG--
extra : rebase_source : fb43ddc6bd7b5ed92308124045ad2330a8043f46
2016-10-31 16:39:03 -07:00
Jean-Yves Avenard
fea3627b11 Bug 1292374: P2. Change preference name as it's no longer restricted to intel. r=gerald
MozReview-Commit-ID: EKZjkj9SFDw

--HG--
extra : rebase_source : e022610307232edc17b746f01879b2cddc16b6ef
2016-10-28 17:03:25 +11:00
Joe Olivas
5753f883ef Bug 1292374: P1. Add support for full hardware acceleration in VP9. r=jya
MozReview-Commit-ID: ENawyqrzVgH

--HG--
extra : rebase_source : 53e6879b9f2841de5880778503bf20baada15583
2016-10-27 09:59:00 +11:00
JW Wang
a92f42e8f7 Bug 1313557 - remove the assertion from InternalInit() to avoid data race. r=jya
MozReview-Commit-ID: B9GCHOjMqVf

--HG--
extra : rebase_source : da1d80dc1d8f3a34a826192e0bcd146a54c11a8f
2016-10-28 11:43:03 +08:00
Matt Woodrow
bda6eacad9 Bug 1313281 - Part 1: Remove AsyncTransactionTracker. r=sotaro 2016-10-27 20:59:23 +13:00
Jean-Yves Avenard
a4f3312d22 Bug 1311876: P3. Provide more details when audio decoder errors. r=gerald
MozReview-Commit-ID: Dbh2Cvyq1NH

--HG--
extra : rebase_source : 6fa83589965db1f63c80c18bb6c94b896c1b894b
2016-10-26 11:34:46 +11:00
Jean-Yves Avenard
83df18207f Bug 1311876: P2. Recreate audio decoder when an error occurs. r=gerald
MozReview-Commit-ID: CwQMZwSNndO

--HG--
extra : rebase_source : d76bd3c15f4d4fc54fcb6f4659ad3d501433f8be
2016-10-26 09:06:14 +11:00
John Lin
ce8e57f426 Bug 1295106 - Part 1: abstract payload in Sample to support both Java byte array and shared memory. r=snorp
MozReview-Commit-ID: GFcwSyHlR4

--HG--
extra : rebase_source : 442487fcee43d86f974f87c69466e5fbb5d2793f
2016-09-08 11:20:34 +08: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
Carsten "Tomcat" Book
2844380bd4 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
2016-10-12 12:01:48 +02: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
02a3f88827 Bug 1285883: Limit how many frames we will parse to detect HE-AAC. r=kamidphish
MozReview-Commit-ID: JJEGomJZLio

--HG--
extra : rebase_source : d9b1f1770f3e2a345cc3709ee33efddd00e115f6
2016-10-07 13:49:42 +11:00
Gerald Squelart
0e173b53b1 Bug 1176218 - p13. Reject Resolutions that are too big for Windows' decoder - r=jya
The WMFDecoderModule can override Supports(TrackInfo) to reject resolutions
that we know are too big for the platform decoder.

MozReview-Commit-ID: dU905wjZcJ

--HG--
extra : rebase_source : 40e5987deeffff652a88264f157391c0dbc0a2da
2016-10-07 15:51:34 +11:00
Gerald Squelart
a583c59045 Bug 1176218 - p11. PDM's Supports(TrackInfo) - r=jya
Add a new method alongside SupportsMimeType, which takes a TrackInfo that may
contain more information that just the MIME type.

Eventually the old SupportsMimeType should be removed, but we keep it for now,
as it is used quite extensively and it would be out of scope of this bug to
totally replace it now.

MozReview-Commit-ID: LJQBvSUB6J2

--HG--
extra : rebase_source : 6f43bf61dc6e51de3714c9a556428c7ba4fd484d
2016-10-07 15:30:30 +11:00
Ryan VanderMeulen
e980397fb4 Merge m-c to autoland. a=merge 2016-10-07 23:22:46 -04:00
Matt Woodrow
a36eef926a Bug 1300682 - Part 5: Use KnowsCompositor to initialize decoders and create one for VideoDecoderParent to use. r=nical,jya 2016-10-07 21:13:33 +13:00
James Cheng
0fe5b0b71b Bug 1297003 - Part1-Store the error information in MediaResult while creating a/v decoders r=gerald
MozReview-Commit-ID: I6R4bX778n7

--HG--
extra : rebase_source : 66f0dc1dd4cfc91daec9790b51ce413ac669b931
2016-10-06 11:19:56 +08:00
Jean-Yves Avenard
4a7fd611df Bug 1301869: P1. Only add SPS/PPS on the first keyframe. r=cpearce
When we add SPS/PPS NAL in front of each keyframe data, this somehow makes the WMF decoder to misbehave and to always return an invalid timestamp.

MozReview-Commit-ID: 2SzTiwP0ii1

--HG--
extra : rebase_source : b499c83d504df772e6d722053630ff4d92306d4f
2016-10-06 11:38:52 +11:00
Chris Pearce
1c82c47cb2 Bug 1279171 - Add Windows Version checks in wmf::MFStartup() and PDMFactory::CreatePDMs(). r=mattwoodrow
I was able to reproduce the crash in CMFPropertyStore::CreatePropertyStore
once when running under Win95 Compatibility mode. Normally Firefox crashes
trying to start up under Compatibility mode, so it's hard for me to verify
that this patch fixes the crash. We'll just have to push it and see.

In compatibility mode, GetVersionEx() returns the Windows version being
emulated, so if we add version checks around where we start up WMF, we
should catch the users running in compatibility mode.

We can also refrain from starting the RemoteDecoderModule if we're not
going to be able to use WMF in the GPU process; if we're on Windows less
than Vista, or if we're emulating Windows less then Vista.

MozReview-Commit-ID: Iu4B1NcgHio

--HG--
extra : rebase_source : 80e9f446a60c7f4edcb1219ec2702e68376e3aa0
2016-10-04 16:05:53 +13:00
Eric Rahm
e5be6e71b3 Bug 1307223 - Don't warning multiple times about WMF dlls failing to load. r=cpearce
We already report failure in |LoadDlls| on the initial failure to load, there's
no need to warn more than once per session.

MozReview-Commit-ID: FhsR2ZaMSLT

--HG--
extra : rebase_source : ae7d94af5c9d9253b82b2d45dc6967b5b21c6492
2016-10-03 14:02:15 -07:00
Carsten "Tomcat" Book
5b45193594 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Jim Chen
3f0f41aeb3 Bug 1305271 - 2. Add and use jni::IsFennec() for Fennec-only code; r=snorp
Add jni::IsFennec() that returns whether we're in a Fennec environment
(defined as the presence of the GeckoApp class). Then, add
jni::IsFennec() checks to places where we use JNI for Fennec-only classes.
2016-09-28 23:49:25 -04:00
Carsten "Tomcat" Book
572e74ee99 merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Alexandre Lissy
07037f896b Bug 1305655 - Decouple Gonk TextureForwarder and CompositableForwarder (followup bug 1281456) r=nical
MozReview-Commit-ID: 1sUiqnFEPdx
2016-09-28 07:04:13 +02:00