Commit Graph

199 Commits

Author SHA1 Message Date
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Matt Woodrow
05bc28c9a1 Bug 1279136 - Specify a format for our D3D9 video device to avoid the driver needing to compute one. r=cpearce 2016-08-09 13:28:51 +12:00
Carsten "Tomcat" Book
90f6c2d3fd Backed out changeset 02d76f158f3d (bug 1259571) for talos xperf regressions
--HG--
rename : gfx/thebes/DeviceManagerDx.cpp => gfx/thebes/DeviceManagerD3D11.cpp
rename : gfx/thebes/DeviceManagerDx.h => gfx/thebes/DeviceManagerD3D11.h
2016-08-08 11:53:51 +02:00
Sotaro Ikeda
41a9daf725 Bug 1259571 - Try tearing-free drawing with GDI r=dvander,mattwoodrow
--HG--
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
2016-08-07 23:54:12 -07:00
Matt Woodrow
f323872778 Bug 1292032 - Clean up VideoData static constructor methods. r=jya
--HG--
extra : rebase_source : e025c9a15ad00e970f9027f72c78b5d6effbc301
2016-08-04 15:31:52 +12:00
Bryce Van Dyk
dc49694098 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

--HG--
extra : rebase_source : c013c4ebe28d5afedbb91ddfffadb40d23fd0ee3
2016-07-29 14:12:54 +12:00
Carsten "Tomcat" Book
7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Mike Hommey
4fdd5ca717 Bug 1289248 - Stop using MOZ_WINSDK_MAXVER outside configure. r=blassey,cpearce
Its value was only used in a couple C++ files, and a corresponding value
can be gotten directly from including winsdkver.h.

--HG--
extra : rebase_source : 618f1eb2ee0243a6c1c652ccce45b2aeba959edf
2016-07-22 18:52:13 +09:00
Matt Woodrow
4ed207c9ad Bug 1277626 - Create test DXVA decoders on the main thread so that we can protect them with a crash guard. r=jya,dvander 2016-07-25 15:18:55 +12:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Wes Kocher
afdaddcff4 Backed out changeset c6d147ba37b5 (bug 1281259) for making windows vm mn-e10s permafail 2016-07-20 16:08:55 -07:00
eyim
4446d595fa Bug 1281259 - Port DXVA to gfxConfig r=jrmuizel
MozReview-Commit-ID: 7Yp3ynxZoFE

--HG--
extra : rebase_source : 8fd65a364e3c8b2e539b47dd034e637a1324516e
2016-07-14 10:21:06 -04:00
Sotaro Ikeda
d3c9a7b82c Bug 1286130 - Use recycled SharedPlanarYCbCrImage in WMFVideoMFTManager r=mattwoodrow 2016-07-12 00:29:43 -07:00
Dan Glastonbury
1b2a65cfc3 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

--HG--
extra : rebase_source : ce3f0c7d0784b96267728697ff5d535ccb8ee7a6
2016-06-28 17:56:55 +12:00
Alfredo Yang
b1e6bc8fcb Bug 1282014: check duration when set seek target. r=jwwang
MozReview-Commit-ID: 9ktjaL07sFA

--HG--
extra : rebase_source : 3e80bf8f8b84bb022a3023a40235c14c900cd7bc
2016-06-24 16:00:45 +08:00
Alfredo
948b1a2fa0 Bug 1280036: don't create video frame before seek target. r=jya
MozReview-Commit-ID: G1QTZTWtvmR

--HG--
extra : rebase_source : cbca5b928f0ee394d0a2929185f796ae8bd8dd7a
2016-06-16 13:43:52 +01:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Jean-Yves Avenard
94b2b53bfe Bug 1275381: [aac] Rework AudioSpecificConfig if extensions are present. r=cpearce,kamidphish,?kamidphish
WMF is very strict with the AudioSpecificConfig passed on and will error if an unknown extension is found. Attempt to detect those extensions and remove them if necessary.

MozReview-Commit-ID: KbooPiHmDbN

--HG--
extra : rebase_source : 849628daae33e0dca6ac3735dd8abc05e7554937
2016-06-02 12:07:06 +10:00
Chris Pearce
f41e85bf8a Bug 1271525 - Add ability to blacklist D3D9 DXVA via pref. r=kentuckyfriedtakahe
MozReview-Commit-ID: HSm6TTc6kct

