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

21120 Коммитов

Автор SHA1 Сообщение Дата
Cristian Tuns 296431b106 Backed out 8 changesets (bug 1754239, bug 1766307, bug 1766308, bug 1766310) for causing build bustages on Logging.h CLOSED TREE
Backed out changeset 50918938a839 (bug 1766307)
Backed out changeset 19800bb8974e (bug 1766307)
Backed out changeset 40ec82794497 (bug 1766310)
Backed out changeset 4f860e20098c (bug 1754239)
Backed out changeset f54eac410bfd (bug 1754239)
Backed out changeset c8cc5e0c89dd (bug 1766307)
Backed out changeset d7aab4098f12 (bug 1766308)
Backed out changeset a7ffa6f44fe8 (bug 1766307)
2022-07-19 21:20:07 -04:00
az 14b832179b Bug 1766307 - Add gtests for MediaCodecsSupport r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D149939
2022-07-19 23:27:44 +00:00
az 2414e5532c Bug 1766307 - Add H264 include / namespace specifier for PlanarYCbCrImage to fix try build errors r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D148574
2022-07-19 23:27:43 +00:00
az fe4742c4cd Bug 1766310 - Return HW decode support from WMFMediaDataDecoder r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D147390
2022-07-19 23:27:43 +00:00
az 5d97400d50 Bug 1766307 - Enable PDMFactory::Supports/SupportsMimeType to process+return HW/SW decode info r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147385
2022-07-19 23:27:38 +00:00
Chun-Min Chang b12089a4ba Bug 1778405 - Correct Cb, Cr in YUVBufferGenerator::CreateNV{12,21}Image() r=jgilbert,jolin
The first element in the NV12's UV plane and NV21's one should be mapped
to Cb and Cr respectively.

