Commit Graph

264 Commits

Author SHA1 Message Date
JerryShih
384661a8d6 Bug 1357299 - P8: Add some function result checkings for DXVA2 video decoding. r=mattwoodrow
Check the buffer appending status for the video sample object.
Check for the IMFTransform output status.

MozReview-Commit-ID: J0bn6NB7gi0
2017-08-07 18:15:23 +08:00
JerryShih
0556445e64 Bug 1357299 - P6: Turn on DXVA with LAYERS_WR and ANGLE backend. v2. r=mattwoodrow
MozReview-Commit-ID: EOOp0Dzenub
2017-08-07 18:15:23 +08:00
Bevis Tseng
a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Gerald Squelart
32e0bc9b81 Bug 1383541 - Allow 4096x2304 H264 on win7 with recent decoder - r=jya
MozReview-Commit-ID: HD1AcxbGChX

--HG--
extra : rebase_source : afb79e3898fc6a3210a73a4f61edbd671931f422
2017-07-25 16:59:24 +12:00
Gerald Squelart
00733dbc57 Bug 1383541 - WMFDecoderModule shouldn't call useless IsH264DecoderBlacklisted() - r=jya
This function now always returns false (since bug 1253395), so
WMFDecoderModule::HasH264 doesn't need to call it anymore.

Note that we are keeping the code, as we will slightly modify it in the next
patch for a different use.

MozReview-Commit-ID: 7fzktsnFU2m

--HG--
extra : rebase_source : e7538ae792b7c31393079244a286c340d798588d
2017-07-25 16:46:53 +12:00
JW Wang
87a7705558 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e

--HG--
extra : rebase_source : 48bfd7c681693a965848078c19ac81707ac19540
extra : source : 093ff5fe2ab6dd7551453b10b480fa3553ec135d
2017-07-20 09:56:08 +08:00
Bas Schouten
be92d4e45b Bug 1375461: Ensure mSyncObject isn't null before attempting to sync with it. r=mattwoodrow
MozReview-Commit-ID: HuflJDLhlRl

--HG--
extra : rebase_source : 8da9af58bcda88f63162b094cc1d789038848f1a
2017-07-10 07:49:34 +00:00
Jean-Yves Avenard
d61a420f11 Bug 1376838: Revert "Bug 1360006: Whitelist VP9 decoder to intel GPU only." r=cpearce
This reverts commit 77f2dd5563d2c3e9ad7ada388036f1846c1e2107

MozReview-Commit-ID: 71Hr05Z6hA4

--HG--
extra : rebase_source : 3efa2e95d2a560b43443a07fc1948cf146d054f0
2017-06-28 19:45:24 +02:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Jean-Yves Avenard
e139a2d44e Bug 1373229: P2. Disable DXVA HW decoder if ID3D10Multithread not supported. r=jya
MozReview-Commit-ID: OMFltNZaYe

--HG--
extra : rebase_source : 35b3dc14296c1630f9cebe000609b3e6e99e30f4
2017-06-21 14:40:12 +02:00
Jean-Yves Avenard
3f9301d589 Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. r=jya
MozReview-Commit-ID: 9zzUJ0utqQm

--HG--
extra : rebase_source : f13c93f8845a1630490e173ac37e948b8c03b6ff
2017-06-16 23:15:00 +02:00
Jean-Yves Avenard
10d2da1b08 Bug 1374596: P7. Fix includes as per coding style. r=padenot
MozReview-Commit-ID: 5WfOWcOoxg0

--HG--
extra : rebase_source : 988c09623e83a0d9188d9ff5d705314e2c43e756
2017-06-20 17:56:55 +02:00
Jean-Yves Avenard
caf8ded66d Bug 1374936: P2. Check for error. r=mattwoodrow
MozReview-Commit-ID: A8Cy3BsZS8h

