Граф коммитов

1007 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book c4e7d0a39e merge mozilla-central to autoland
--HG--
extra : rebase_source : 0f0f666839de9bee40c2d469fd8dd7e63b266f69
2017-07-27 11:38:15 +02:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
John Lin 3823e46830 Bug 1384495 - p2: resolve drain promise with empty decoded data only when draining complete. r=jya
MozReview-Commit-ID: 7livLq1K6Ro

--HG--
extra : rebase_source : 574b47a4b2cfb6eec38daaf63e9f6f79313cd305
2017-07-26 15:25:28 +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
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04: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
Nicholas Nethercote 90eaa02ea0 Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/media/. r=gerald.
As well as the obvious #ifdefs, this allows DOMHwMediaStream to be
removed, and also the "phone-state-changed" observer.

--HG--
extra : rebase_source : 373280183e228bd4b9bd9d866959409f2444c77e
2017-07-24 10:08:55 +10: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
Mats Palmgren 977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Nicholas Nethercote 3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07: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 0ac3f1c5b4 Bug 1374774: P1. Move H264 methods into H264 code. r=gerald
HasSPS, ExtractExtraData and CompareExtraData have nothing to do with the handling of annex B format. They are raw H264 related methods.

It will also prevent in the following change to have cycling references between two headers.

MozReview-Commit-ID: FCs5aU4GcTU

--HG--
extra : rebase_source : a96fe0c70416d38690b0c2f1dee567b0b025e947
2017-06-22 14:36:11 +02:00
Sebastian Hengst 261b25bf86 Backed out changeset 0d953ca28add (bug 1374774) for bustage at media/libstagefright/binding/H264.cpp(205). 'ptr' not declared. r=backout on a CLOSED TREE 2017-06-24 00:49:18 +02:00
Jean-Yves Avenard abaade7f70 Bug 1374774: P1. Move H264 methods into H264 code. r=gerald
HasSPS, ExtractExtraData and CompareExtraData have nothing to do with the handling of annex B format. They are raw H264 related methods.

It will also prevent in the following change to have cycling references between two headers.

MozReview-Commit-ID: FCs5aU4GcTU

--HG--
extra : rebase_source : b204723cdbb599d4f0a227871ed28f5da39e9cff
2017-06-22 14:36:11 +02: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 e52d3b5eaa Bug 1223270: P4. Remove extra copy of YUV buffer for Theora. r=mattwoodrow
MozReview-Commit-ID: FnhPObcv4U3

--HG--
extra : rebase_source : 01a14de6f4de864ec38311549867f95f48b5b2a3
2017-05-04 15:44:46 +02:00
Jean-Yves Avenard de2ba98442 Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e

--HG--
extra : rebase_source : 72bc0cd32d95fc6eadc0604c00b9f53227135557
2017-05-03 23:25:54 +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 57edf8693b Backed out changeset c79b6d337d04 (bug 1223270) 2017-06-20 09:41:39 +02:00
Carsten "Tomcat" Book 597a16c2e2 Backed out changeset b0b4667e25df (bug 1223270) 2017-06-20 09:41:38 +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 ddd4699e3f Bug 1223270: P4. Remove extra copy of YUV buffer for Theora. r=mattwoodrow
MozReview-Commit-ID: FnhPObcv4U3

--HG--
extra : rebase_source : f372251f3e17b9d1dcad31a70c3daafc5bf32393
2017-05-04 15:44:46 +02:00
Jean-Yves Avenard 683d6562da Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e

--HG--
extra : rebase_source : c7e813a29bd4d0f46c73b5579fec4bc77081cee1
2017-05-03 23:25:54 +02:00
Jean-Yves Avenard 851b08981f Bug 1374210: Reject/Cancel any pending operations. r=gerald
MozReview-Commit-ID: GVlzm2GWT1D

--HG--
extra : rebase_source : a94491b69960a2679ae20433461ecb51e1821b15
2017-06-19 10:38:22 +02:00
Sebastian Hengst ae6761b147 Backed out changeset aeba107c84c5 (bug 1374210) for crashing mediasource-activesourcebuffers.html in non-e10s mode and timing out in e10s mode. r=backout 2017-06-19 13:05:00 +02:00
Jean-Yves Avenard f31aa4ab98 Bug 1374210: Reject/Cancel any pending operations. r=gerald
MozReview-Commit-ID: GVlzm2GWT1D

--HG--
extra : rebase_source : 4c57b062528fe45aaa10d2266ff91f29c283af09
2017-06-19 10:38:22 +02:00
Jean-Yves Avenard 904b949686 Bug 1374068: P2. Rewrite bits with lambdas. r=gerald
Allow to get rid of the mPendingSample member, making the logic easier to follow.

MozReview-Commit-ID: F7a25p1TP8J

--HG--
extra : rebase_source : 9413f8a685df44b6e93e7382a0eda77dce27056f
2017-06-18 17:57:35 +02:00
Jean-Yves Avenard 9935370468 Bug 1374068: P1. Drain the decoder when content is changing. r=gerald
MozReview-Commit-ID: EUiBIaHzBCO

--HG--
extra : rebase_source : 5d6b1f68d3572baa87a4de38d9daf3804cdc6aff
2017-06-18 17:29:23 +02:00
Bill McCloskey d6affd5261 Bug 1365098 - Convert NS_GetCurrentThread uses in dom/media (r=cpearce)
MozReview-Commit-ID: DUPt6xj49zz
2017-06-12 20:20:08 -07:00
Chris Pearce abac85f1d9 Bug 1372080 - Reorder frames decoded by Widevine CDM. r=jya
The next version of the Widevine CDM (970) has a new H.264 decoder and it does
not appear to be outputing frames it decodes in presentation order, so we need
to reorder the frames output by the CDM.