Differential Revision: https://phabricator.services.mozilla.com/D151186
2022-07-19 20:04:03 +00:00
Paul Adenot c4e222d604 Bug 1779036 - Account for the fact that the ended promise might already have been resolved in GetPosition, during shutdown. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D151592
2022-07-19 15:10:26 +00:00
Stephen A Pohl a945096f93 Bug 1773752: Remove more workarounds for old macOS SDKs. r=mstange,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D151532
2022-07-18 17:08:59 +00:00
Andi-Bogdan Postelnicu 72ba7fb691 Bug 1519636 - Reformat recent changes to the Google coding style. r=media-playback-reviewers,alwu
Updated with clang-format version 14.0.5 (taskcluster-cAkeFEZXQmihHYDO8Y4hRw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D151003
2022-07-14 08:10:07 +00:00
Norisz Fay 82c8f892b0 Backed out 8 changesets (bug 1754239, bug 1766308, bug 1766307, bug 1766310) for causing build bustages on UtilityAudioDecoderParent.cpp CLOSED TREE
Backed out changeset e383703e28cf (bug 1766307)
Backed out changeset 5fb04c68ae7a (bug 1766307)
Backed out changeset ee76505a46ff (bug 1766310)
Backed out changeset d76eae67ae79 (bug 1754239)
Backed out changeset fed974dcf641 (bug 1754239)
Backed out changeset 67c5fbd546a1 (bug 1766307)
Backed out changeset da49735366d2 (bug 1766308)
Backed out changeset 81ccd31d0f07 (bug 1766307)
2022-07-14 04:03:19 +03:00
az cd7a8fb839 Bug 1766307 - Add gtests for MediaCodecsSupport r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D149939
2022-07-14 00:32:39 +00:00
az 8a28ffe7cc Bug 1766307 - Add H264 include / namespace specifier for PlanarYCbCrImage to fix try build errors r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D148574
2022-07-14 00:32:39 +00:00
az ceee363431 Bug 1766310 - Return HW decode support from WMFMediaDataDecoder r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D147390
2022-07-14 00:32:39 +00:00
az 9eeb816180 Bug 1766307 - Enable PDMFactory::Supports/SupportsMimeType to process+return HW/SW decode info r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147385
2022-07-14 00:32:37 +00:00
Narcis Beleuzu a9e7761934 Backed out 4 changesets (bug 1771374) for causing Google docs and maps rendering regressions. a=backout
Backed out changeset 9c65411d1843 (bug 1771374)
Backed out changeset 9f5cf953fcc8 (bug 1771374)
Backed out changeset 8b39f60971e4 (bug 1771374)
Backed out changeset ef52a6c462b6 (bug 1771374)
2022-07-14 00:43:56 +03:00
Kelsey Gilbert 8eb05ff04b Bug 1771374 - Support display-p3 output via DirectComposition on Windows. r=sotaro,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D150275
2022-07-12 23:55:50 +00:00
Bogdan Szekely 5c4c6b84a0 Backed out changeset 2fa9fd80ad28 (bug 1680975) for causing build bustages on CubebUtils.cpp CLOSED TREE 2022-07-12 16:03:26 +03:00
Greg V 1cf8b3d8bc Bug 1680975 - Enable cubeb remoting on FreeBSD r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D98866
2022-07-12 12:48:30 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
ahochheiden 6f1b5302eb Bug 1777674 - Add missing `<cstdint>` include to support `GCC 13` (it no longer includes it implicitly) r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D151411
2022-07-11 16:46:19 +00:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa 84a0cb6874 Bug 1667455 - Part 18: Always use SpecialPowers.Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150907
2022-07-11 12:41:56 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Nika Layzell 7ced96212e Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana
We'll probably want to do something more accurate in the future with a
custom clang static analysis pass which validates that XPIDL interfaces
have the expected vtable and struct layout, however doing so would be
more involved than the string matching done in this patch.

In addition to checking for extra virtual methods, we'll likely also
want to check for data members on interfaces, and reject them unless the
class is marked as `[builtinclass]` in addition to some other attribute
which we'll need to add to prevent them from being implemented in Rust
(as c++ data members will not be reflected by the rust macro).

There were 2 instances of a comment which contained the word 'virtual'
within a CDATA block. These comments were moved out of the CDATA block
to avoid triggering the error.

Differential Revision: https://phabricator.services.mozilla.com/D151068
2022-07-06 14:53:06 +00:00
Jim Blandy 2f5eb12516 Bug 1777656: Delete mozilla::ipc::SharedMemory::SharedMemorytype. r=nika,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D150852
2022-07-05 20:08:31 +00:00
Sebastian Hengst a149aee4b5 Bug 1777499 - set several color_quads tests as passing with macOS on AArch64. r=padenot
Since bug 1776429 ffvpx is used for decoding.

Differential Revision: https://phabricator.services.mozilla.com/D150978
2022-07-05 08:01:09 +00:00
Joel Maher 537a5a0dc8 Bug 1777549 - remove remaining e10s conditions in manifest files. r=gbrown,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D150820
2022-07-01 13:49:42 +00:00
alwu 9f4133b91f Bug 1758789 - part18 : disable the media engine feature on MinGW. r=media-playback-reviewers,firefox-build-system-reviewers,jolin,ahochheiden
On MinGW, it lacks of the headers for RunTimeClass and we have trouble to make it work. This patch adds a new config for Media Engine in order not to build related files on MinGW environment.

In addition, MinGW build version of Firefox is only used for Tor browser and it's ok to disable this feature for them for now. If they want to port this feature in the future as well, then we can see if we can fix the build problems at that time.

Differential Revision: https://phabricator.services.mozilla.com/D150660
2022-06-30 22:34:22 +00:00
alwu 2faa6460b6 Bug 1758789 - part17 : return 'seeked' if the current time is already equal to the seek target time. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D146247
2022-06-30 22:34:22 +00:00
alwu a20b11de50 Bug 1758789 - part16 : resolve debug info promise to avoid testing crashed. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D145820
2022-06-30 22:34:21 +00:00
alwu a707577f6a Bug 1758789 - part15 : handle some shutdown crashes. r=jolin
The init promise is also monitoring by other places, so we should keep it alive until we can ensure that all other places have disconnected from the promise.

Otherwise, it would cause the assertion [1] because the promise gets destroyed too early.

[1] https://searchfox.org/mozilla-central/rev/c6620104602decf1af7c6a9f78692426db6a5da2/xpcom/threads/MozPromise.h#524

Differential Revision: https://phabricator.services.mozilla.com/D145686
2022-06-30 22:34:21 +00:00
alwu ffaf772e9f Bug 1758789 - part14 : check type support earlier when finishing reading metadata. r=jolin
If we already know the type in unsupported, we can switch back to the normal state machine earlier without waiting the error from the media engine.

Differential Revision: https://phabricator.services.mozilla.com/D145403
2022-06-30 22:34:21 +00:00
alwu 2a20f58d80 Bug 1758789 - part13 : fallback to our state machine when the external engine fails to work. r=jolin
This is important for testing because the media foundation doesn't support all the formats Firefox supports, we would need to fallback to the normal state machine in order to keep tests running without breaking them.

Differential Revision: https://phabricator.services.mozilla.com/D145402
2022-06-30 22:34:20 +00:00
alwu c925033c81 Bug 1758789 - part12 : use the media engine for channel decoder for testing. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D145401
2022-06-30 22:34:20 +00:00
alwu 958122a7da Bug 1758789 - part11 : set MF_MT_USER_DATA for AAC stream. r=jolin
For AAC, we need to setup a special attribute `MF_MT_USER_DATA` on the stream's media type. Otherwise, the media engine would return type-not-supported error.

Differential Revision: https://phabricator.services.mozilla.com/D145286
2022-06-30 22:34:19 +00:00
alwu dff36006a5 Bug 1758789 - part10 : implement audio support for MFMediaEngineDecoderModule. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D145158
2022-06-30 22:34:19 +00:00
alwu dbe39a1668 Bug 1758789 - part9 : add a pref to control video output. r=jolin
There are still some weird bugs about the media engine inside when enabling the video playback. So use a pref to switch the video playback for testing.

The pref should be removed after we finish implementing video playback on via the media engine.

Differential Revision: https://phabricator.services.mozilla.com/D145156
2022-06-30 22:34:19 +00:00
alwu 22dfabcfce Bug 1758789 - part8 : move stream type and related functions to the utils file. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D145157
2022-06-30 22:34:18 +00:00
alwu fadb3f56af Bug 1758789 - part7 : set a blank image to the video container. r=jolin
Before implmenting DCOMP video output, let's set blank image to the video container temporarily. This will result in a white image showing during a playback.

Differential Revision: https://phabricator.services.mozilla.com/D145155
2022-06-30 22:34:18 +00:00
alwu ea6761e3c4 Bug 1758789 - part6 : handle multiple seeked events, which is caused by triggering new seeking before the previous one finishes. r=jolin
It's possible that a new seeking happens while the previous seeking hasn't finished yet. So multiple seeked events would be sent from the media engine.

We should wait for the finish of the last seeking to make sure the current time has changed to the target time in the last seek target.

Differential Revision: https://phabricator.services.mozilla.com/D145154
2022-06-30 22:34:17 +00:00
alwu 4bf2469bc0 Bug 1758789 - part5 : using a fake decoded data generator in the stream wrapper. r=jolin
Media engine would handle the decoded data inside its pipeline, so we can't access them. Return fakes data instead, which helps the format reader stops sending endless data for the media engine. (because the format reader expects getting output data)

Differential Revision: https://phabricator.services.mozilla.com/D145153
2022-06-30 22:34:17 +00:00
alwu e2b58de49a Bug 1758789 - part4 : only trigger shutdown from the decoder. r=jolin
We should let the decoder to determine when the state machine should be shutdown. As there might be some reader tasks still running, shutdowning it too early would result in some crashes.

Differential Revision: https://phabricator.services.mozilla.com/D144769
2022-06-30 22:34:17 +00:00
alwu 9ff25b7c78 Bug 1758789 - part3 : create the media engine. r=jolin
Create a media engine that would be responsible to play media. We would perform any commands sent from the content process on the media engine, and also notify the content process when the media engine updates its status, notifying some useful events, or encountering any error.

Differential Revision: https://phabricator.services.mozilla.com/D144634
2022-06-30 22:34:16 +00:00
alwu 5176904d9d Bug 1758789 - part2 : create a custom media source. r=jolin
Based on [1], we would need to create a custom media source and set it on the media engine. Media engine will interact with the source, and the streams in order to receive events and the decoded samples.

[1] https://docs.microsoft.com/en-us/windows/win32/medfound/writing-a-custom-media-source

Differential Revision: https://phabricator.services.mozilla.com/D144631
2022-06-30 22:34:16 +00:00
alwu 84571b79c7 Bug 1758789 - part1 : use an extra header to include API which are only available on win8+. r=jolin
Currently, we build with WINVER=0x601 (Win7), which means newer declarations in
mfmediaengine.h will not be visible. Also, we don't yet have the Fall Creators
Update SDK available on build machines, so even with updated WINVER, some of
the interfaces we need would not be present.

To work around this, until the build environment is updated, we include copies
of the relevant classes/interfaces we need.

Differential Revision: https://phabricator.services.mozilla.com/D144630
2022-06-30 22:34:15 +00:00
Cosmin Sabou dc6ea053d3 Bug 1776937 - Disable test_capture_stream_av_sync.html on linux for having a high frequency failure rate. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D150825
2022-06-30 21:46:20 +00:00
smolnar 50d8d18c90 Backed out 18 changesets (bug 1758789) for causing win AArch64 build bustages. CLOSED TREE
Backed out changeset e3f1d216b7b0 (bug 1758789)
Backed out changeset 737731f1056d (bug 1758789)
Backed out changeset 76a2ae95718a (bug 1758789)
Backed out changeset c134ab07a603 (bug 1758789)
Backed out changeset 84f574f95348 (bug 1758789)
Backed out changeset 7dae17111210 (bug 1758789)
Backed out changeset cdec8c010960 (bug 1758789)
Backed out changeset a1976aeac84e (bug 1758789)
Backed out changeset 6aac8720ffa5 (bug 1758789)
Backed out changeset 48b798f102e5 (bug 1758789)
Backed out changeset 310e551d433b (bug 1758789)
Backed out changeset b3d6df1153c1 (bug 1758789)
Backed out changeset 61775207f73b (bug 1758789)
Backed out changeset f0c28aea2f4b (bug 1758789)
Backed out changeset 0a65ff00244a (bug 1758789)
Backed out changeset 0b747e748709 (bug 1758789)
Backed out changeset cdf4acea8c87 (bug 1758789)
Backed out changeset 0c4009da7d1e (bug 1758789)
2022-06-30 23:54:23 +03:00
alwu 1368dec887 Bug 1758789 - part18 : disable the media engine feature on MinGW. r=media-playback-reviewers,firefox-build-system-reviewers,jolin,ahochheiden
On MinGW, it lacks of the headers for RunTimeClass and we have trouble to make it work. This patch adds a new config for Media Engine in order not to build related files on MinGW environment.

In addition, MinGW build version of Firefox is only used for Tor browser and it's ok to disable this feature for them for now. If they want to port this feature in the future as well, then we can see if we can fix the build problems at that time.

Differential Revision: https://phabricator.services.mozilla.com/D150660
2022-06-30 18:14:50 +00:00