--HG--
extra : rebase_source : b68539f27a8fa1723bd61dda6cff07e13f59e97d
2017-06-21 08:48:18 +02:00
Jean-Yves Avenard
a44433f0b6 Bug 1374936: P1. Properly output ARGB32 with transform. r=mattwoodrow
MozReview-Commit-ID: Cp4fBtqDh7A

--HG--
extra : rebase_source : 35bdf9b4b4e57587cd1878fe9f3035be04895beb
2017-06-21 08:45:52 +02:00
Carsten "Tomcat" Book
47e4bdba4f Backed out changeset de548d84af20 (bug 1373229) 2017-06-20 09:41:32 +02:00
Jean-Yves Avenard
e80cd91595 Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. r=bas
Additionally, we disable hardware decoding on those systems.

MozReview-Commit-ID: 9zzUJ0utqQm

--HG--
extra : rebase_source : 0e7fdaf166a47969338018dea0d5fd9f1efb8d4b
2017-06-16 23:15:00 +02:00
Jean-Yves Avenard
f8c58713e0 Bug 1371290: P2. Override sample duration if unknown. r=mattwoodrow
The VP9 decoder doesn't properly set the sample duration, leading to all samples being marked as having a zero duration.

The compositor drops those frames incorrectly. This issue will be addressed in bug 1222874.

MozReview-Commit-ID: JQdtTL4nAN

--HG--
extra : rebase_source : 7c69cd3522c4b2231a07ab3f3c1d012843ac2f69
2017-06-08 13:48:39 +02:00
Jean-Yves Avenard
3351746b41 Bug 1371290: P1. Use TimeUnit in WMF decoder. r=mattwoodrow
Using a float to store the last duration was unwise (as it has only a 24 bits mantissa), luckily it wasn't used except very particular circumstances.

MozReview-Commit-ID: BpL8ufQFNeR

--HG--
extra : rebase_source : b4a5a1301be4a0a81d1907b6296cbb4b6c4877d9
2017-06-08 13:44:46 +02:00
Jean-Yves Avenard
9f0eebe46e Bug 1370079: P1. Don't check for DXVA support when checking for VP9 support. r=mattwoodrow
SupportsMimeType is called in the content process, for which, following bug  1338011, dxva is marked as disabled.

CanCreateWMFDecoder already performs the check of allowing VP9 only if it's hardware accelerated, so we don't need to test if dxva is enabled prior.

MozReview-Commit-ID: 7Jvaop6ZznU

--HG--
extra : rebase_source : 854e7b09718863e710843d11c9327de47abf1076
2017-06-08 13:54:00 +02:00
Jean-Yves Avenard
a9142498ec Bug 1360006: Whitelist VP9 decoder to intel GPU only. r=mattwoodrow
We enable by default the VP9 hardware decoder on intel GPU.

MozReview-Commit-ID: FzMzbpZErjQ

--HG--
extra : rebase_source : f34c969f7dda1ef24224e982f31d5e43cfae7cc0
2017-06-01 22:17:56 +02:00
Chris Pearce
12f8d2203e Bug 1352556 - Validate output of MFGetAttributeSize. r=gerald
MozReview-Commit-ID: J1NirhKfTK6
2017-05-01 16:12:27 +12: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
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
Jay Harris
6ce213e795 Bug 1338011 - Adds an intermediate fallback when the GPU process crashes - r=gerald
MozReview-Commit-ID: 9x1ckaWagcE

--HG--
extra : rebase_source : 2962f8572dd36b2dfecb7bb30ba515fc7c6323c9
2017-04-15 09:34:01 +12:00
JW Wang
f45fa7374e Bug 1355740 - Change the type of TrackInfo::mDuration to TimeUnit. r=jya
MozReview-Commit-ID: P7aqw4d5Vk