MozReview-Commit-ID: HMsQVN3NCIU

--HG--
extra : rebase_source : 68ef406556087434fa12b72ae5ed5c2e1bce2b64
2017-06-12 17:47:05 +12: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 45d7f2628e Bug 1370805: P3. Use whichever extradata is available when constructing the decoder. r=jwwang
Prior bug 1313398, the only time we would call H264Converter::CreateDecoderAndInit was if we encountered AVC3 content where the H264 extradata didn't exist in the metadata.
AVC3 was the only situation where mDecoder would be null after construction.

However, now, it is possible for the construction of the decoder to be interrupted, which would leave mDecoder null. For AVC1 content, if this happened, we wouldn't have in-band SPS/PPS necessary for CreateDecoderAndInit to complete.
So we use whichever extradata is available.

MozReview-Commit-ID: 702xj045LAv

--HG--
extra : rebase_source : e85077cedfece066398e36d8a4dd16f4bd406db6
2017-06-07 15:14:57 +02:00
Jean-Yves Avenard a81b74c44a Bug 1370805: P2. Let current operation completes before continuing. r=jwwang
This is a simpler approach required as both InitPromise and FlushPromise are exclusives.

It's in practice simpler too.

MozReview-Commit-ID: ItaAhC0Bk8T

--HG--
extra : rebase_source : 2c68b8843cfccd784bfcf1ae4fd08407ee891349
2017-06-07 15:10:04 +02:00
Jean-Yves Avenard 09f24e7c7d Bug 1370805: P1. Revert "Bug 1370164: Properly handle flushing during ongoing operations. r=jwwang"
--HG--
extra : rebase_source : d2ed98092313a357912443238d7c48e060c462f7
2017-06-07 13:32:09 +02:00
Jean-Yves Avenard 68e7478636 Bug 1370487: Don't incorrectly recreate a decoder. r=JamesCheng
On android and devices supporting decoder recycling the decoder would be reset for every new sample not containing inband SPS/PPS

MozReview-Commit-ID: 8BHALsDgPvg

--HG--
extra : rebase_source : 11802954ec0dac885d61aebb9983588daff88dc2
2017-06-07 17:25:16 +02:00
John Lin f6631d92ad Bug 1366706 - accepts video frames with negative timestamp but non-zero size. r=jya
MozReview-Commit-ID: 5QqzOesIynN

--HG--
extra : rebase_source : 7bcebe28e90189a79f554e8fc27d77d7db52d924
2017-06-06 16:11:33 +08:00
Jean-Yves Avenard 6142d3e791 Bug 1370164: Properly handle flushing during ongoing operations. r=jwwang
MozReview-Commit-ID: 4eAHAuBqOtK

--HG--
extra : rebase_source : 855ace96b31fd8404efad8c0d00fc85a58b5753f
2017-06-05 20:56:22 +02:00
Makoto Kato f6a1c5c5d1 Bug 1369992 - Make GetNative as public for clang. r=jolin
When building Fennec using clang, the following build error occurs.

 0:17.02 /mozilla/mobile/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp:1099:27: error: 'GetNative' is a protected member of 'mozilla::jni::NativeImpl<mozilla::java::CodecProxy::NativeCallbacks, mozilla::JavaCallbacksSupport>'
 0:17.02     JavaCallbacksSupport::GetNative(mJavaCallbacks)->Cancel();
 0:17.02                           ^
 0:17.02 /mozilla/objdir-android/dist/include/mozilla/jni/Natives.h:821:18: note: declared protected here
 0:17.02     static Impl* GetNative(const typename Cls::LocalRef& instance) {
 0:17.02                  ^

We should define GetNative as public into JavaCallbacksSupport.h.

MozReview-Commit-ID: DYEyB2dRK8y

--HG--
extra : rebase_source : 8f77cac02800149aef814ce5fcd7bd3d23b56193
2017-06-03 21:09:58 +09:00
Ralph Giles fcb2bf2018 Bug 1369950 - Update aom. r=gerald
Update our in-tree copy of the aom reference implementation
of the av1 video codec to upstream git commit id
aadbb0251996c8ebb8310567bea330ab7ae9abe4.

This picks up recent changes and addresses a build issue on win64.

MozReview-Commit-ID: 34LXXzFtEFN

--HG--
extra : rebase_source : 0face926928de6bd1c6a1726df912bd20e363e60
2017-05-10 14:16:55 -07:00
Ralph Giles 1cd421b9df Bug 1369950 - Remove aom_codec_stream_info_t sz field references. r=gerald
Upstream has removed the requirement to set this when
initializing the stream_info struct.

MozReview-Commit-ID: 24OJ550Ral

--HG--
extra : rebase_source : 501fd9f51084a4b6f779462536e94c71cf8c5bb7
2017-05-09 11:10:51 -07:00
Jean-Yves Avenard 5e8ee8b868 Bug 1345342: Cancel pending requests. r=jya
If the pending first frame decoding was cancelled, the next call to decode could lead to a crash.

MozReview-Commit-ID: 6Q4eKUzqOly

--HG--
extra : rebase_source : 3640a2edd07fdbd4811295c0088a4086ac579b26
2017-06-04 12:03:25 +02:00