Commit Graph

729 Commits

Author SHA1 Message Date
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
Carsten "Tomcat" Book
ceb8695fd3 Merge mozilla-central to mozilla-inbound 2016-09-27 11:26:17 +02:00
Carsten "Tomcat" Book
762cd18602 Merge mozilla-central to autoland 2016-09-28 16:52:13 +02:00
James Cheng
48efb9caad Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
MozReview-Commit-ID: JboGO0w4tcE

--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Iris Hsiao
bea139e001 Merge mozilla-central to autoland 2016-09-26 19:14:57 +08:00
Jean-Yves Avenard
dd2a72e7cc Bug 1297311: P1. Always recreate a decoder when SPS changes. r=cpearce
This allow consistency between platforms. A decoder will now always be shutdown and another one created if the video configuration changes.

MozReview-Commit-ID: 1SPzhVuBrip

--HG--
extra : rebase_source : f4d0347c4686d2f3ec0e4cf065a6c3fa36b7ea06
2016-09-26 12:28:07 +10:00
Carsten "Tomcat" Book
a65e4225ef merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
Matt Woodrow
cedd3bc438 Bug 1302918 - Add PVideoBridge to share textures with the compositor. r=dvander,nical 2016-09-23 09:44:26 +12:00
Kilik Kuo
a9eb354248 Bug 1302331 - [Part3] Create CryptoInfo from MediaRawData and deliver it to MediaCodecDataDecoder or remote codec decoder. r=jchen,jolin
MozReview-Commit-ID: 9pHHrhQPs9m

--HG--
extra : rebase_source : 34829208221e4787b25e29ad75b57d113f7e94c0
2016-09-20 16:44:30 +08:00
Carsten "Tomcat" Book
d25a5baeb8 merge mozilla-inbound to mozilla-central a=merge 2016-09-22 11:55:12 +02:00
Carsten "Tomcat" Book
23879d2b18 Merge mozilla-central to mozilla-inbound 2016-09-21 12:07:46 +02:00
Matt Woodrow
d57dae2c04 Bug 1288618 - Part 15: Add media code interface RemoteVideoDecoder. r=cpearce,dvander 2016-09-21 21:25:41 +12:00
Matt Woodrow
32054a681a Bug 1288618 - Part 3: Avoid accessing MediaPrefs from the GPU process within WMF code. r=cpearce 2016-09-21 21:24:43 +12:00
Matt Woodrow
fb5b16533d Bug 1288618 - Part 2: Allow allocating D3D9/11 Images when we don't have a recycling allocator available. r=nical 2016-09-21 21:24:43 +12:00
Matthew Woodrow
76c0ae8105 Bug 1288618 - Part 1: Use gfxVars for CanUseHardwareVideoDecoding so we can access it in the GPU process. r=dvander 2016-08-25 15:48:35 +12:00
Carsten "Tomcat" Book
f918af64da Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE
Backed out changeset 06187d250f7a (bug 1288618)
Backed out changeset 2a47f8ea1d89 (bug 1288618)
Backed out changeset e179c8e8265d (bug 1288618)
Backed out changeset 25396a1af922 (bug 1288618)
Backed out changeset e98f835c6ee5 (bug 1288618)
Backed out changeset 24df0e89b273 (bug 1288618)
Backed out changeset f8bbdabdb6da (bug 1288618)
Backed out changeset 8b0adeab93df (bug 1288618)
Backed out changeset 95f23366de82 (bug 1288618)
Backed out changeset 63a9c689e1d5 (bug 1288618)
Backed out changeset 8f67443dccb8 (bug 1288618)
Backed out changeset 4e7fe69d5f45 (bug 1288618)
Backed out changeset 53b113acee42 (bug 1288618)
Backed out changeset 2583ae4e2e3b (bug 1288618)
Backed out changeset 75a61d0e71b7 (bug 1288618)
Backed out changeset da740b4fd484 (bug 1288618)
2016-09-21 08:44:11 +02:00