mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Add DirectShow in about:support
This commit is contained in:
parent
47600fab86
commit
77cfca739d
5 changed files with 23 additions and 2 deletions
|
|
@ -337,6 +337,16 @@ var snapshotFormatters = {
|
|||
addRowFromKey("features", "webgl2Extensions");
|
||||
addRowFromKey("features", "supportsHardwareH264", "hardwareH264");
|
||||
addRowFromKey("features", "currentAudioBackend", "audioBackend");
|
||||
if ("directShowEnabled" in data) {
|
||||
addRow("features", "directShowEnabled",
|
||||
strings.GetStringFromName(data.directShowEnabled ? "yes" : "no"));
|
||||
delete data.directShowEnabled;
|
||||
}
|
||||
if ("directShowH264Active" in data) {
|
||||
addRow("features", "directShowH264Active",
|
||||
strings.GetStringFromName(data.directShowH264Active ? "yes" : "no"));
|
||||
delete data.directShowH264Active;
|
||||
}
|
||||
addRowFromKey("features", "direct2DEnabled", "#Direct2D");
|
||||
|
||||
if ("directWriteEnabled" in data) {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ clearTypeParameters = ClearType Parameters
|
|||
compositing = Compositing
|
||||
hardwareH264 = Hardware H264 Decoding
|
||||
audioBackend = Audio Backend
|
||||
directShowEnabled = DirectShow H264 Backend Enabled
|
||||
directShowH264Active = DirectShow H264 Decoding Active
|
||||
mainThreadNoOMTC = main thread, no OMTC
|
||||
yes = Yes
|
||||
no = No
|
||||
|
|
|
|||
|
|
@ -358,6 +358,8 @@ var dataProviders = {
|
|||
} catch (e) {}
|
||||
|
||||
data.currentAudioBackend = winUtils.currentAudioBackend;
|
||||
data.directShowEnabled = Services.prefs.getBoolPref("media.directshow.enabled", false);
|
||||
data.directShowH264Active = Services.prefs.getBoolPref("media.directshow.h264.active", false);
|
||||
|
||||
if (!data.numAcceleratedWindows && gfxInfo) {
|
||||
#ifdef XP_WIN
|
||||
|
|
@ -551,4 +553,3 @@ var dataProviders = {
|
|||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue