Commit Graph

241 Commits

Author SHA1 Message Date
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
Bas Schouten
2f08c8af36 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
ddb41fcc63 Bug 1340398 - Part 2: Support NV12 texture hosts in CompositorD3D11. r=mattwoodrow
MozReview-Commit-ID: IdwY1Cs4P9c
2017-03-07 20:55:20 +00:00
David Major
4a10d4ba05 Bug 1343752 - Guard against modules list shrinking between EnumProcessModules calls (media/) r=cpearce
--HG--
extra : rebase_source : 453fb9578a499cd6cc7bb2982357479d1d244aa3
2017-03-06 14:10:04 +13:00
JW Wang
c4e669371f Bug 1341210 - refactor ProcessOutput() to remove mDecodePromise and mDrainPromise. r=jya
MozReview-Commit-ID: 9kK7lzJriqC

--HG--
extra : rebase_source : 6bd0ba86e2752cff92cbdd5e6ac110bd4c1dd8e5
extra : intermediate-source : dcb0a624658e3217fa372983ff84cc3c33f8964b
extra : source : 4e38892dfbc92a69d707331670dce35ea74c5cb5
2017-02-21 15:27:36 +08:00
Jean-Yves Avenard
ea9511754e Bug 1322739: P4. Never use WMF decoders when low latency is required. r=gerald
We will revisit once VP9 hardware decoders on Windows can be assessed.

MozReview-Commit-ID: CXL2M45D2x7
2017-02-22 13:02:59 +01:00
Bas Schouten
920b5f6d15 Bug 1340359: Use IDXGIKeyedMutex for syncing DXVA D3D11 video textures. r=mattwoodrow
MozReview-Commit-ID: 2EY1Yqql1wU
2017-02-21 05:16:31 +00: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
Wes Kocher
8c4ce17711 Merge inbound to m-c a=merge
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Vedant Sareen
7d4bd52fae Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Jean-Yves Avenard
f2d2cb1bc8 Bug 1337559: [WMF] P4. Only drain one frame at a time. r=gerald
This will allow to minimize the memory usage when draining the decoder.

MozReview-Commit-ID: eKlHaji0Ei

--HG--
extra : rebase_source : 702ebdef78d27a8d6eefd6a2502762a5229621fe
2017-02-11 09:37:51 +11:00
Jean-Yves Avenard
9fc377410f Bug 1337559: P3. Fix coding style of windows decoder. r=gerald
MozReview-Commit-ID: 2O9sn9Y1qzB

--HG--
extra : rebase_source : bd5c33150201d3672a5c8f67aca581141d7e49f4
2017-02-11 03:24:56 +11:00
Jean-Yves Avenard
10f0dbc34f Bug 1337559: [WMF] P1. Avoid draining the audio decoder twice in a row. r=gerald
The WMF audio decoder outputs a single audio frame after each drain, regardless of having been provided a frame to decode.
So we must ensure we only ever drain it, if inputs were provided.

MozReview-Commit-ID: 6owe49NjbBv

--HG--
extra : rebase_source : 61fefecf2e350f471ee0c00fce211c858b259508
2017-02-10 23:15:27 +11:00
Jean-Yves Avenard
b43fb544d5 Bug 1334061: P1. Fix headers and coding style. r=gerald
MozReview-Commit-ID: D6ubdaBN0PJ

--HG--
extra : rebase_source : c27f1e5ec4370c1d258aab5bfde4598be9443858
2017-02-15 19:09:29 +01:00
Chris Peterson
1db7fcec65 Bug 1336778 - Part 1: Remove always-false #if WINVER < _WIN32_WINNT_WIN7 (0x0601) check in dom/media. r=cpearce
As of bug 1325299, WINVER is always >= 0x0601 (Windows 7).

MozReview-Commit-ID: BJYg9d3zuYx

--HG--
extra : source : 4eff752dd001a722fe1d8e60e56ccb5f70c8d872
2017-01-25 00:13:33 -08: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
Gerald Squelart
09a3dc03ac Bug 1334230 - media.wmf.allow-unsupported-resolutions=true should not disable H264 - r=jya
Previously the combined tests meant that if a track was H264, and we supported
H264, BUT media.wmf.allow-unsupported-resolutions==true, we would just skip the
whole block, meaning we would return 'false' (unsupported) in the end.

Instead, if a track is H264, and we support H264, we should return 'true'
(supported), unless media.wmf.allow-unsupported-resolutions==false and the
resolution is too high.

MozReview-Commit-ID: 5YUhlxmfPIO

--HG--
extra : rebase_source : 48fdcdc0ec83368fe1e97f30d87fb9384129700f
2017-01-27 06:58:41 +11:00
Bevis Tseng
f2bdbd8fd1 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG

--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
Alastor Wu
45be72443e bug 1304994 - resubmit input data when MFT returns MF_E_NOTACCEPTING. r=jya
When MFT returns MF_E_NOTACCEPTING means the input buffer is full and it can't
accept input data anymore, so we need to output the data first and then resummit
the input data.

MozReview-Commit-ID: DfSTASsEX7r

--HG--
extra : rebase_source : fd3cff6284345872dd580fbd0568d99129af936c
2017-01-11 11:10:10 +08:00
Gerald Squelart
6f289c28b5 Bug 1329824 - media.wmf.allow-unsupported-resolutions - r=jya
MozReview-Commit-ID: 64CC6inOluH

--HG--
extra : rebase_source : ecf82c1c6194430a42b8c093e167a472926c96d6
2017-01-16 09:26:54 +11:00
Alastor Wu
3bfd999bfd Bug 1323703 - implement a method to create DXVA2 decoder. r=mattwoodrow
When we want to decode with DXVA2 aPI directly instead of using it by MFT, we need to take responsibility for
creating a decoder and handle the related decoding operations by ourself. So implement a method to create and
hold a ref to DXVA2 decoder for DXVA2Manager.

MozReview-Commit-ID: 4EyrsjzEyYK

--HG--
extra : rebase_source : 6719bfe15243395711984d66919baca2bb74699e
2016-12-15 18:26:17 +08:00
Marco Castelluccio
533966fbc4 Bug 1313339 - Also use modules loaded in the process to decide about DXVA blocklisting. r=gerald 2016-12-24 10:17:46 +01:00