--HG--
extra : rebase_source : f22743fec9c8b70cbb092e3b26e252e7a4cb0b31
extra : source : 2413cd58f073b734a2cb85cec3658942bfd46e08
2017-04-12 16:41:36 +08:00
Kaku Kuo
0b870b3650 Bug 1351526 - Label runnables in dom/media/platforms/wmf/WMFVideoMFTManager.cpp; r=jwwang
MozReview-Commit-ID: 9vtEKRgNnI6

--HG--
extra : rebase_source : 9bd7212c6a7f7606bcf7a5877d6e14a21e747114
2017-03-29 10:38:39 +08:00
Kaku Kuo
45bc331e6b Bug 1351525 - Label runnables in dom/media/platforms/wmf/WMFAudioMFTManager.cpp; r=jwwang
MozReview-Commit-ID: AdVCmnyGTNS

--HG--
extra : rebase_source : 70150afefa2b1c38a8f51a217752257c22442978
2017-03-29 10:32:35 +08:00
Jean-Yves Avenard
925cb2babd Bug 1350148: [AAC] Don't set channel count on output decoder. r=gerald
Windows AAC decoder decode a mono AAC stream into a stereo PCM. Bug 1347101 set the output to be mono, which caused a failure to find the appropriate IMFMediaType.

This partially revert bug 1347101 audio changes.

MozReview-Commit-ID: 2M4X4rKKvXl

--HG--
extra : rebase_source : 6b7330a7edfc2c0504171828526221dcccb6f8c5
2017-03-24 09:48:07 +01:00
Jean-Yves Avenard
c48398abd9 eBug 1347101: P2. Don't rely on MF_E_TRANSFORM_STREAM_CHANGE result. r=mattwoodrow a=Tomcat
Under some circumstances, and seen on Windows 8, a decoded sample can be returned without the MFT returning MF_E_TRANSFORM_STREAM_CHANGE.

For historical reasons, we required that message to be returned at least once to set the output image size. This was required as the decoder used to be recycled with different video streams.

This is no longer the case, we can rely on the video info instead. It also greatly simplifies the code

MozReview-Commit-ID: H14KBiNWrjQ
2017-03-23 16:04:39 +01:00
Carsten "Tomcat" Book
78ce0c822e Backed out changeset ad882b32f2d0 (bug 1347101) for merge bustage on a CLOSED TREE 2017-03-23 14:28:25 +01:00
Carsten "Tomcat" Book
492970c342 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
sotaro
b98245c5fc Bug 1349476 - Remove LayersBackend::LAYERS_D3D9 type r=mattwoodrow 2017-03-23 11:00:41 +09:00
Jean-Yves Avenard
10f304bd58 Bug 1347101: P2. Don't rely on MF_E_TRANSFORM_STREAM_CHANGE result. r=mattwoodrow
Under some circumstances, and seen on Windows 8, a decoded sample can be returned without the MFT returning MF_E_TRANSFORM_STREAM_CHANGE.

For historical reasons, we required that message to be returned at least once to set the output image size. This was required as the decoder used to be recycled with different video streams.

This is no longer the case, we can rely on the video info instead. It also greatly simplifies the code

MozReview-Commit-ID: H14KBiNWrjQ

--HG--
extra : rebase_source : d098f884127bc95e3ca4363bf3d0cdda6d3bd771
2017-03-17 01:21:23 +01:00
Jean-Yves Avenard
ccf0582e09 Bug 1349345: Use 32 bits float with WMF decoder. r=cpearce
MozReview-Commit-ID: 2cF3D1zQFf4

--HG--
extra : rebase_source : 9c29059d46b5041fc14f442817f76b4beca28452
2017-03-21 22:17:01 +01:00
Kevin Chen
9347006c20 Bug 1160157 - Make AcquireSync RAII. r=bas
--HG--
extra : rebase_source : ac0843be287410b4fed48d7ab06cbba599735d0a
2017-03-17 00:18:00 -04:00
John Lin
a5d3bc8a18 Bug 1344649 - part 2: let VideoData::CreateFromImage() accept only neccessary parameters. r=jya
VideoData doesn't care what's in aInfo but display size and aPicture are unused.