--HG--
extra : rebase_source : cacbcef2352f6e4897845a5fdb3373c60571e938
2016-05-31 21:08:03 +12:00
Chris Pearce
83f9dc03f4 Bug 1271525 - Factor out data used by FindD3D11BlacklistedDLL() into arguments passed in. r=kentuckyfriedtakahe
This enables us to use the existing D3D11 blacklist code to create a D3D9
blacklist by just passing in a new blacklist cache.


MozReview-Commit-ID: GyQ8o8U1jwg

--HG--
extra : rebase_source : e0f1b99d9129c6a8bf6ca70001593194291a83b1
2016-05-31 21:06:56 +12:00
Alfredo Yang
68adb6b579 Bug 1068151 - keep decoding a corrupted video. r=jya 2016-05-30 18:24:00 +02:00
David Anderson
b7855c4ee9 Add DeviceManagerD3D11 as a wrapper around gfxWindowsPlatform. (bug 1282364 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 3ea710ffdaabf737374958e80f6235c1c8861237
2016-07-26 12:50:30 -07:00
Carsten "Tomcat" Book
45927144b4 Backed out changeset e00026b645d2 (bug 1288618) for valgrind failures 2016-09-15 16:34:35 +02:00
Carsten "Tomcat" Book
cceb9976fc Backed out changeset 1d9978f82efc (bug 1288618) 2016-09-15 16:34:16 +02:00
Carsten "Tomcat" Book
6f7c25cafd Backed out changeset 36f0861336b6 (bug 1288618) 2016-09-15 16:34:14 +02:00
Matt Woodrow
7dcb4a5e29 Bug 1288618 - Part 3: Avoid accessing MediaPrefs from the GPU process within WMF code. r=cpearce 2016-09-15 23:17:59 +12:00
Matt Woodrow
61e84987aa Bug 1288618 - Part 2: Allow allocating D3D9/11 Images when we don't have a recycling allocator available. r=nical 2016-09-15 23:17:58 +12:00
Matthew Woodrow
0cd90578a4 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
eyim
4f13f0068e Bug 1271003 - Record whether we've used DXVA in crash reports r=BenWa,jrmuizel
MozReview-Commit-ID: 3nIwpdqSZS1

--HG--
extra : rebase_source : a0f71faccfda12ce3bce4a4526dc87610508c7b3
2016-05-26 15:38:41 -04:00
Eric Rahm
c077aa9010 Bug 1274913 - Move PDM log definition to header. r=njn 2016-05-24 14:55:53 -07:00
JW Wang
8b980a3cbc Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
MozReview-Commit-ID: E3DG84yKRmw

--HG--
extra : rebase_source : 2636b7d1ef5cc544f70b3912d4d6bd30f25424df
2016-05-19 17:50:31 +08:00
Chris Pearce
daf024be7d Bug 1249706 - Backout a085ea2d24bb for blowing telemetry server's mind. r=backout
--HG--
extra : rebase_source : fc17ac88544ff800b141a276f66282b34f613dfe
2016-05-25 10:31:15 +12:00
JW Wang
5a7fa14c5c Bug 1274214 - remove use of FlushableTaskQueue. r=kaku.
MozReview-Commit-ID: 5tMa5aqAgQ1
2016-05-19 17:32:22 +08:00
Ryan VanderMeulen
84b0a4b61f Backed out changeset 0e4c5be816f3 (bug 1257107) for webm reftest failures.
CLOSED TREE
2016-05-19 10:39:07 -04:00
Alfredo Yang
3fed340de9 Bug 1257107 - Discard decoded data if its pts is smaller than seek time. r=jya
--HG--
extra : rebase_source : 2f17f7b3b70f774e03322dbc63727b0794279f91
2016-05-17 21:46:00 -04:00
Gerald Squelart
837bdf8c9f Bug 1273691 - Implement 'media.wmf.disable-d3d11-for-dlls' pref - r=cpearce
Format:
"dll1.dll: 1.2.3.4[, more versions...][; more dlls...]"
I.e., DLLs are separated by semicolons, a DLL and all its versions are
separated by a single colon, and versions are separated by commas.
Whitespace between names&numbers is ignored.

Seeding pref with blacklistings from bug 1268905, bug 1269204, and bug 1273406.

MozReview-Commit-ID: LbKCkaxLEis

--HG--
extra : rebase_source : 5a5969addad521669827423d28f8b94c3a8bf903
2016-05-18 15:44:42 +10:00
Sebastian Hengst
5438f8d848 Backed out changeset 510b8f1c5c36 (bug 1273691) for 8 bytes leak (nsStringBuffer) in mochitests on Windows 8 x64 debug. r=backout on a CLOSED TREE 2016-05-18 23:16:06 +02:00
Gerald Squelart
8be5775f6c Bug 1273691 - Implement 'media.wmf.disable-d3d11-for-dlls' pref - r=cpearce
Format:
"dll1.dll: 1.2.3.4[, more versions...][; more dlls...]"
I.e., DLLs are separated by semicolons, a DLL and all its versions are
separated by a single colon, and versions are separated by commas.
Whitespace between names&numbers is ignored.

Seeding pref with blacklistings from bug 1268905, bug 1269204, and bug 1273406.

MozReview-Commit-ID: 8auw4GPNyb9

--HG--
extra : rebase_source : 56c093abce3dcfbf4ddad9384a7e14fd4be6ae51
2016-05-18 15:44:42 +10:00
Gerald Squelart
cddbbd8719 Bug 1273406 - Ugly macros transform into beautiful constexpr goodness - r=cpearce
MozReview-Commit-ID: K5cyEbvPWhQ

--HG--
extra : rebase_source : b25cacd1ce3d0b1926b1e37986d74baaf9977141
2016-05-17 19:32:31 +10:00
Gerald Squelart
a9fce7dee5 Bug 1273406 - Disable D3D11 with some iSonyVideoProcessor DLLs - r=cpearce
MozReview-Commit-ID: EWgqJ6OJhRD

--HG--
extra : rebase_source : 2659699b172a90d3b2cc1e8f2b74c7b513c70a06
2016-05-17 19:00:30 +10:00
Gerald Squelart
010b643fd7 Bug 1269204 - Disable D3D11 with idg10umd32 9.17.10.2857 - r=cpearce
MozReview-Commit-ID: Keo14BhdA6P

--HG--
extra : rebase_source : 08f00a2ab566bcc55a1120ddd0c188e3790bdbab
2016-05-17 13:58:08 +10:00
Gerald Squelart
953f43a8b4 Bug 1268905 - Disable D3D11 with some Toshiba DLLs - r=cpearce
MozReview-Commit-ID: Eoyo7VszBnS

--HG--
extra : rebase_source : a2effba08e11411428e11095b3e692cc78eec61d
2016-05-17 12:06:59 +10:00
Jean-Yves Avenard
6e2b718e6a Bug 1271491: P2. Allow initialization of WMFPlatformDecoderModule from any threads. r=mattwoodrow
This is a very rough and lame attempt at making some parts of gfx thread-safe, however some parts rely on Preferences::AddBoolCache which isn't thread-safe.
Must still be called once gfx has been initialized.

MozReview-Commit-ID: BSpr9cp6USR

--HG--
extra : rebase_source : 395ac23cafeb1509f89b72deda5fccdc7726c1bb
2016-05-12 19:24:43 +10:00
Jean-Yves Avenard
c1e4f58ec9 Bug 1271491: [WMF] P1. Don't use main thread only preferences methods. r=cpearce
Instead rely on MediaPrefs.

MozReview-Commit-ID: 2O1eGHYycTX

--HG--
extra : rebase_source : 275b9e8cdbcd8c5deb738d279cef47f9490b6ac6
2016-05-10 12:15:58 +10:00
Jean-Yves Avenard
d31cb0499b Bug 1206637: P2. Replace all cached preferences with MediaPrefs ones. r=cpearce
Additionally, clean up stray and unused Preferences.h header.

MozReview-Commit-ID: IcPrD2inkDE

--HG--
extra : rebase_source : c3c6e37767627db3601090c2855a3dfa98cb4368
2016-05-10 11:02:28 +10:00
JW Wang
facd846fd6 Bug 1270350 - per comment 0, use SyncRunnable to repalce the boilerplate code. r=jya.
MozReview-Commit-ID: 9hqmUnNC3Vm
2016-05-05 11:54:44 +08:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Jean-Yves Avenard
a466daa52e Bug 1267637: [wmf] P9. Reject audio data with unsupported channel configuration. r=gerald
MozReview-Commit-ID: BJQXojV4SZZ

--HG--
extra : rebase_source : a956ba4df7256ba7cca408ee66d7a64231b2aed6
2016-04-27 17:56:45 +10:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Jean-Yves Avenard
270a392c9d Bug 1243538: P5. Adjust wmf decoder to allow different decoding size from metadata. r=cpearce
We let the WMF decoder calculate the decoded image size, scaling the picture region (cropping) from the original metadata.
As only webm defines cropping in its metadata, the scaled picture region will always be identical to the image size when decoding h264.

MozReview-Commit-ID: B4plh0DEnGY
2016-04-20 17:44:03 +10:00
Jean-Yves Avenard
4dcc0f9b5b Bug 1243538: P1. Make MediaInfo::mImage an nsIntSize again and introduce a mImageRect member. r=mattwoodrow
MozReview-Commit-ID: 3iVCA1b7bHc
2016-04-20 17:43:35 +10:00
Gerald Squelart
ecfb205472 Bug 1248507 - p1. Pass DecoderDoctorDiagnostics to PDMs&more - r=jya
Pass declared-but-yet-undefined DecoderDoctorDiagnostics pointer to various
routines that contribute to deciding if a media format can be played, and
those that create decoders.

Points where a DecoderDoctorDiagnostics can be injected are currently marked
with "/* DecoderDoctorDiagnostics* */ nullptr", and some will be used in
following patches.

MozReview-Commit-ID: 7u37bvY4CpW
2016-04-19 17:36:19 +10:00
Jean-Yves Avenard
1b37c8ef28 Bug 1264925: Force D3D9 when attempting to decode VP8 or VP9. r=mattwoodrow
MozReview-Commit-ID: DgE3yPr5t3o

--HG--
extra : rebase_source : 0bd76b1b7723fc1ea0043241c2f5d7f7e3ba150d
2016-04-16 01:13:26 +10:00
Jean-Yves Avenard
6409e5ed1a Bug 1248861: P3. Use AlignedAudioBuffer object with AudioData. r=cpearce
MozReview-Commit-ID: 7HiF4eHlRwB

--HG--
extra : rebase_source : e7fd44ced280ccc359f61b7e5668e5481bb7ecb9
2016-04-03 23:09:45 +10:00
David Anderson
b20d5f6769 Add telemetry for which WMF backends are used. (bug 1259695, r=mattwoodrow) 2016-03-29 22:49:02 -07:00
David Anderson
f7210bb6ef Add a driver crash guard to D3D11 DXVA. (bug 1253666, r=mattwoodrow) 2016-03-22 18:45:28 -07:00
Matt Woodrow
41cff5119c Bug 1257013 - Part 2: Use readback to synchronize d3d11 video. r=cpearce,Bas
--HG--
extra : rebase_source : 252d183ea0c15f4326c25b4f84ae1c9b43237759
2016-03-21 18:49:59 +13:00
Matt Woodrow
49c3c58a6c Bug 1257013 - Part 1: Use readback to synchronize d3d9 video. r=cpearce,Bas
--HG--
extra : rebase_source : 104b692bb1f732ec86113506ebac8961ac8fb5b8
2016-03-21 18:49:43 +13:00
Matt Woodrow
d5a05c75b0 Bug 1257028 - Fallback to d3d9 decoding if d3d11 fails. r=cpearce 2016-03-18 10:06:05 +13:00
Matt Woodrow
231647cca3 Bug 1248496 - Show which DXVA API is being used in about:support. r=jya 2016-02-18 15:41:11 +13:00
Matt Woodrow
60b2f060b1 Bug 1236112 - Block on d3d9 video frames to complete before returning them from the decoder. r=cpearce 2016-03-09 10:34:49 +13:00
Gerald Squelart
1471e61be9 Bug 1253395 - Disable msmpeg2vdec.dll blackslisting - r=cpearce
Disable the blacklisting introduced in bug 1242343, as it was having a
negative effect on many working configurations.
2016-03-08 12:54:48 +11:00
Gerald Squelart
368b69b72f Bug 1242343 - p2. Blacklist msmpeg2vdec.dll 12.0.9200.16426 & .17037 - r=cpearce
MozReview-Commit-ID: C6osQ3ubhH1
2016-03-03 08:40:26 +11:00
Louis Christie
4a902ba49c Bug 1249706: Added telemetry for the proportion of frames dropped keyed by several details. r=jya 2016-02-23 13:19:40 +13:00
Matt Woodrow
00f5fe68bd Bug 1248496 - Enable D3D11 DXVA. r=ajones 2016-02-18 14:32:59 +13:00
Jean-Yves Avenard
4fc8dfaa3d Bug 1241677: P1. Add MediaDataDecoder::GetDescriptionName() method. r=cpearce 2016-01-25 10:33:39 +11:00
Chris Pearce
33101a1f8a Bug 1176071 - Handle WMF MFTDecoder returning success but no output, with telemetry. r=mattwoodrow,r=vladan
Sometimes the Windows Media Foundation MFT video decoder reports that it will
provide memory for output video frames, and the decoder returns success, but it
doesn't output a valid video frame. So change our code to not assume that
output is always valid (to fix a null pointer dereference). We can't reproduce
this locally, so we don't know how to get a best behaviour here, so add
telemetry to figure out whether the decoder will right itself, or whether we
should just give up completely.

--HG--
extra : amend_source : 7b5a51647593744f92e69db30764dcdadb3d7396
extra : histedit_source : dd72f96023f33cb7be4bfc5e5db6f67f18e61aca%2C305b8cf6ffdef0f2ab52a2ae03bd9457b123d669
2016-01-25 10:55:45 +13:00
Matt Woodrow
224f28124f Bug 1239093 - Add pref to allow overriding of hardcoded DXVA blacklist. r=jrmuizel 2016-01-14 12:42:26 +13:00
Chris Pearce
966cf53003 Bug 1232527 - Call into WMF PDM to determine if WMF can decode instead of using GMPVideoDecoderTrialCreator. r=jwwang
Resurrect WMFDecoderModule::HasAAC() and HasH264(), and use those in
MediaKeySystemAccess.cpp to figure out whether we gmp-clearkey can decode,
rather than assuming Vista and later is always able to decode, as that's not
a valid assumption; Vista may not have the required Platfor Update installed,
or we may be on Windows N or KN without the Media Feature Pack.

--HG--
extra : commitid : 2QrVAGQ5OJa
extra : rebase_source : 8ad6e5c5f87cf2b2489f049543c021723927901a
2015-12-15 14:50:59 +13:00
Bob Owen
cb3fdf73ba Bug 1217185: To allow for sandboxing, use null HWNDs when creating the D3D device for video decoding. r=mattwoodrow 2015-12-11 01:23:00 +00:00
Eugen Sawin
81ff3f75e8 Bug 1221991 - [1.3] Make SupportsMimeType a const function. r=jya 2015-11-17 20:50:28 +01:00
Jean-Yves Avenard
cf6ee74e32 Bug 1222201: Only use container calculated dimensions. r=cpearce 2015-11-17 21:30:46 +11:00
David Anderson
c92530b253 Decouple D3D9SurfaceImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
2e1669f2fe Decouple D3D11ShareHandleImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
sajitk
582e1a55fa Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
Wes Kocher
f3a9eb2a26 Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk
3cbe348cdd Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
Benjamin Chen
cf35fa9aa2 Bug 1219300 - Add mutex to protect the |result| because the variable will be access by multiple threads at the same time. r=cpearce 2015-11-06 15:28:22 +08:00
Nathan Froyd
1f0804852a Bug 1220491 - clarify ownership relationships for creators of AudioData; r=gerald
The way we pass in AudioDataValue arrays into AudioData is non-uniform:
sometimes we have nsAutoArrayPtrs, sometimes we don't, and it's not
immediately obvious from the function signature of the constructor that
we're actually taking ownership of this array.  Let's fix that by using
UniquePtr<AudioDataValue[]> smart pointers to hold the data prior to
creating AudioData values, and for passing in to AudioData's
constructor.  Using standard-er C++ things instead of our homegrown ones
is a good thing.
2015-11-01 17:34:26 -05:00
Jean-Yves Avenard
ec67463c06 Bug 1217226: P2. Implement WMFMediaDataDecoder::ConfigurationChanged. r=cpearce
We need to be notified by the reader that the stream content has changed as we no longer rely on the WMF to analyze it.
2015-10-29 00:46:31 +11:00
Jean-Yves Avenard
e4508d8aa1 Bug 1217226: P1. Use VideoInfo display size data rather than attempt to detect value in stream. r=cpearce
The VideoInfo data now contains accurate and up to date information about the video display size, its aspect ratio and borders.

While the WMF can determine those values for H264 through the SPS NAL, it can't be done reliably for a VP9 stream.

Picture size is still determined by the WMF to ensure the allocated DXVA texture has the right size.
2015-10-29 00:46:30 +11:00
Jean-Yves Avenard
235047e12e Bug 1101885: P5. Only attempt to use HW VP decoder if DXVA active. r=cpearce 2015-10-29 00:46:30 +11:00
Jean-Yves Avenard
2a94872b8e Bug 1101885: P2. Don't shutdown WMF framework before releasing decoder. r=cpearce 2015-10-29 00:46:30 +11:00
Jean-Yves Avenard
d78e64baeb Bug 1101885: P1. Make pref dynamic. r=cpearce
So we don't have to restart the browser for changes to take effect.
2015-10-29 00:46:30 +11:00
Chris Pearce
e2337163c0 Bug 1205083 - Don't enable low latency WMF video decoding as it crashes sometimes. r=jya 2015-10-21 21:17:56 +13:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Chris Pearce
494f013e18 Bug 1211339 - Ensure WMFDecoderModule::SupportsMimeType checks it can create decoders. r=jya 2015-10-06 16:52:52 +13:00
Carsten "Tomcat" Book
239ba800f1 Backed out 2 changesets (bug 1211339) for m3 test failures on a CLOSED TREE
Backed out changeset 91bff7bc67d7 (bug 1211339)
Backed out changeset d34f694b13cf (bug 1211339)
2015-10-05 14:34:44 +02:00
Chris Pearce
addcdce5f7 Bug 1211339 Part 1 - Ensure WMFDecoderModule::SupportsMimeType checks it can create decoders. r=jya 2015-10-05 22:39:00 +13:00
Jean-Yves Avenard
9a88d127d2 Bug 1206568: P2. Clean up header declarations. r=cpearce
Make it consistent across the use of virtual/override
2015-09-23 12:59:26 +10:00
Jean-Yves Avenard
5264765a6e Bug 1204776: P1. Have the PlatformDecoderModules use their own log. r=cpearce
Stop using MP4Demuxer.
2015-09-16 12:26:03 +10:00
Matt Woodrow
d546102ebb Bug 1200775 - Followup to fix typo and indent issues
--HG--
extra : rebase_source : cb495e5ba5afc28455d0a6f3dba7fea38c1d4ba1
2015-09-10 15:15:41 -04:00
Matt Woodrow
c44bc286ab Bug 1202296 - Recreate the MFTDecoder when we want to disable DXVA. r=cpearce
--HG--
extra : rebase_source : 9731f42fccede3910efd674ca4cef79ac4b3f17b
2015-09-10 13:39:02 -04:00
Matt Woodrow
a4a6ea224d Bug 1202296 - Hide the MFTDecoder within MFTManager so that we can recreate it opaquely. r=cpearce
--HG--
extra : rebase_source : 8ce6adacd26ceaa243737db06fc652a8dd16bdc6
2015-09-10 13:38:17 -04:00
Matt Woodrow
ed728f3334 Bug 1200775 - Check intel specific h264 decoder when checking for DXVA support. r=cpearce
--HG--
extra : rebase_source : 1ba6576d38a0ccfe4c78b082b0d0bc97b293078f
2015-09-10 13:20:21 -04:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Matt Woodrow
ec61d0727e Bug 1196417 - Make video software fallback only affect the current video instead of the entire browser. r=cpearce 2015-08-20 11:43:36 -04:00