Commit Graph
88 Commits
Author SHA1 Message Date
Jean-Yves Avenard 898931ecdc Bug 1401922 - P2. Only set error when non handled. r=alwu
MozReview-Commit-ID: CF2Iw0i0nD8
2017-09-21 13:29:54 +02:00
Jean-Yves Avenard f7f105d1e3 Bug 1397307 - P2. Wrap boolean in structure to prevent unwanted conversion. r=gerald
Automatic conversion (say from int to bool) makes DecoderParam difficult to extend.

MozReview-Commit-ID: G0T7jPogskN
2017-09-08 15:45:38 +02:00
Alastor Wu a232ea30ce Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr
2017-09-13 15:05:52 +08:00
Sebastian Hengst 2ecd185319 Backed out changeset 9140f22570ea (bug 1397141) 2017-09-13 09:25:44 +02:00
Alastor Wu 55f6eb665e Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr
2017-09-13 15:05:52 +08:00
Alastor Wu 0aa9173c17 Bug 1396547 - use Supports() in PDMFactory::CreateDecoder() instread of SupportsMimeType(). r=jya
The TrackInfo [1] created in WMFDecoderModule::SupportsMimeType() doesn't contain valid image's width and height, because the TrackInfo is created without width and height [2] and the default width and height are both -1 [3].

Thesefore, we can't correctly check whether this resolution is supported by MFT [4]. We should use Supports() instead of SupportsMimeType().

[1] https://goo.gl/QV8Jgm
[2] https://goo.gl/4siShn
[3] https://goo.gl/BDoXYf
[4] https://goo.gl/BZh4QA

MozReview-Commit-ID: 4dIJ84eaytq
2017-09-04 18:50:23 +08:00
Jean-Yves Avenard 278692ecb6 Bug 1396515: Fix incorrect && and || operator placements. r=sylvestre
Includes some side 80 columns fix.

MozReview-Commit-ID: IXRoQfM0Hjc
2017-09-04 11:27:43 +02:00
Kilik Kuo ceebb57852 Bug 1279171 - Do not use WMF when application is in Windows pre-2000 compatibility mode. r=froydnj
MozReview-Commit-ID: BPiz2WWrshF
2017-08-24 11:46:56 +08:00
Eric Rahm d419d4fef3 Bug 1389598 - Part 3: Remove gonk references from dom/ r=bkelly 2017-08-11 17:42:11 -07:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bill McCloskey 44974a4452 Bug 1365098 - Convert NS_GetCurrentThread uses in dom/media (r=cpearce)
MozReview-Commit-ID: DUPt6xj49zz
2017-06-12 20:20:08 -07:00
Chun-Min Chang d4f1f0adc9 Bug 1349128 - Remove duplicated AndroidDecoderModule in mCurrentPDMs if both PDMAndroidMediaCodecEnabled and PDMAndroidMediaCodecPreferred are set to true; r=jya
The AndroidDecoderModule will be added into PDM queue twice if both PDMAndroidMediaCodecEnabled and PDMAndroidMediaCodecPreferred are set to true. It should be inserted into the head of the PDM queue in this case, and appended to the tail if only PDMAndroidMediaCodecEnabled is true.

MozReview-Commit-ID: Fj0z0meeb1V
2017-03-22 14:14:09 +08:00
Kaku Kuo 5a5c6483b4 Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R
2017-03-09 17:12:02 +08:00
Iris Hsiao 03d30d3cc2 Backed out 6 changesets (bug 1346120) for autophone Mdm tests failure in test_background_video_drawimage_with_suspended_video.html
Backed out changeset a30c73fc8d69 (bug 1346120)
Backed out changeset f16556658fd9 (bug 1346120)
Backed out changeset 98d212462786 (bug 1346120)
Backed out changeset ba579adbed21 (bug 1346120)
Backed out changeset c0758b9bf7b5 (bug 1346120)
Backed out changeset 94a483ef784e (bug 1346120)
2017-03-13 16:53:14 +08:00
Kaku Kuo 258218c07c Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R
2017-03-09 17:12:02 +08:00
Jean-Yves Avenard d5dfcc285d Bug 1334971: P2. Fix coding style. r=gerald
MozReview-Commit-ID: 1xMcYn354NT
2017-02-07 07:57:04 +01:00
Jean-Yves Avenard 927a0178dd Bug 1319987: P2. Remove FuzzingWrapper. r=gerald
It is no longer used and in its current state incompatible with promise based decoders.

We'll re-add it later.

MozReview-Commit-ID: DHsyTsFvTZB
2016-12-21 10:52:01 +11:00
Masatoshi Kimura ef998604af Bug 1334870 - Remove useless version check from PDMFactory. r=cpearce
MozReview-Commit-ID: 8Rlwm5XfKxD
2017-01-29 16:44:19 +09:00
Jean-Yves Avenard 08c987b9e6 Bug 1328038: Refuse to play High 4:4:4 Predictive Profile. r=JamesCheng
It is not supported by Windows WMF.