MozReview-Commit-ID: IBqq8Rm8dM4

--HG--
extra : rebase_source : 10e2390f87925ef9179d28d86240f68a35c6c6d4
2017-03-09 12:06:24 +08:00
Bas Schouten
f500c10597 Bug 1345814: Don't use mutices when the decoding device is the compositor device anyway. r=mattwoodrow
MozReview-Commit-ID: GOwyVKFSkRa
2017-03-13 12:29:22 +00:00
Sebastian Hengst
004811fcc7 Backed out changeset 46090632bad3 (bug 1345814) for failing reftests on Windows 8 x64 with e10s enabled, e.g. webgl-capturestream-test.html?preserve. r=backout n a CLOSED TREE 2017-03-13 19:22:32 +01:00
Bas Schouten
c4b9f352af Bug 1345814: Don't use mutices when the decoding device is the compositor device anyway. r=mattwoodrow
MozReview-Commit-ID: GOwyVKFSkRa
2017-03-13 12:29:22 +00:00
Bas Schouten
f581bd6faa Bug 1346258: Fix disabling of sync texture usage. r=mattwoodrow
MozReview-Commit-ID: 4hIyoM7o6OQ
2017-03-13 12:29:22 +00:00
JW Wang
c2baa5a443 Bug 1345314. P2 - Label runnables in dom/media/platforms/wmf/WMFVideoMFTManager.cpp. r=jya
MozReview-Commit-ID: 25NmRaTp1wy

--HG--
extra : rebase_source : d7db27a86120f0de670d1ba369ebdcaa0f330097
extra : source : 84a47276e3848653ee3956dde373b4596b35ecec
2017-03-08 10:48:28 +08:00
JW Wang
eac0286baf Bug 1345314. P1 - move DeleteOnMainThread() to WMFVideoMFTManager.cpp to discourage the use of nsAutoPtr. r=jya
MozReview-Commit-ID: LxIQcdZtVx7

--HG--
extra : rebase_source : bb413ff39c8a6f0767a3085c6329aee0f7ebe4e2
extra : intermediate-source : 37015a40e525c1192c64dbb5d4bc5cf5fa95ba28
extra : source : e69d2868bfe38092bcc8f6c431439098a4a2afe3
2017-03-07 15:19:29 +08:00
Carsten "Tomcat" Book
96fe421b34 Merge mozilla-central to autoland 2017-03-08 17:04:17 +01:00
Kaku Kuo
24b9d982ba Bug 1345034 - Label runnables in dom/media/WMFMediaDataDecoder.cpp; r=jwwang
MozReview-Commit-ID: G5ioUsJdvQd

--HG--
extra : rebase_source : db5f8d082fa6fff57ab4eb3fc85492dbc6939d9c
2017-03-07 15:26:08 +08:00
Bas Schouten
b2cb2752c9 Bug 1340398 - Part 3: Use NV12 format by default. r=mattwoodrow
MozReview-Commit-ID: DcP40U81FBQ
2017-03-07 20:55:20 +00:00
Bas Schouten
3a86acb691 Bug 1340398 - Part 2: Support NV12 texture hosts in CompositorD3D11. r=mattwoodrow
MozReview-Commit-ID: IdwY1Cs4P9c
2017-03-07 20:55:20 +00:00
Wes Kocher
af86144916 Backed out 3 changesets (bug 1340398) for static build bustage a=backout
Backed out changeset 7d0a9bb0a642 (bug 1340398)
Backed out changeset a8af64e23154 (bug 1340398)
Backed out changeset 588942cf8807 (bug 1340398)

MozReview-Commit-ID: BZveA35jLBL

--HG--
extra : rebase_source : 4e182afdb98d0422e82f184f5bfc332f27438f0a
2017-03-07 13:39:49 -08:00