MozReview-Commit-ID: 2OyjC0qGwD4
2017-01-03 06:58:09 +11:00
Nathan Froyd b995466f21 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Kilik Kuo 4a06d362fc Bug 1307818-[P2] Setup MediaCrypto for both in-process and out-of-process decode. r=cpearce,jchen
MozReview-Commit-ID: Ehbm2u8LeLg
2016-11-16 22:10:01 +08:00
Chris Pearce b3e99fa096 Bug 1314858 - Remove GMPDecoderModule::UpdateUsableCodecs. r=gerald
MozReview-Commit-ID: 7678JImLL9T
2016-11-02 15:31:21 +13:00
Matt Woodrow 62d9f7cfa0 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
Gerald Squelart b3d603dbb4 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
2016-10-07 15:30:30 +11:00
James Cheng 11e2896150 Bug 1297003 - Part1-Store the error information in MediaResult while creating a/v decoders r=gerald
MozReview-Commit-ID: I6R4bX778n7
2016-10-06 11:19:56 +08:00
Chris Pearce b0cf2dfd70 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
2016-10-04 16:05:53 +13:00
James Cheng 42e8029df1 Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
MozReview-Commit-ID: JboGO0w4tcE
2016-09-08 18:06:20 +08:00
James Cheng c49cd84c7e Bug 1305670 - Fix typo from SetA/VFormatNotSupport to SetA/V NotSupported r=gerald
MozReview-Commit-ID: 7kw8JPPlGcT
2016-09-27 17:37:13 +08:00
Matt Woodrow 07e3828de0 Bug 1288618 - Part 15: Add media code interface RemoteVideoDecoder. r=cpearce,dvander 2016-09-21 21:25:41 +12:00
Carsten "Tomcat" Book e2adb4a537 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
Matt Woodrow daac9e7bd5 Bug 1288618 - Part 15: Add media code interface RemoteVideoDecoder. r=cpearce,dvander 2016-09-21 15:36:41 +12:00
Carsten "Tomcat" Book eb7eb0a749 Backed out changeset 00cc54c30222 (bug 1288618) 2016-09-15 16:33:57 +02:00
Matt Woodrow 2fa51ef9a6 Bug 1288618 - Part 15: Add media code interface RemoteVideoDecoder. r=cpearce,dvander 2016-09-15 23:18:00 +12:00
Jean-Yves Avenard d240fde363 Bug 1301059: Do not use H264Converter when video decode is suspended. r=jya
MozReview-Commit-ID: FWvn3Xkalsl
2016-09-07 23:59:59 +10:00
James Cheng fa05d201d6 Bug 1300693 - adjust the indent. r=jya
MozReview-Commit-ID: 1CMzYy3jQPC
2016-09-07 15:31:22 +08:00
James Cheng 2445133bde Bug 1300693 - BBCiPlayer (TV) HTML5 broken in Nightly 51.0a1. r=jya
MozReview-Commit-ID: KY0EpZGZ85A
2016-09-06 14:16:07 +08:00
James Cheng 8ef6e2639d Bug 1291742 - Report MP4 videos with YUV444 format as unsupported. r=gerald
MozReview-Commit-ID: DxFfSIeYANR
2016-08-19 18:14:28 +08:00
Kaku Kuo ecf28b320b Bug 1274626 part 4 - provide APIs to create blank decoders; r=jya
MozReview-Commit-ID: LiXOAzvVb1K
2016-07-28 23:11:57 +08:00
Carsten "Tomcat" Book 4a1d16e2d9 Backed out changeset 222b4883bf79 (bug 1274626) 2016-08-02 17:47:27 +02:00
Carsten "Tomcat" Book 4a8f4b4c7a merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
Bryce Van Dyk d5acd96c8e 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
2016-07-29 14:12:54 +12:00
Gerald Squelart 452fb14fc2 Bug 1289378 - Fix inter-locking in PDMFactory+GMPDecoderModule - r=jya
Say PDMFactory::EnsureInit() runs on the main thread (effectively locking it)
and then tries to lock sMonitor; if another thread was also running
EnsureInit() and locked sMonitor, it will dead-lock when trying to sync-
dispatch the GMPDecoderModule creation to the main thread.

This can be fixed by ensuring that the actual PDMFactory instance creation is
always done on the main thread (and that we don't hold sMonitor before
dispatching to the main thread.)

Note that we can now simplify GMPDecoderModule::Init and assert we are already
on the main thread.

MozReview-Commit-ID: 8xHpoymw6po
2016-07-27 12:43:33 +10:00
Kaku Kuo e11cf4b1cb Bug 1274626 - Part 4 - provide APIs to create blank decoders; r=jya
MozReview-Commit-ID: LiXOAzvVb1K
2016-07-28 23:11:57 +08:00
Dan Glastonbury e63172cab6 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
2016-06-28 17:56:55 +12:00
Gerald Squelart 975ed267d7 Bug 1271483 - p1. Optionally treat media.wmf.disabled as WMF failure for Decoder Doctor - r=cpearce
This can be used to test Decoder Doctor on Windows, but disabling WMF through
prefs, to trigger an Decoder Doctor infobar.

MozReview-Commit-ID: 1aRk111VFO7
2016-05-24 01:33:37 +10:00
JW Wang cbe7f99505 Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
MozReview-Commit-ID: E3DG84yKRmw
2016-05-19 17:50:31 +08:00