mail/thunderbird: drop patches in preparation for update
$ svn commit Sending Mk/Uses/gecko.mk Sending mail/thunderbird/Makefile Sending mail/thunderbird/distinfo Sending mail/thunderbird/files/patch-addon-search Replacing mail/thunderbird/files/patch-bug1021761 Adding mail/thunderbird/files/patch-bug1144632 Deleting mail/thunderbird/files/patch-bug1186967 [...] Transmitting file data ..........done Committing transaction... svn: E165001: Commit failed (details follow): svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output: Do not replace a file. This can lose history. Path: "/head/mail/thunderbird/files/patch-bug702179" == Additional errors may compound and may not be accurate == Do not replace a file. This can lose history. Path: "/head/mail/thunderbird/files/patch-bug1021761" Do not replace a file. This can lose history. Path: "/head/mail/thunderbird/files/patch-bug1288587" Do not replace a file. This can lose history. Path: "/head/mail/thunderbird/files/patch-bug847568" Do not replace a file. This can lose history. Path: "/head/mail/thunderbird/files/patch-env-api-keys" [...] Pointy hat to: portmgr (multi-steps are error prone)
This commit is contained in:
parent
a26244d348
commit
e344179e47
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474920
27 changed files with 0 additions and 17154 deletions
|
@ -1,31 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
# S50cleanhome
|
||||
# a script to clean up users' Mozilla home directories to make upgrading
|
||||
# less painful.
|
||||
|
||||
# We run in our own subshell
|
||||
|
||||
# First, verify protocol
|
||||
[ "$1" != "start" ] && exit 1
|
||||
[ -z "${MOZ_PIS_API}" -o ${MOZ_PIS_API} -ne 2 ] && exit 1
|
||||
[ -z "${MOZ_PIS_MOZBINDIR}" -o ! -d "${MOZ_PIS_MOZBINDIR}" ] && exit 1
|
||||
[ -z "${HOME}" -o ! -d "${HOME}" ] && exit 1
|
||||
[ -z "${MOZ_PIS_USER_DIR}" -o ! -d "${HOME}/${MOZ_PIS_USER_DIR}" ] && exit 1
|
||||
|
||||
# Try to cleanup ${HOME}/${MOZ_PIS_USER_DIR}
|
||||
|
||||
if [ -f "${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" ]; then
|
||||
sed -e '/Path=/! d' -e "s,Path=,${HOME}/${MOZ_PIS_USER_DIR}/," \
|
||||
"${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" \
|
||||
| while read dir
|
||||
do
|
||||
[ ! -d "${dir}" ] && continue
|
||||
# Debian does this for new builds
|
||||
# rm -f "${dir}/XUL.mfasl"
|
||||
# force a rebuild of compreg.dat and xpti.dat for new installations
|
||||
[ "${dir}/compreg.dat" -ot "${MOZ_PIS_MOZBINDIR}/components.ini" ] &&
|
||||
rm -f "${dir}/compatibility.ini" "${dir}/XUL.mfasl"
|
||||
done
|
||||
fi
|
|
@ -1,73 +0,0 @@
|
|||
https://github.com/mozilla/addons/issues/708
|
||||
https://github.com/mozilla/addons-frontend/issues/4610
|
||||
|
||||
diff --git mail/app/profile/all-thunderbird.js mail/app/profile/all-thunderbird.js
|
||||
index 75c2c5e435e35..4d8c09c02759b 100644
|
||||
--- mail/app/profile/all-thunderbird.js
|
||||
+++ mail/app/profile/all-thunderbird.js
|
||||
@@ -156,13 +156,13 @@ pref("extensions.autoDisableScopes", 15);
|
||||
// Preferences for AMO integration
|
||||
pref("extensions.getAddons.cache.enabled", true);
|
||||
pref("extensions.getAddons.maxResults", 15);
|
||||
-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/guid:%IDS%?src=thunderbird&appOS=%OS%&appVersion=%VERSION%");
|
||||
-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/guid:%IDS%?src=thunderbird&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
|
||||
+pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/guid:%IDS%?src=thunderbird&appOS=Linux&appVersion=%VERSION%");
|
||||
+pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/guid:%IDS%?src=thunderbird&appOS=Linux&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
|
||||
pref("extensions.getAddons.link.url", "https://addons.mozilla.org/%LOCALE%/%APP%/");
|
||||
-pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/recommended/all/%MAX_RESULTS%/%OS%/%VERSION%?src=thunderbird");
|
||||
+pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/recommended/all/%MAX_RESULTS%/Linux/%VERSION%?src=thunderbird");
|
||||
pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/%APP%/search?q=%TERMS%");
|
||||
-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=thunderbird");
|
||||
-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/%APP%/discovery/pane/%VERSION%/%OS%");
|
||||
+pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/Linux/%VERSION%/%COMPATIBILITY_MODE%?src=thunderbird");
|
||||
+pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/%APP%/discovery/pane/%VERSION%/Linux");
|
||||
|
||||
// Blocklist preferences
|
||||
pref("extensions.blocklist.enabled", true);
|
||||
@@ -202,9 +202,9 @@ pref("extensions.logging.enabled", false);
|
||||
// .. etc ..
|
||||
//
|
||||
pref("extensions.update.enabled", true);
|
||||
-pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
||||
+pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=Linux&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
||||
|
||||
-pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
||||
+pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=Linux&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%");
|
||||
|
||||
pref("extensions.update.interval", 86400); // Check for updates to Extensions and
|
||||
// Themes every day
|
||||
diff --git toolkit/mozapps/extensions/internal/AddonRepository.jsm toolkit/mozapps/extensions/internal/AddonRepository.jsm
|
||||
index f70fd8d7e3bd8..81e8cd7764fdf 100644
|
||||
--- mozilla/toolkit/mozapps/extensions/internal/AddonRepository.jsm
|
||||
+++ mozilla/toolkit/mozapps/extensions/internal/AddonRepository.jsm
|
||||
@@ -1179,7 +1179,7 @@ this.AddonRepository = {
|
||||
let nodes = node.getElementsByTagName("os");
|
||||
addon.isPlatformCompatible = Array.some(nodes, function(aNode) {
|
||||
let text = aNode.textContent.toLowerCase().trim();
|
||||
- return text == "all" || text == Services.appinfo.OS.toLowerCase();
|
||||
+ return text == "all" || text == "linux" || text == Services.appinfo.OS.toLowerCase();
|
||||
});
|
||||
break;
|
||||
case "install":
|
||||
@@ -1187,7 +1187,7 @@ this.AddonRepository = {
|
||||
if (node.hasAttribute("os")) {
|
||||
let os = node.getAttribute("os").trim().toLowerCase();
|
||||
// If the os is not ALL and not the current OS then ignore this xpi
|
||||
- if (os != "all" && os != Services.appinfo.OS.toLowerCase())
|
||||
+ if (os != "all" && os != "linux" && os != Services.appinfo.OS.toLowerCase())
|
||||
break;
|
||||
}
|
||||
|
||||
diff --git toolkit/mozapps/extensions/internal/XPIProvider.jsm toolkit/mozapps/extensions/internal/XPIProvider.jsm
|
||||
index f70fd8d7e3bd8..81e8cd7764fdf 100644
|
||||
--- mozilla/toolkit/mozapps/extensions/internal/XPIProvider.jsm
|
||||
+++ mozilla/toolkit/mozapps/extensions/internal/XPIProvider.jsm
|
||||
@@ -7186,7 +7186,7 @@ AddonInternal.prototype = {
|
||||
// Something is causing errors in here
|
||||
try {
|
||||
for (let platform of this.targetPlatforms) {
|
||||
- if (platform.os == Services.appinfo.OS) {
|
||||
+ if (platform.os == "Linux" || platform.os == Services.appinfo.OS) {
|
||||
if (platform.abi) {
|
||||
needsABI = true;
|
||||
if (platform.abi === abi)
|
File diff suppressed because it is too large
Load diff
|
@ -1,41 +0,0 @@
|
|||
commit 64bb4e051b50
|
||||
Author: Martin Stransky <stransky@redhat.com>
|
||||
Date: Tue Oct 17 09:50:18 2017 +0200
|
||||
|
||||
Bug 1186967 - ignore double-click on WM without _NET_WM_MOVERESIZE support, r=jhorak
|
||||
|
||||
MozReview-Commit-ID: 2Vs6i5leero
|
||||
|
||||
--HG--
|
||||
extra : rebase_source : d8f2bbaf9ef9b2025478f029a68ee7e87e07de79
|
||||
---
|
||||
widget/gtk/nsWindow.cpp | 16 ++++++++++++++++
|
||||
1 file changed, 16 insertions(+)
|
||||
|
||||
diff --git widget/gtk/nsWindow.cpp widget/gtk/nsWindow.cpp
|
||||
index eb2f0e5e95cd..955327297ac9 100644
|
||||
--- mozilla/widget/gtk/nsWindow.cpp
|
||||
+++ mozilla/widget/gtk/nsWindow.cpp
|
||||
@@ -6444,6 +6444,22 @@ nsWindow::GetDragInfo(WidgetMouseEvent* aMouseEvent,
|
||||
return false;
|
||||
}
|
||||
|
||||
+ if (mIsX11Display) {
|
||||
+ // Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=789054
|
||||
+ // To avoid crashes disable double-click on WM without _NET_WM_MOVERESIZE.
|
||||
+ // See _should_perform_ewmh_drag() at gdkwindow-x11.c
|
||||
+ GdkScreen* screen = gdk_window_get_screen(gdk_window);
|
||||
+ GdkAtom atom = gdk_atom_intern("_NET_WM_MOVERESIZE", FALSE);
|
||||
+ if (!gdk_x11_screen_supports_net_wm_hint(screen, atom)) {
|
||||
+ static unsigned int lastTimeStamp = 0;
|
||||
+ if (lastTimeStamp != aMouseEvent->mTime) {
|
||||
+ lastTimeStamp = aMouseEvent->mTime;
|
||||
+ } else {
|
||||
+ return false;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
// FIXME: It would be nice to have the widget position at the time
|
||||
// of the event, but it's relatively unlikely that the widget has
|
||||
// moved since the mousedown. (On the other hand, it's quite likely
|
|
@ -1,67 +0,0 @@
|
|||
diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
|
||||
index 855214a..1e91d51 100644
|
||||
--- mozilla/build/moz.configure/init.configure
|
||||
+++ mozilla/build/moz.configure/init.configure
|
||||
@@ -165,16 +165,17 @@ option(env='PYTHON', nargs=1, help='Python interpreter')
|
||||
# ==============================================================
|
||||
@depends('PYTHON', check_build_environment, mozconfig, '--help')
|
||||
@imports('os')
|
||||
@imports('sys')
|
||||
@imports('subprocess')
|
||||
@imports(_from='mozbuild.configure.util', _import='LineIO')
|
||||
@imports(_from='mozbuild.virtualenv', _import='VirtualenvManager')
|
||||
@imports(_from='mozbuild.virtualenv', _import='verify_python_version')
|
||||
+@imports(_from='__builtin__', _import='KeyError')
|
||||
@imports('distutils.sysconfig')
|
||||
def virtualenv_python(env_python, build_env, mozconfig, help):
|
||||
if help:
|
||||
return
|
||||
|
||||
python = env_python[0] if env_python else None
|
||||
|
||||
# Ideally we'd rely on the mozconfig injection from mozconfig_options,
|
||||
@@ -184,16 +185,22 @@ def virtualenv_python(env_python, build_env, mozconfig, help):
|
||||
if 'PYTHON' in mozconfig['env']['added']:
|
||||
python = mozconfig['env']['added']['PYTHON']
|
||||
elif 'PYTHON' in mozconfig['env']['modified']:
|
||||
python = mozconfig['env']['modified']['PYTHON'][1]
|
||||
elif 'PYTHON' in mozconfig['vars']['added']:
|
||||
python = mozconfig['vars']['added']['PYTHON']
|
||||
elif 'PYTHON' in mozconfig['vars']['modified']:
|
||||
python = mozconfig['vars']['modified']['PYTHON'][1]
|
||||
+ for i in ('env', 'vars'):
|
||||
+ for j in ('added', 'modified'):
|
||||
+ try:
|
||||
+ del mozconfig[i][j]['PYTHON']
|
||||
+ except KeyError:
|
||||
+ pass
|
||||
|
||||
with LineIO(lambda l: log.error(l)) as out:
|
||||
verify_python_version(out)
|
||||
topsrcdir, topobjdir = build_env.topsrcdir, build_env.topobjdir
|
||||
if topobjdir.endswith('/js/src'):
|
||||
topobjdir = topobjdir[:-7]
|
||||
|
||||
with LineIO(lambda l: log.info(l)) as out:
|
||||
@@ -219,17 +226,20 @@ def virtualenv_python(env_python, build_env, mozconfig, help):
|
||||
log.info('Creating Python environment')
|
||||
manager.build(python)
|
||||
|
||||
python = normsep(manager.python_path)
|
||||
|
||||
if python != normsep(sys.executable):
|
||||
log.info('Reexecuting in the virtualenv')
|
||||
if env_python:
|
||||
- del os.environ['PYTHON']
|
||||
+ try:
|
||||
+ del os.environ['PYTHON']
|
||||
+ except KeyError:
|
||||
+ pass
|
||||
# One would prefer to use os.execl, but that's completely borked on
|
||||
# Windows.
|
||||
sys.exit(subprocess.call([python] + sys.argv))
|
||||
|
||||
# We are now in the virtualenv
|
||||
if not distutils.sysconfig.get_python_lib():
|
||||
die('Could not determine python site packages directory')
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
commit a13d95795217
|
||||
Author: <tharvik@gmail.com>
|
||||
Date: Thu Dec 8 18:20:12 2016 -0600
|
||||
|
||||
Bug 1321877. Fix compiler warnings in Downscaler.h when skia is not enabled. r=tnikkel
|
||||
---
|
||||
image/Downscaler.h | 11 +++++++----
|
||||
1 file changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git image/Downscaler.h image/Downscaler.h
|
||||
index 21179a38f200..0bdef0eaa646 100644
|
||||
--- mozilla/image/Downscaler.h
|
||||
+++ mozilla/image/Downscaler.h
|
||||
@@ -154,14 +154,14 @@ private:
|
||||
class Downscaler
|
||||
{
|
||||
public:
|
||||
- explicit Downscaler(const nsIntSize&)
|
||||
+ explicit Downscaler(const nsIntSize&) : mScale(1.0, 1.0)
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(false, "Skia is not enabled");
|
||||
}
|
||||
|
||||
- const nsIntSize& OriginalSize() const { return nsIntSize(); }
|
||||
- const nsIntSize& TargetSize() const { return nsIntSize(); }
|
||||
- const gfxSize& Scale() const { return gfxSize(1.0, 1.0); }
|
||||
+ const nsIntSize& OriginalSize() const { return mSize; }
|
||||
+ const nsIntSize& TargetSize() const { return mSize; }
|
||||
+ const gfxSize& Scale() const { return mScale; }
|
||||
|
||||
nsresult BeginFrame(const nsIntSize&, const Maybe<nsIntRect>&, uint8_t*, bool, bool = false)
|
||||
{
|
||||
@@ -177,6 +177,9 @@ public:
|
||||
DownscalerInvalidRect TakeInvalidRect() { return DownscalerInvalidRect(); }
|
||||
void ResetForNextProgressivePass() { }
|
||||
const nsIntSize FrameSize() const { return nsIntSize(0, 0); }
|
||||
+private:
|
||||
+ nsIntSize mSize;
|
||||
+ gfxSize mScale;
|
||||
};
|
||||
|
||||
#endif // MOZ_ENABLE_SKIA
|
|
@ -1,66 +0,0 @@
|
|||
commit bbd48a5613c8
|
||||
Author: Ralph Giles <giles@mozilla.com>
|
||||
Date: Fri Feb 10 12:58:18 2017 -0800
|
||||
|
||||
Bug 1338655 - Don't try to build mp4parse bindings. r=froydnj
|
||||
|
||||
We use the cheddar crate to generate a C header file
|
||||
for our mp4parse_capi wrapper crate. Currently we
|
||||
do this at code check-in time via update-rust.sh.
|
||||
|
||||
Cargo 0.18 and later will try to execute a build.rs
|
||||
file in the crate source tree regardless of whether
|
||||
it's specified in Cargo.toml so patching out that
|
||||
line just results in 'crate cheddar not found'.
|
||||
|
||||
This change restores the old behaviour by substituting
|
||||
a 'build = false' line instead.
|
||||
|
||||
We do have syntex vendored, but we don't currently build
|
||||
it by default, so I prefer this solution to just vendoring
|
||||
cheddar and generating the header at build time. The syntex
|
||||
crate is quite large and adds significantly to our compile
|
||||
time.
|
||||
|
||||
MozReview-Commit-ID: InJRRODWAdP
|
||||
|
||||
--HG--
|
||||
extra : rebase_source : 29378fcbc86015ce6cc22dc66d38a43ddbac204e
|
||||
---
|
||||
media/libstagefright/binding/mp4parse-cargo.patch | 5 +++--
|
||||
media/libstagefright/binding/mp4parse_capi/Cargo.toml | 2 ++
|
||||
2 files changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git media/libstagefright/binding/mp4parse-cargo.patch media/libstagefright/binding/mp4parse-cargo.patch
|
||||
index 1dd13d20472a..bfa0ab74b424 100644
|
||||
--- mozilla/media/libstagefright/binding/mp4parse-cargo.patch
|
||||
+++ mozilla/media/libstagefright/binding/mp4parse-cargo.patch
|
||||
@@ -25,12 +25,13 @@ diff --git a/media/libstagefright/binding/mp4parse_cap
|
||||
index aeeebc65..5c0836a 100644
|
||||
--- a/media/libstagefright/binding/mp4parse_capi/Cargo.toml
|
||||
+++ b/media/libstagefright/binding/mp4parse_capi/Cargo.toml
|
||||
-@@ -18,17 +18,9 @@ exclude = [
|
||||
+@@ -18,17 +18,11 @@ exclude = [
|
||||
"*.mp4",
|
||||
]
|
||||
|
||||
-build = "build.rs"
|
||||
--
|
||||
++build = false
|
||||
+
|
||||
[dependencies]
|
||||
"mp4parse" = {version = "0.6.0", path = "../mp4parse"}
|
||||
|
||||
diff --git media/libstagefright/binding/mp4parse_capi/Cargo.toml media/libstagefright/binding/mp4parse_capi/Cargo.toml
|
||||
index aee7ee947151..d7e3f55119d3 100644
|
||||
--- mozilla/media/libstagefright/binding/mp4parse_capi/Cargo.toml
|
||||
+++ mozilla/media/libstagefright/binding/mp4parse_capi/Cargo.toml
|
||||
@@ -18,6 +18,8 @@ exclude = [
|
||||
"*.mp4",
|
||||
]
|
||||
|
||||
+build = false
|
||||
+
|
||||
[dependencies]
|
||||
byteorder = "1.0.0"
|
||||
"mp4parse" = {version = "0.6.0", path = "../mp4parse"}
|
|
@ -1,36 +0,0 @@
|
|||
commit 10b55207992c
|
||||
Author: Kai Engert <kaie@kuix.de>
|
||||
Date: Fri Jul 14 15:31:30 2017 +0200
|
||||
|
||||
Bug 1380706, PSM should depend on mozStorage, as a workaround for a sqlite3_config race, r=keeler
|
||||
---
|
||||
security/manager/ssl/nsNSSComponent.cpp | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git security/manager/ssl/nsNSSComponent.cpp security/manager/ssl/nsNSSComponent.cpp
|
||||
index f51f8af47d51..a82c1ed61fba 100644
|
||||
--- mozilla/security/manager/ssl/nsNSSComponent.cpp
|
||||
+++ mozilla/security/manager/ssl/nsNSSComponent.cpp
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "SharedSSLState.h"
|
||||
#include "cert.h"
|
||||
#include "certdb.h"
|
||||
+#include "mozStorageCID.h"
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Casting.h"
|
||||
@@ -2032,6 +2033,14 @@ nsNSSComponent::Init()
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
+ // To avoid a sqlite3_config race in NSS init, as a workaround for
|
||||
+ // bug 730495, we require the storage service to get initialized first.
|
||||
+ nsCOMPtr<nsISupports> storageService =
|
||||
+ do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID);
|
||||
+ if (!storageService) {
|
||||
+ return NS_ERROR_NOT_AVAILABLE;
|
||||
+ }
|
||||
+
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("Beginning NSS initialization\n"));
|
||||
|
||||
nsresult rv = InitializePIPNSSBundle();
|
|
@ -1,14 +0,0 @@
|
|||
https://github.com/kinetiknz/cubeb/commit/16f9ccc064f2
|
||||
|
||||
--- mozilla/media/libcubeb/src/cubeb_jack.cpp.orig 2017-07-07 05:37:16 UTC
|
||||
+++ mozilla/media/libcubeb/src/cubeb_jack.cpp
|
||||
@@ -8,7 +8,9 @@
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
+#ifndef __FreeBSD__
|
||||
#define _POSIX_SOURCE
|
||||
+#endif
|
||||
#include <algorithm>
|
||||
#include <dlfcn.h>
|
||||
#include <limits>
|
|
@ -1,83 +0,0 @@
|
|||
diff --git dom/media/flac/FlacDecoder.cpp dom/media/flac/FlacDecoder.cpp
|
||||
index 53fc3c9937f7..b23771ab80fa 100644
|
||||
--- mozilla/dom/media/flac/FlacDecoder.cpp
|
||||
+++ mozilla/dom/media/flac/FlacDecoder.cpp
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "FlacDecoder.h"
|
||||
#include "MediaContainerType.h"
|
||||
#include "MediaPrefs.h"
|
||||
+#include "PDMFactory.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@@ -15,6 +16,10 @@ FlacDecoder::IsEnabled()
|
||||
{
|
||||
#ifdef MOZ_FFVPX
|
||||
return MediaPrefs::FlacEnabled();
|
||||
+#elif defined(MOZ_FFMPEG)
|
||||
+ RefPtr<PDMFactory> platform = new PDMFactory();
|
||||
+ return MediaPrefs::FlacEnabled() && platform->SupportsMimeType(NS_LITERAL_CSTRING("audio/flac"),
|
||||
+ /* DecoderDoctorDiagnostics* */ nullptr);
|
||||
#else
|
||||
// Until bug 1295886 is fixed.
|
||||
return false;
|
||||
diff --git media/ffvpx/README_MOZILLA media/ffvpx/README_MOZILLA
|
||||
index 5d3a6037efe0..43144b726a92 100644
|
||||
--- mozilla/media/ffvpx/README_MOZILLA
|
||||
+++ mozilla/media/ffvpx/README_MOZILLA
|
||||
@@ -17,14 +17,6 @@ configuration files were generated as follow using the configure script:
|
||||
config*:
|
||||
replace: /HAVE_(MALLOC_H|ARC4RANDOM|LOCALTIME_R|MEMALIGN|POSIX_MEMALIGN)/d
|
||||
|
||||
-config_darwin32.h:
|
||||
-add to configure command: --disable-asm --disable-yasm --cc='clang -m32'
|
||||
-
|
||||
-config_unix32.h:
|
||||
-add to configure command: --disable-asm --disable-yasm --cc='clang -m32'
|
||||
-replace: s/HAVE_SYSCTL 1/HAVE_SYSCTL 0/ and s/HAVE_MEMALIGN 1/HAVE_MEMALIGN 0/ and s/HAVE_POSIX_MEMALIGN 1/HAVE_POSIX_MEMALIGN 0/
|
||||
-
|
||||
-
|
||||
config_unix64.h/config_unix64.asm:
|
||||
replace: s/HAVE_SYSCTL 1/HAVE_SYSCTL 0
|
||||
|
||||
diff --git media/ffvpx/config.h media/ffvpx/config.h
|
||||
index dab01e05cd65..26ebe529bd98 100644
|
||||
--- mozilla/media/ffvpx/config.h
|
||||
+++ mozilla/media/ffvpx/config.h
|
||||
@@ -27,17 +27,9 @@
|
||||
#define HAVE_LIBC_MSVCRT 0
|
||||
#endif
|
||||
#elif defined(XP_DARWIN)
|
||||
-#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_darwin64.h"
|
||||
-#else
|
||||
-#include "config_darwin32.h"
|
||||
-#endif
|
||||
#elif defined(XP_UNIX)
|
||||
-#if defined(HAVE_64BIT_BUILD)
|
||||
#include "config_unix64.h"
|
||||
-#else
|
||||
-#include "config_unix32.h"
|
||||
-#endif
|
||||
#endif
|
||||
#include "config_common.h"
|
||||
#endif // MOZ_FFVPX_CONFIG_H
|
||||
diff --git old-configure.in old-configure.in
|
||||
index b8ce71278548..410be683c2f6 100644
|
||||
--- mozilla/old-configure.in
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -3279,11 +3279,11 @@ dnl = FFmpeg's ffvpx configuration
|
||||
dnl ========================================================
|
||||
|
||||
MOZ_FFVPX=
|
||||
-case "$CPU_ARCH" in
|
||||
- x86)
|
||||
+case "$OS_ARCH:$CPU_ARCH" in
|
||||
+ WINNT:x86)
|
||||
MOZ_FFVPX=1
|
||||
;;
|
||||
- x86_64)
|
||||
+ *:x86_64)
|
||||
MOZ_FFVPX=1
|
||||
;;
|
||||
esac
|
|
@ -1,77 +0,0 @@
|
|||
Always build libyuv x86 optimizations with Clang.
|
||||
|
||||
diff --git media/libyuv/include/libyuv/compare_row.h media/libyuv/include/libyuv/compare_row.h
|
||||
index 38a957b2ce33..59ec4b30c238 100644
|
||||
--- mozilla/media/libyuv/include/libyuv/compare_row.h
|
||||
+++ mozilla/media/libyuv/include/libyuv/compare_row.h
|
||||
@@ -19,7 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
- (defined(__i386__) && !defined(__SSE2__))
|
||||
+ (defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
diff --git media/libyuv/include/libyuv/planar_functions.h media/libyuv/include/libyuv/planar_functions.h
|
||||
index 881b0c5c6473..491c022bfe8f 100644
|
||||
--- mozilla/media/libyuv/include/libyuv/planar_functions.h
|
||||
+++ mozilla/media/libyuv/include/libyuv/planar_functions.h
|
||||
@@ -450,7 +450,7 @@ int I420Interpolate(const uint8* src0_y, int src0_stride_y,
|
||||
int width, int height, int interpolation);
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
- (defined(__i386__) && !defined(__SSE2__))
|
||||
+ (defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
diff --git media/libyuv/include/libyuv/rotate_row.h media/libyuv/include/libyuv/rotate_row.h
|
||||
index ebc487f9abf4..59fbd10b573c 100644
|
||||
--- mozilla/media/libyuv/include/libyuv/rotate_row.h
|
||||
+++ mozilla/media/libyuv/include/libyuv/rotate_row.h
|
||||
@@ -19,7 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
- (defined(__i386__) && !defined(__SSE2__))
|
||||
+ (defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
diff --git media/libyuv/include/libyuv/row.h media/libyuv/include/libyuv/row.h
|
||||
index 069d73bd3f2e..3616ecd81c3d 100644
|
||||
--- mozilla/media/libyuv/include/libyuv/row.h
|
||||
+++ mozilla/media/libyuv/include/libyuv/row.h
|
||||
@@ -38,7 +38,7 @@ extern "C" {
|
||||
var = 0
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
- (defined(__i386__) && !defined(__SSE2__))
|
||||
+ (defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
diff --git media/libyuv/include/libyuv/scale_row.h media/libyuv/include/libyuv/scale_row.h
|
||||
index df699e6c2282..242f025b1e6e 100644
|
||||
--- mozilla/media/libyuv/include/libyuv/scale_row.h
|
||||
+++ mozilla/media/libyuv/include/libyuv/scale_row.h
|
||||
@@ -20,7 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
- (defined(__i386__) && !defined(__SSE2__))
|
||||
+ (defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
diff --git media/libyuv/linux.mk media/libyuv/linux.mk
|
||||
index ee5a3a70705a..c1a45173c9ab 100644
|
||||
--- mozilla/media/libyuv/linux.mk
|
||||
+++ mozilla/media/libyuv/linux.mk
|
||||
@@ -78,4 +78,4 @@ cpuid: util/cpuid.c libyuv.a
|
||||
$(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a
|
||||
|
||||
clean:
|
||||
- /bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr
|
||||
+ /bin/rm -f source/*.o *.ii *.s libyuv.a yuvconvert cpuid psnr
|
File diff suppressed because it is too large
Load diff
|
@ -1,70 +0,0 @@
|
|||
--- mozilla/media/libcubeb/src/cubeb_sndio.c.orig 2018-04-04 00:35:17 UTC
|
||||
+++ mozilla/media/libcubeb/src/cubeb_sndio.c
|
||||
@@ -43,17 +43,33 @@ struct cubeb_stream {
|
||||
cubeb_data_callback data_cb; /* cb to preapare data */
|
||||
cubeb_state_callback state_cb; /* cb to notify about state changes */
|
||||
void *arg; /* user arg to {data,state}_cb */
|
||||
+ float volume; /* current volume */
|
||||
};
|
||||
|
||||
static void
|
||||
-float_to_s16(void *ptr, long nsamp)
|
||||
+s16_setvol(void *ptr, long nsamp, float volume)
|
||||
{
|
||||
int16_t *dst = ptr;
|
||||
+ int32_t mult = volume * 32768;
|
||||
+ int32_t s;
|
||||
+
|
||||
+ while (nsamp-- > 0) {
|
||||
+ s = *dst;
|
||||
+ s = (s * mult) >> 15;
|
||||
+ *(dst++) = s;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+float_to_s16(void *ptr, long nsamp, float volume)
|
||||
+{
|
||||
+ int16_t *dst = ptr;
|
||||
float *src = ptr;
|
||||
+ float mult = volume * 32768;
|
||||
int s;
|
||||
|
||||
while (nsamp-- > 0) {
|
||||
- s = lrintf(*(src++) * 32768);
|
||||
+ s = lrintf(*(src++) * mult);
|
||||
if (s < -32768)
|
||||
s = -32768;
|
||||
else if (s > 32767)
|
||||
@@ -111,7 +127,9 @@ sndio_mainloop(void *arg)
|
||||
break;
|
||||
}
|
||||
if (s->conv)
|
||||
- float_to_s16(s->buf, nfr * s->pchan);
|
||||
+ float_to_s16(s->buf, nfr * s->pchan, s->volume);
|
||||
+ else
|
||||
+ s16_setvol(s->buf, nfr * s->pchan, s->volume);
|
||||
start = 0;
|
||||
end = nfr * s->bpf;
|
||||
}
|
||||
@@ -260,6 +278,7 @@ sndio_stream_init(cubeb * context,
|
||||
free(s);
|
||||
return CUBEB_ERROR;
|
||||
}
|
||||
+ s->volume = 1.;
|
||||
*stream = s;
|
||||
DPR("sndio_stream_init() end, ok\n");
|
||||
(void)context;
|
||||
@@ -346,7 +365,11 @@ sndio_stream_set_volume(cubeb_stream *s, float volume)
|
||||
{
|
||||
DPR("sndio_stream_set_volume(%f)\n", volume);
|
||||
pthread_mutex_lock(&s->mtx);
|
||||
- sio_setvol(s->hdl, SIO_MAXVOL * volume);
|
||||
+ if (volume < 0.)
|
||||
+ volume = 0.;
|
||||
+ else if (volume > 1.0)
|
||||
+ volume = 1.;
|
||||
+ s->volume = volume;
|
||||
pthread_mutex_unlock(&s->mtx);
|
||||
return CUBEB_OK;
|
||||
}
|
|
@ -1,232 +0,0 @@
|
|||
--- ldap/c-sdk/include/ldap.h~
|
||||
+++ ldap/c-sdk/include/ldap.h
|
||||
@@ -40,6 +40,229 @@
|
||||
#ifndef _LDAP_H
|
||||
#define _LDAP_H
|
||||
|
||||
+/* rename symbols to not clash with openldap (bug 292127) */
|
||||
+#define ldap_abandon moz_ldap_abandon
|
||||
+#define ldap_abandon_ext moz_ldap_abandon_ext
|
||||
+#define ldap_abandoned moz_ldap_abandoned
|
||||
+#define ldap_add moz_ldap_add
|
||||
+#define ldap_add_ext moz_ldap_add_ext
|
||||
+#define ldap_add_ext_s moz_ldap_add_ext_s
|
||||
+#define ldap_add_result_entry moz_ldap_add_result_entry
|
||||
+#define ldap_add_s moz_ldap_add_s
|
||||
+#define ldap_ber_free moz_ldap_ber_free
|
||||
+#define ldap_bind moz_ldap_bind
|
||||
+#define ldap_bind_s moz_ldap_bind_s
|
||||
+#define ldap_build_filter moz_ldap_build_filter
|
||||
+#define ldap_cache_flush moz_ldap_cache_flush
|
||||
+#define ldap_charray_add moz_ldap_charray_add
|
||||
+#define ldap_charray_dup moz_ldap_charray_dup
|
||||
+#define ldap_charray_free moz_ldap_charray_free
|
||||
+#define ldap_charray_inlist moz_ldap_charray_inlist
|
||||
+#define ldap_charray_merge moz_ldap_charray_merge
|
||||
+#define ldap_charray_position moz_ldap_charray_position
|
||||
+#define ldap_compare moz_ldap_compare
|
||||
+#define ldap_compare_ext moz_ldap_compare_ext
|
||||
+#define ldap_compare_ext_s moz_ldap_compare_ext_s
|
||||
+#define ldap_compare_s moz_ldap_compare_s
|
||||
+#define ldap_control_free moz_ldap_control_free
|
||||
+#define ldap_controls_free moz_ldap_controls_free
|
||||
+#define ldap_count_entries moz_ldap_count_entries
|
||||
+#define ldap_count_messages moz_ldap_count_messages
|
||||
+#define ldap_count_references moz_ldap_count_references
|
||||
+#define ldap_count_values moz_ldap_count_values
|
||||
+#define ldap_count_values_len moz_ldap_count_values_len
|
||||
+#define ldap_create_authzid_control moz_ldap_create_authzid_control
|
||||
+#define ldap_create_filter moz_ldap_create_filter
|
||||
+#define ldap_create_geteffectiveRights_control moz_ldap_create_geteffectiveRights_control
|
||||
+#define ldap_create_passwordpolicy_control moz_ldap_create_passwordpolicy_control
|
||||
+#define ldap_create_passwordpolicy_control_ext moz_ldap_create_passwordpolicy_control_ext
|
||||
+#define ldap_create_persistentsearch_control moz_ldap_create_persistentsearch_control
|
||||
+#define ldap_create_proxiedauth_control moz_ldap_create_proxiedauth_control
|
||||
+#define ldap_create_proxyauth_control moz_ldap_create_proxyauth_control
|
||||
+#define ldap_create_sort_control moz_ldap_create_sort_control
|
||||
+#define ldap_create_sort_keylist moz_ldap_create_sort_keylist
|
||||
+#define ldap_create_userstatus_control moz_ldap_create_userstatus_control
|
||||
+#define ldap_create_virtuallist_control moz_ldap_create_virtuallist_control
|
||||
+#define ldap_delete moz_ldap_delete
|
||||
+#define ldap_delete_ext moz_ldap_delete_ext
|
||||
+#define ldap_delete_ext_s moz_ldap_delete_ext_s
|
||||
+#define ldap_delete_result_entry moz_ldap_delete_result_entry
|
||||
+#define ldap_delete_s moz_ldap_delete_s
|
||||
+#define ldap_dn2ufn moz_ldap_dn2ufn
|
||||
+#define ldap_entry2html moz_ldap_entry2html
|
||||
+#define ldap_entry2html_search moz_ldap_entry2html_search
|
||||
+#define ldap_entry2text moz_ldap_entry2text
|
||||
+#define ldap_entry2text_search moz_ldap_entry2text_search
|
||||
+#define ldap_err2string moz_ldap_err2string
|
||||
+#define ldap_errlist moz_ldap_errlist
|
||||
+#define ldap_explode moz_ldap_explode
|
||||
+#define ldap_explode_dn moz_ldap_explode_dn
|
||||
+#define ldap_explode_dns moz_ldap_explode_dns
|
||||
+#define ldap_explode_rdn moz_ldap_explode_rdn
|
||||
+#define ldap_extended_operation moz_ldap_extended_operation
|
||||
+#define ldap_extended_operation_s moz_ldap_extended_operation_s
|
||||
+#define ldap_find_control moz_ldap_find_control
|
||||
+#define ldap_first_attribute moz_ldap_first_attribute
|
||||
+#define ldap_first_disptmpl moz_ldap_first_disptmpl
|
||||
+#define ldap_first_entry moz_ldap_first_entry
|
||||
+#define ldap_first_message moz_ldap_first_message
|
||||
+#define ldap_first_reference moz_ldap_first_reference
|
||||
+#define ldap_first_searchobj moz_ldap_first_searchobj
|
||||
+#define ldap_first_tmplcol moz_ldap_first_tmplcol
|
||||
+#define ldap_first_tmplrow moz_ldap_first_tmplrow
|
||||
+#define ldap_free_friendlymap moz_ldap_free_friendlymap
|
||||
+#define ldap_free_searchprefs moz_ldap_free_searchprefs
|
||||
+#define ldap_free_sort_keylist moz_ldap_free_sort_keylist
|
||||
+#define ldap_free_templates moz_ldap_free_templates
|
||||
+#define ldap_free_urldesc moz_ldap_free_urldesc
|
||||
+#define ldap_friendly_name moz_ldap_friendly_name
|
||||
+#define ldap_get_dn moz_ldap_get_dn
|
||||
+#define ldap_get_entry_controls moz_ldap_get_entry_controls
|
||||
+#define ldap_get_lang_values moz_ldap_get_lang_values
|
||||
+#define ldap_get_lang_values_len moz_ldap_get_lang_values_len
|
||||
+#define ldap_get_lderrno moz_ldap_get_lderrno
|
||||
+#define ldap_get_option moz_ldap_get_option
|
||||
+#define ldap_get_values moz_ldap_get_values
|
||||
+#define ldap_get_values_len moz_ldap_get_values_len
|
||||
+#define ldap_getfilter_free moz_ldap_getfilter_free
|
||||
+#define ldap_getfirstfilter moz_ldap_getfirstfilter
|
||||
+#define ldap_getnextfilter moz_ldap_getnextfilter
|
||||
+#define ldap_init moz_ldap_init
|
||||
+#define ldap_init_getfilter moz_ldap_init_getfilter
|
||||
+#define ldap_init_getfilter_buf moz_ldap_init_getfilter_buf
|
||||
+#define ldap_init_searchprefs moz_ldap_init_searchprefs
|
||||
+#define ldap_init_searchprefs_buf moz_ldap_init_searchprefs_buf
|
||||
+#define ldap_init_templates moz_ldap_init_templates
|
||||
+#define ldap_init_templates_buf moz_ldap_init_templates_buf
|
||||
+#define ldap_is_dns_dn moz_ldap_is_dns_dn
|
||||
+#define ldap_is_ldap_url moz_ldap_is_ldap_url
|
||||
+#define ldap_keysort_entries moz_ldap_keysort_entries
|
||||
+#define ldap_ld_free moz_ldap_ld_free
|
||||
+#define ldap_memcache_abandon moz_ldap_memcache_abandon
|
||||
+#define ldap_memcache_append moz_ldap_memcache_append
|
||||
+#define ldap_memcache_createkey moz_ldap_memcache_createkey
|
||||
+#define ldap_memcache_destroy moz_ldap_memcache_destroy
|
||||
+#define ldap_memcache_flush moz_ldap_memcache_flush
|
||||
+#define ldap_memcache_flush_results moz_ldap_memcache_flush_results
|
||||
+#define ldap_memcache_get moz_ldap_memcache_get
|
||||
+#define ldap_memcache_init moz_ldap_memcache_init
|
||||
+#define ldap_memcache_new moz_ldap_memcache_new
|
||||
+#define ldap_memcache_result moz_ldap_memcache_result
|
||||
+#define ldap_memcache_set moz_ldap_memcache_set
|
||||
+#define ldap_memcache_update moz_ldap_memcache_update
|
||||
+#define ldap_memfree moz_ldap_memfree
|
||||
+#define ldap_modify moz_ldap_modify
|
||||
+#define ldap_modify_ext moz_ldap_modify_ext
|
||||
+#define ldap_modify_ext_s moz_ldap_modify_ext_s
|
||||
+#define ldap_modify_s moz_ldap_modify_s
|
||||
+#define ldap_modrdn moz_ldap_modrdn
|
||||
+#define ldap_modrdn2 moz_ldap_modrdn2
|
||||
+#define ldap_modrdn2_s moz_ldap_modrdn2_s
|
||||
+#define ldap_modrdn_s moz_ldap_modrdn_s
|
||||
+#define ldap_mods_free moz_ldap_mods_free
|
||||
+#define ldap_msgdelete moz_ldap_msgdelete
|
||||
+#define ldap_msgfree moz_ldap_msgfree
|
||||
+#define ldap_msgid moz_ldap_msgid
|
||||
+#define ldap_msgtype moz_ldap_msgtype
|
||||
+#define ldap_multisort_entries moz_ldap_multisort_entries
|
||||
+#define ldap_name2template moz_ldap_name2template
|
||||
+#define ldap_next_attribute moz_ldap_next_attribute
|
||||
+#define ldap_next_disptmpl moz_ldap_next_disptmpl
|
||||
+#define ldap_next_entry moz_ldap_next_entry
|
||||
+#define ldap_next_message moz_ldap_next_message
|
||||
+#define ldap_next_reference moz_ldap_next_reference
|
||||
+#define ldap_next_searchobj moz_ldap_next_searchobj
|
||||
+#define ldap_next_tmplcol moz_ldap_next_tmplcol
|
||||
+#define ldap_next_tmplrow moz_ldap_next_tmplrow
|
||||
+#define ldap_oc2template moz_ldap_oc2template
|
||||
+#define ldap_open moz_ldap_open
|
||||
+#define ldap_parse_authzid_control moz_ldap_parse_authzid_control
|
||||
+#define ldap_parse_entrychange_control moz_ldap_parse_entrychange_control
|
||||
+#define ldap_parse_extended_result moz_ldap_parse_extended_result
|
||||
+#define ldap_parse_passwd moz_ldap_parse_passwd
|
||||
+#define ldap_parse_passwordpolicy_control moz_ldap_parse_passwordpolicy_control
|
||||
+#define ldap_parse_passwordpolicy_control_ext moz_ldap_parse_passwordpolicy_control_ext
|
||||
+#define ldap_parse_reference moz_ldap_parse_reference
|
||||
+#define ldap_parse_result moz_ldap_parse_result
|
||||
+#define ldap_parse_sasl_bind_result moz_ldap_parse_sasl_bind_result
|
||||
+#define ldap_parse_sort_control moz_ldap_parse_sort_control
|
||||
+#define ldap_parse_userstatus_control moz_ldap_parse_userstatus_control
|
||||
+#define ldap_parse_virtuallist_control moz_ldap_parse_virtuallist_control
|
||||
+#define ldap_parse_whoami moz_ldap_parse_whoami
|
||||
+#define ldap_passwd moz_ldap_passwd
|
||||
+#define ldap_passwd_s moz_ldap_passwd_s
|
||||
+#define ldap_passwordpolicy_err2txt moz_ldap_passwordpolicy_err2txt
|
||||
+#define ldap_perror moz_ldap_perror
|
||||
+#define ldap_rename moz_ldap_rename
|
||||
+#define ldap_rename_s moz_ldap_rename_s
|
||||
+#define ldap_result moz_ldap_result
|
||||
+#define ldap_result2error moz_ldap_result2error
|
||||
+#define ldap_sasl_bind moz_ldap_sasl_bind
|
||||
+#define ldap_sasl_bind_s moz_ldap_sasl_bind_s
|
||||
+#define ldap_sasl_interactive_bind_ext_s moz_ldap_sasl_interactive_bind_ext_s
|
||||
+#define ldap_sasl_interactive_bind_s moz_ldap_sasl_interactive_bind_s
|
||||
+#define ldap_search moz_ldap_search
|
||||
+#define ldap_search_ext moz_ldap_search_ext
|
||||
+#define ldap_search_ext_s moz_ldap_search_ext_s
|
||||
+#define ldap_search_s moz_ldap_search_s
|
||||
+#define ldap_search_st moz_ldap_search_st
|
||||
+#define ldap_set_filter_additions moz_ldap_set_filter_additions
|
||||
+#define ldap_set_lderrno moz_ldap_set_lderrno
|
||||
+#define ldap_set_option moz_ldap_set_option
|
||||
+#define ldap_set_rebind_proc moz_ldap_set_rebind_proc
|
||||
+#define ldap_setfilteraffixes moz_ldap_setfilteraffixes
|
||||
+#define ldap_simple_bind moz_ldap_simple_bind
|
||||
+#define ldap_simple_bind_s moz_ldap_simple_bind_s
|
||||
+#define ldap_sort_entries moz_ldap_sort_entries
|
||||
+#define ldap_sort_strcasecmp moz_ldap_sort_strcasecmp
|
||||
+#define ldap_sort_values moz_ldap_sort_values
|
||||
+#define ldap_start_tls_s moz_ldap_start_tls_s
|
||||
+#define ldap_str2charray moz_ldap_str2charray
|
||||
+#define ldap_tmplattrs moz_ldap_tmplattrs
|
||||
+#define ldap_tmplerr2string moz_ldap_tmplerr2string
|
||||
+#define ldap_tmplerrlist moz_ldap_tmplerrlist
|
||||
+#define ldap_ufn_search_c moz_ldap_ufn_search_c
|
||||
+#define ldap_ufn_search_ct moz_ldap_ufn_search_ct
|
||||
+#define ldap_ufn_search_ctx moz_ldap_ufn_search_ctx
|
||||
+#define ldap_ufn_search_s moz_ldap_ufn_search_s
|
||||
+#define ldap_ufn_setfilter moz_ldap_ufn_setfilter
|
||||
+#define ldap_ufn_setprefix moz_ldap_ufn_setprefix
|
||||
+#define ldap_ufn_timeout moz_ldap_ufn_timeout
|
||||
+#define ldap_unbind moz_ldap_unbind
|
||||
+#define ldap_unbind_ext moz_ldap_unbind_ext
|
||||
+#define ldap_unbind_s moz_ldap_unbind_s
|
||||
+#define ldap_url_parse moz_ldap_url_parse
|
||||
+#define ldap_url_parse_no_defaults moz_ldap_url_parse_no_defaults
|
||||
+#define ldap_url_search moz_ldap_url_search
|
||||
+#define ldap_url_search_s moz_ldap_url_search_s
|
||||
+#define ldap_url_search_st moz_ldap_url_search_st
|
||||
+#define ldap_utf8characters moz_ldap_utf8characters
|
||||
+#define ldap_utf8copy moz_ldap_utf8copy
|
||||
+#define ldap_utf8getcc moz_ldap_utf8getcc
|
||||
+#define ldap_utf8isalnum moz_ldap_utf8isalnum
|
||||
+#define ldap_utf8isalpha moz_ldap_utf8isalpha
|
||||
+#define ldap_utf8isdigit moz_ldap_utf8isdigit
|
||||
+#define ldap_utf8isspace moz_ldap_utf8isspace
|
||||
+#define ldap_utf8isxdigit moz_ldap_utf8isxdigit
|
||||
+#define ldap_utf8len moz_ldap_utf8len
|
||||
+#define ldap_utf8next moz_ldap_utf8next
|
||||
+#define ldap_utf8prev moz_ldap_utf8prev
|
||||
+#define ldap_utf8strtok_r moz_ldap_utf8strtok_r
|
||||
+#define ldap_vals2html moz_ldap_vals2html
|
||||
+#define ldap_vals2text moz_ldap_vals2text
|
||||
+#define ldap_value_free moz_ldap_value_free
|
||||
+#define ldap_value_free_len moz_ldap_value_free_len
|
||||
+#define ldap_version moz_ldap_version
|
||||
+#define ldap_whoami moz_ldap_whoami
|
||||
+#define ldap_whoami_s moz_ldap_whoami_s
|
||||
+#define ldap_x_calloc moz_ldap_x_calloc
|
||||
+#define ldap_x_free moz_ldap_x_free
|
||||
+#define ldap_x_hostlist_first moz_ldap_x_hostlist_first
|
||||
+#define ldap_x_hostlist_next moz_ldap_x_hostlist_next
|
||||
+#define ldap_x_hostlist_statusfree moz_ldap_x_hostlist_statusfree
|
||||
+#define ldap_x_malloc moz_ldap_x_malloc
|
||||
+#define ldap_x_realloc moz_ldap_x_realloc
|
||||
+
|
||||
/* Standard LDAP API functions and declarations */
|
||||
#include "ldap-standard.h"
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
--- mozilla/js/src/moz.build.orig 2015-12-16 12:32:04.574425000 +0100
|
||||
+++ mozilla/js/src/moz.build 2015-12-16 12:32:09.032032000 +0100
|
||||
@@ -671,10 +671,6 @@ CFLAGS += CONFIG['MOZ_ICU_CFLAGS']
|
||||
CXXFLAGS += CONFIG['MOZ_ICU_CFLAGS']
|
||||
LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
|
||||
|
||||
-NO_EXPAND_LIBS = True
|
||||
-
|
||||
-DIST_INSTALL = True
|
||||
-
|
||||
# Prepare self-hosted JS code for embedding
|
||||
GENERATED_FILES += ['selfhosted.out.h']
|
||||
selfhosted = GENERATED_FILES['selfhosted.out.h']
|
|
@ -1,183 +0,0 @@
|
|||
commit 8024d93
|
||||
Author: Henrik Gulbrandsen <henrik@gulbra.net>
|
||||
Date: Fri Jan 4 13:49:22 2013 +0100
|
||||
|
||||
Bug 826985 - Support more video formats for WebRTC via libv4l2 on Linux.
|
||||
---
|
||||
config/system-headers | 1 +
|
||||
old-configure.in | 7 +++++++
|
||||
media/webrtc/signaling/test/Makefile.in | 1 +
|
||||
.../modules/video_capture/linux/device_info_linux.cc | 17 +++++++++++++++++
|
||||
.../modules/video_capture/linux/video_capture_linux.cc | 16 +++++++++++++++-
|
||||
.../webrtc/modules/video_capture/video_capture.gypi | 11 +++++++++++
|
||||
toolkit/library/Makefile.in | 1 +
|
||||
6 files changed, 52 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git config/system-headers config/system-headers
|
||||
index 55e4cd1..76567b3 100644
|
||||
--- mozilla/config/system-headers
|
||||
+++ mozilla/config/system-headers
|
||||
@@ -624,6 +624,7 @@ libgnome/libgnome.h
|
||||
libgnomeui/gnome-icon-lookup.h
|
||||
libgnomeui/gnome-icon-theme.h
|
||||
libgnomeui/gnome-ui-init.h
|
||||
+libv4l2.h
|
||||
limits.h
|
||||
link.h
|
||||
#ifdef ANDROID
|
||||
diff --git old-configure.in configure.in
|
||||
index 55e4cd1..76567b3 100644
|
||||
--- mozilla/old-configure.in
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -5309,6 +5309,9 @@ if test -n "$MOZ_WEBRTC"; then
|
||||
MOZ_VP8_ENCODER=1
|
||||
MOZ_VP8_ERROR_CONCEALMENT=1
|
||||
|
||||
+ dnl with libv4l2 we can support more cameras
|
||||
+ PKG_CHECK_MODULES(MOZ_LIBV4L2, libv4l2)
|
||||
+
|
||||
dnl enable once Signaling lands
|
||||
MOZ_WEBRTC_SIGNALING=1
|
||||
AC_DEFINE(MOZ_WEBRTC_SIGNALING)
|
||||
diff --git build/gyp.mozbuild build/gyp.mozbuild
|
||||
index b483cd1..f1dd1f0 100644
|
||||
--- mozilla/build/gyp.mozbuild
|
||||
+++ mozilla/build/gyp.mozbuild
|
||||
@@ -11,6 +11,7 @@ gyp_vars = {
|
||||
'have_ethtool_cmd_speed_hi': 1 if CONFIG['MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI'] else 0,
|
||||
'include_alsa_audio': 1 if CONFIG['MOZ_ALSA'] else 0,
|
||||
'include_pulse_audio': 1 if CONFIG['MOZ_PULSEAUDIO'] else 0,
|
||||
+ 'use_libv4l2': 1 if CONFIG['MOZ_LIBV4L2_LIBS'] else 0,
|
||||
# basic stuff for everything
|
||||
'include_internal_video_render': 0,
|
||||
'clang_use_chrome_plugins': 0,
|
||||
diff --git media/webrtc/signaling/test/common.build media/webrtc/signaling/test/common.build
|
||||
index b483cd1..f1dd1f0 100644
|
||||
--- mozilla/media/webrtc/signaling/test/common.build
|
||||
+++ mozilla/media/webrtc/signaling/test/common.build
|
||||
@@ -99,6 +99,7 @@ if CONFIG['JS_SHARED_LIBRARY']:
|
||||
|
||||
USE_LIBS += ['mozglue']
|
||||
|
||||
+OS_LIBS += CONFIG['MOZ_LIBV4L2_LIBS']
|
||||
OS_LIBS += CONFIG['MOZ_WEBRTC_X11_LIBS']
|
||||
OS_LIBS += CONFIG['REALTIME_LIBS']
|
||||
|
||||
diff --git media/webrtc/trunk/webrtc/modules/video_capture/linux/device_info_linux.cc media/webrtc/trunk/webrtc/modules/video_capture/linux/device_info_linux.cc
|
||||
index 239a292..bab496c 100644
|
||||
--- mozilla/media/webrtc/trunk/webrtc/modules/video_capture/linux/device_info_linux.cc
|
||||
+++ mozilla/media/webrtc/trunk/webrtc/modules/video_capture/linux/device_info_linux.cc
|
||||
@@ -25,6 +25,9 @@
|
||||
#else
|
||||
#include <linux/videodev2.h>
|
||||
#endif
|
||||
+#ifdef HAVE_LIBV4L2
|
||||
+#include <libv4l2.h>
|
||||
+#endif
|
||||
|
||||
#include "webrtc/system_wrappers/interface/ref_count.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
@@ -34,6 +37,15 @@
|
||||
#define BUF_LEN ( 1024 * ( EVENT_SIZE + 16 ) )
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_LIBV4L2
|
||||
+#define open v4l2_open
|
||||
+#define close v4l2_close
|
||||
+#define dup v4l2_dup
|
||||
+#define ioctl v4l2_ioctl
|
||||
+#define mmap v4l2_mmap
|
||||
+#define munmap v4l2_munmap
|
||||
+#endif
|
||||
+
|
||||
namespace webrtc
|
||||
{
|
||||
namespace videocapturemodule
|
||||
@@ -274,6 +286,11 @@ int32_t DeviceInfoLinux::GetDeviceName(
|
||||
memset(deviceNameUTF8, 0, deviceNameLength);
|
||||
memcpy(cameraName, cap.card, sizeof(cap.card));
|
||||
|
||||
+ if (cameraName[0] == '\0')
|
||||
+ {
|
||||
+ sprintf(cameraName, "Camera at /dev/video%d", deviceNumber);
|
||||
+ }
|
||||
+
|
||||
if (deviceNameLength >= strlen(cameraName))
|
||||
{
|
||||
memcpy(deviceNameUTF8, cameraName, strlen(cameraName));
|
||||
diff --git media/webrtc/trunk/webrtc/modules/video_capture/linux/video_capture_linux.cc media/webrtc/trunk/webrtc/modules/video_capture/linux/video_capture_linux.cc
|
||||
index 12df1b3..e9863ba 100644
|
||||
--- mozilla/media/webrtc/trunk/webrtc/modules/video_capture/linux/video_capture_linux.cc
|
||||
+++ mozilla/media/webrtc/trunk/webrtc/modules/video_capture/linux/video_capture_linux.cc
|
||||
@@ -25,6 +25,9 @@
|
||||
#else
|
||||
#include <linux/videodev2.h>
|
||||
#endif
|
||||
+#ifdef HAVE_LIBV4L2
|
||||
+#include <libv4l2.h>
|
||||
+#endif
|
||||
|
||||
#include <new>
|
||||
|
||||
@@ -26,6 +31,15 @@
|
||||
#include "critical_section_wrapper.h"
|
||||
#include "video_capture_linux.h"
|
||||
|
||||
+#ifdef HAVE_LIBV4L2
|
||||
+#define open v4l2_open
|
||||
+#define close v4l2_close
|
||||
+#define dup v4l2_dup
|
||||
+#define ioctl v4l2_ioctl
|
||||
+#define mmap v4l2_mmap
|
||||
+#define munmap v4l2_munmap
|
||||
+#endif
|
||||
+
|
||||
namespace webrtc
|
||||
{
|
||||
namespace videocapturemodule
|
||||
diff --git media/webrtc/trunk/webrtc/modules/video_capture/video_capture.gypi media/webrtc/trunk/webrtc/modules/video_capture/video_capture.gypi
|
||||
index d46b5aa..e452223 100644
|
||||
--- mozilla/media/webrtc/trunk/webrtc/modules/video_capture/video_capture.gypi
|
||||
+++ mozilla/media/webrtc/trunk/webrtc/modules/video_capture/video_capture.gypi
|
||||
@@ -7,6 +7,9 @@
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
{
|
||||
+ 'variables': {
|
||||
+ 'use_libv4l2%': 0,
|
||||
+ },
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_capture_module',
|
||||
@@ -75,6 +78,19 @@
|
||||
'linux/video_capture_linux.cc',
|
||||
'linux/video_capture_linux.h',
|
||||
],
|
||||
+ 'conditions': [
|
||||
+ ['use_libv4l2==1', {
|
||||
+ 'defines': [
|
||||
+ 'HAVE_LIBV4L2',
|
||||
+ ],
|
||||
+ 'cflags_mozilla': [
|
||||
+ '$(MOZ_LIBV4L2_CFLAGS)',
|
||||
+ ],
|
||||
+ 'libraries': [
|
||||
+ '-lv4l2',
|
||||
+ ],
|
||||
+ }],
|
||||
+ ],
|
||||
}], # linux
|
||||
['OS=="mac"', {
|
||||
'sources': [
|
||||
diff --git toolkit/library/moz.build toolkit/library/moz.build
|
||||
index 9c16ffa..1db3794 100644
|
||||
--- mozilla/toolkit/library/moz.build
|
||||
+++ mozilla/toolkit/library/moz.build
|
||||
@@ -163,6 +163,7 @@ if CONFIG['OS_ARCH'] == 'Linux' and CONF
|
||||
]
|
||||
|
||||
OS_LIBS += CONFIG['MOZ_CAIRO_OSLIBS']
|
||||
+OS_LIBS += CONFIG['MOZ_LIBV4L2_LIBS']
|
||||
OS_LIBS += CONFIG['MOZ_WEBRTC_X11_LIBS']
|
||||
OS_LIBS += CONFIG['MOZ_APP_EXTRA_LIBS']
|
||||
|
|
@ -1,271 +0,0 @@
|
|||
# Allow building against system-wide graphite2/harfbuzz.
|
||||
|
||||
diff --git config/Makefile.in config/Makefile.in
|
||||
index e2e11dc0e27e..a6206bb0ff30 100644
|
||||
--- mozilla/config/Makefile.in
|
||||
+++ mozilla/config/Makefile.in
|
||||
@@ -41,6 +41,8 @@ export:: $(export-preqs)
|
||||
$(PYTHON) -m mozbuild.action.preprocessor $(DEFINES) $(ACDEFINES) \
|
||||
-DMOZ_TREE_CAIRO=$(MOZ_TREE_CAIRO) \
|
||||
-DMOZ_TREE_PIXMAN=$(MOZ_TREE_PIXMAN) \
|
||||
+ -DMOZ_SYSTEM_GRAPHITE2=$(MOZ_SYSTEM_GRAPHITE2) \
|
||||
+ -DMOZ_SYSTEM_HARFBUZZ=$(MOZ_SYSTEM_HARFBUZZ) \
|
||||
-DMOZ_SYSTEM_HUNSPELL=$(MOZ_SYSTEM_HUNSPELL) \
|
||||
-DMOZ_SYSTEM_BZ2=$(MOZ_SYSTEM_BZ2) \
|
||||
-DMOZ_SYSTEM_ZLIB=$(MOZ_SYSTEM_ZLIB) \
|
||||
diff --git config/system-headers config/system-headers
|
||||
index a0c53c651a3e..5ee7f71f9634 100644
|
||||
--- mozilla/config/system-headers
|
||||
+++ mozilla/config/system-headers
|
||||
@@ -1269,6 +1269,15 @@ libsn/sn-launcher.h
|
||||
libsn/sn-monitor.h
|
||||
libsn/sn-util.h
|
||||
#endif
|
||||
+#if MOZ_SYSTEM_GRAPHITE2==1
|
||||
+graphite2/Font.h
|
||||
+graphite2/Segment.h
|
||||
+#endif
|
||||
+#if MOZ_SYSTEM_HARFBUZZ==1
|
||||
+harfbuzz/hb-glib.h
|
||||
+harfbuzz/hb-ot.h
|
||||
+harfbuzz/hb.h
|
||||
+#endif
|
||||
#if MOZ_SYSTEM_HUNSPELL==1
|
||||
hunspell.hxx
|
||||
#endif
|
||||
diff --git dom/base/moz.build dom/base/moz.build
|
||||
index 8e19020315ae..2fcdbb6f7b42 100644
|
||||
--- mozilla/dom/base/moz.build
|
||||
+++ mozilla/dom/base/moz.build
|
||||
@@ -464,6 +464,9 @@ if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
|
||||
if CONFIG['MOZ_X11']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
+
|
||||
GENERATED_FILES += [
|
||||
'PropertyUseCounterMap.inc',
|
||||
'UseCounterList.h',
|
||||
diff --git gfx/graphite2/moz-gr-update.sh gfx/graphite2/moz-gr-update.sh
|
||||
index faaab1b17971..04eff5f09882 100644
|
||||
--- mozilla/gfx/graphite2/moz-gr-update.sh
|
||||
+++ mozilla/gfx/graphite2/moz-gr-update.sh
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script used to update the Graphite2 library in the mozilla source tree
|
||||
+# and bump version for --with-system-graphite2
|
||||
|
||||
# This script lives in gfx/graphite2, along with the library source,
|
||||
# but must be run from the top level of the mozilla-central tree.
|
||||
@@ -37,12 +38,16 @@ echo "See" $0 "for update procedure." >> gfx/graphite2/README.mozilla
|
||||
#find gfx/graphite2/ -name "*.cpp" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \;
|
||||
#find gfx/graphite2/ -name "*.h" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \;
|
||||
|
||||
+# chase version for --with-system-graphite2
|
||||
+perl -p -i -e "s/[0-9]+\,[0-9]+\,[0-9]+/$RELEASE/ and tr/./,/ \
|
||||
+ if /GR2_VERSION_REQUIRE/" old-configure.in
|
||||
+
|
||||
# summarize what's been touched
|
||||
echo Updated to $RELEASE.
|
||||
echo Here is what changed in the gfx/graphite2 directory:
|
||||
echo
|
||||
|
||||
-hg stat gfx/graphite2
|
||||
+hg stat old-configure.in gfx/graphite2
|
||||
|
||||
echo
|
||||
echo If gfx/graphite2/src/files.mk has changed, please make corresponding
|
||||
diff --git gfx/harfbuzz/README-mozilla gfx/harfbuzz/README-mozilla
|
||||
index 22c76a7df020..a01490bd49ee 100644
|
||||
--- mozilla/gfx/harfbuzz/README-mozilla
|
||||
+++ mozilla/gfx/harfbuzz/README-mozilla
|
||||
@@ -19,3 +19,8 @@ the mozilla tree.
|
||||
|
||||
If the collection of source files changes, manual updates to moz.build may be
|
||||
needed, as we don't use the upstream makefiles.
|
||||
+
|
||||
+The in-tree copy may be omitted during build by --with-system-harfbuzz.
|
||||
+Make sure to keep pkg-config version check within toolkit/moz.configure in sync
|
||||
+with checkout version or increment latest tag by one if it's not based
|
||||
+on upstream release.
|
||||
diff --git gfx/moz.build gfx/moz.build
|
||||
index 771f652e837a..3b358d84e384 100644
|
||||
--- mozilla/gfx/moz.build
|
||||
+++ mozilla/gfx/moz.build
|
||||
@@ -10,6 +10,12 @@ with Files('**'):
|
||||
if CONFIG['MOZ_TREE_CAIRO']:
|
||||
DIRS += ['cairo']
|
||||
|
||||
+if not CONFIG['MOZ_SYSTEM_GRAPHITE2']:
|
||||
+ DIRS += ['graphite2/src' ]
|
||||
+
|
||||
+if not CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ DIRS += ['harfbuzz/src']
|
||||
+
|
||||
DIRS += [
|
||||
'2d',
|
||||
'ycbcr',
|
||||
@@ -18,8 +24,6 @@ DIRS += [
|
||||
'qcms',
|
||||
'gl',
|
||||
'layers',
|
||||
- 'graphite2/src',
|
||||
- 'harfbuzz/src',
|
||||
'ots/src',
|
||||
'thebes',
|
||||
'ipc',
|
||||
diff --git gfx/skia/generate_mozbuild.py gfx/skia/generate_mozbuild.py
|
||||
index e06ae3457a47..93faa61594a3 100755
|
||||
--- mozilla/gfx/skia/generate_mozbuild.py
|
||||
+++ mozilla/gfx/skia/generate_mozbuild.py
|
||||
@@ -143,6 +143,9 @@ if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
|
||||
'-Wno-unused-private-field',
|
||||
]
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
+
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3', 'android'):
|
||||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||
CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
|
||||
diff --git gfx/skia/moz.build gfx/skia/moz.build
|
||||
index 2118677ca3a8..e4978b413784 100644
|
||||
--- mozilla/gfx/skia/moz.build
|
||||
+++ mozilla/gfx/skia/moz.build
|
||||
@@ -753,6 +753,9 @@ if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
|
||||
'-Wno-unused-private-field',
|
||||
]
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
+
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3', 'android'):
|
||||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||
CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
|
||||
diff --git gfx/thebes/moz.build gfx/thebes/moz.build
|
||||
index dee9b7bfa2cb..bd801f3a468e 100644
|
||||
--- mozilla/gfx/thebes/moz.build
|
||||
+++ mozilla/gfx/thebes/moz.build
|
||||
@@ -273,7 +273,13 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
|
||||
|
||||
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
||||
|
||||
-DEFINES['GRAPHITE2_STATIC'] = True
|
||||
+if CONFIG['MOZ_SYSTEM_GRAPHITE2']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_GRAPHITE2_CFLAGS']
|
||||
+else:
|
||||
+ DEFINES['GRAPHITE2_STATIC'] = True
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
|
||||
if CONFIG['CLANG_CXX']:
|
||||
# Suppress warnings from Skia header files.
|
||||
diff --git intl/unicharutil/util/moz.build intl/unicharutil/util/moz.build
|
||||
index cb1233c56d7e..06fb1f9f174b 100644
|
||||
--- mozilla/intl/unicharutil/util/moz.build
|
||||
+++ mozilla/intl/unicharutil/util/moz.build
|
||||
@@ -40,4 +40,7 @@ if CONFIG['_MSC_VER']:
|
||||
if CONFIG['ENABLE_INTL_API']:
|
||||
USE_LIBS += ['icu']
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
+
|
||||
DIST_INSTALL = True
|
||||
diff --git netwerk/dns/moz.build netwerk/dns/moz.build
|
||||
index 79c26e3e7001..c4d93bc5f7dc 100644
|
||||
--- mozilla/netwerk/dns/moz.build
|
||||
+++ mozilla/netwerk/dns/moz.build
|
||||
@@ -69,6 +69,9 @@ LOCAL_INCLUDES += [
|
||||
'/netwerk/base',
|
||||
]
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS']
|
||||
+
|
||||
if CONFIG['ENABLE_INTL_API']:
|
||||
DEFINES['IDNA2008'] = True
|
||||
USE_LIBS += ['icu']
|
||||
diff --git old-configure.in old-configure.in
|
||||
index 95a58b634593..b614eef85c89 100644
|
||||
--- mozilla/old-configure.in
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -4888,6 +4888,27 @@ dnl ========================================================
|
||||
AC_SUBST(MOZ_LINUX_32_SSE2_STARTUP_ERROR)
|
||||
|
||||
dnl ========================================================
|
||||
+dnl Check for graphite2
|
||||
+dnl ========================================================
|
||||
+if test -n "$MOZ_SYSTEM_GRAPHITE2"; then
|
||||
+ dnl graphite2.pc has bogus version, check manually
|
||||
+ _SAVE_CFLAGS=$CFLAGS
|
||||
+ CFLAGS="$CFLAGS $MOZ_GRAPHITE2_CFLAGS"
|
||||
+ AC_TRY_COMPILE([ #include <graphite2/Font.h>
|
||||
+ #define GR2_VERSION_REQUIRE(major,minor,bugfix) \
|
||||
+ ( GR2_VERSION_MAJOR * 10000 + GR2_VERSION_MINOR \
|
||||
+ * 100 + GR2_VERSION_BUGFIX >= \
|
||||
+ (major) * 10000 + (minor) * 100 + (bugfix) )
|
||||
+ ], [
|
||||
+ #if !GR2_VERSION_REQUIRE(1,3,8)
|
||||
+ #error "Insufficient graphite2 version."
|
||||
+ #endif
|
||||
+ ], [],
|
||||
+ [AC_MSG_ERROR([--with-system-graphite2 requested but no working libgraphite2 found])])
|
||||
+ CFLAGS=$_SAVE_CFLAGS
|
||||
+fi
|
||||
+
|
||||
+dnl ========================================================
|
||||
dnl Check for pixman and cairo
|
||||
dnl ========================================================
|
||||
|
||||
diff --git toolkit/library/moz.build toolkit/library/moz.build
|
||||
index 24f940e1ed7e..079a575adec3 100644
|
||||
--- mozilla/toolkit/library/moz.build
|
||||
+++ mozilla/toolkit/library/moz.build
|
||||
@@ -228,6 +228,12 @@ if CONFIG['MOZ_SYSTEM_JPEG']:
|
||||
if CONFIG['MOZ_SYSTEM_PNG']:
|
||||
OS_LIBS += CONFIG['MOZ_PNG_LIBS']
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_GRAPHITE2']:
|
||||
+ OS_LIBS += CONFIG['MOZ_GRAPHITE2_LIBS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
+ OS_LIBS += CONFIG['MOZ_HARFBUZZ_LIBS']
|
||||
+
|
||||
if CONFIG['MOZ_SYSTEM_HUNSPELL']:
|
||||
OS_LIBS += CONFIG['MOZ_HUNSPELL_LIBS']
|
||||
|
||||
diff --git toolkit/moz.configure toolkit/moz.configure
|
||||
index 9297e4d6f501..d8e273887e4b 100644
|
||||
--- mozilla/toolkit/moz.configure
|
||||
+++ mozilla/toolkit/moz.configure
|
||||
@@ -343,6 +343,26 @@ add_old_configure_assignment('FT2_LIBS',
|
||||
add_old_configure_assignment('FT2_CFLAGS',
|
||||
delayed_getattr(ft2_info, 'cflags'))
|
||||
|
||||
+# Graphite2
|
||||
+# ==============================================================
|
||||
+option('--with-system-graphite2',
|
||||
+ help="Use system graphite2 (located with pkgconfig)")
|
||||
+
|
||||
+system_graphite2 = pkg_check_modules('MOZ_GRAPHITE2', 'graphite2',
|
||||
+ when='--with-system-graphite2')
|
||||
+
|
||||
+set_config('MOZ_SYSTEM_GRAPHITE2', depends_if(system_graphite2)(lambda _: True))
|
||||
+
|
||||
+# HarfBuzz
|
||||
+# ==============================================================
|
||||
+option('--with-system-harfbuzz',
|
||||
+ help="Use system harfbuzz (located with pkgconfig)")
|
||||
+
|
||||
+system_harfbuzz = pkg_check_modules('MOZ_HARFBUZZ', 'harfbuzz >= 1.4.1',
|
||||
+ when='--with-system-harfbuzz')
|
||||
+
|
||||
+set_config('MOZ_SYSTEM_HARFBUZZ', depends_if(system_harfbuzz)(lambda _: True))
|
||||
+
|
||||
# Apple platform decoder support
|
||||
# ==============================================================
|
||||
@depends(toolkit)
|
|
@ -1,61 +0,0 @@
|
|||
diff --git dom/system/OSFileConstants.cpp dom/system/OSFileConstants.cpp
|
||||
index 88bba9baa401..99f240952dfe 100644
|
||||
--- mozilla/dom/system/OSFileConstants.cpp
|
||||
+++ mozilla/dom/system/OSFileConstants.cpp
|
||||
@@ -16,14 +16,17 @@
|
||||
#include "dirent.h"
|
||||
#include "poll.h"
|
||||
#include "sys/stat.h"
|
||||
-#if defined(ANDROID)
|
||||
+#if defined(XP_LINUX)
|
||||
#include <sys/vfs.h>
|
||||
#define statvfs statfs
|
||||
+#define f_frsize f_bsize
|
||||
#else
|
||||
#include "sys/statvfs.h"
|
||||
+#endif // defined(XP_LINUX)
|
||||
+#if !defined(ANDROID)
|
||||
#include "sys/wait.h"
|
||||
#include <spawn.h>
|
||||
-#endif // defined(ANDROID)
|
||||
+#endif // !defined(ANDROID)
|
||||
#endif // defined(XP_UNIX)
|
||||
|
||||
#if defined(XP_LINUX)
|
||||
@@ -699,7 +702,7 @@ static const dom::ConstantSpec gLibcProperties[] =
|
||||
|
||||
{ "OSFILE_SIZEOF_STATVFS", JS::Int32Value(sizeof (struct statvfs)) },
|
||||
|
||||
- { "OSFILE_OFFSETOF_STATVFS_F_BSIZE", JS::Int32Value(offsetof (struct statvfs, f_bsize)) },
|
||||
+ { "OSFILE_OFFSETOF_STATVFS_F_FRSIZE", JS::Int32Value(offsetof (struct statvfs, f_frsize)) },
|
||||
{ "OSFILE_OFFSETOF_STATVFS_F_BAVAIL", JS::Int32Value(offsetof (struct statvfs, f_bavail)) },
|
||||
|
||||
#endif // defined(XP_UNIX)
|
||||
diff --git toolkit/components/osfile/modules/osfile_unix_back.jsm toolkit/components/osfile/modules/osfile_unix_back.jsm
|
||||
index a028dda7d5ec..f5c632e3d7e5 100644
|
||||
--- mozilla/toolkit/components/osfile/modules/osfile_unix_back.jsm
|
||||
+++ mozilla/toolkit/components/osfile/modules/osfile_unix_back.jsm
|
||||
@@ -228,8 +228,8 @@
|
||||
let statvfs = new SharedAll.HollowStructure("statvfs",
|
||||
Const.OSFILE_SIZEOF_STATVFS);
|
||||
|
||||
- statvfs.add_field_at(Const.OSFILE_OFFSETOF_STATVFS_F_BSIZE,
|
||||
- "f_bsize", Type.unsigned_long.implementation);
|
||||
+ statvfs.add_field_at(Const.OSFILE_OFFSETOF_STATVFS_F_FRSIZE,
|
||||
+ "f_frsize", Type.unsigned_long.implementation);
|
||||
statvfs.add_field_at(Const.OSFILE_OFFSETOF_STATVFS_F_BAVAIL,
|
||||
"f_bavail", Type.fsblkcnt_t.implementation);
|
||||
|
||||
diff --git toolkit/components/osfile/modules/osfile_unix_front.jsm toolkit/components/osfile/modules/osfile_unix_front.jsm
|
||||
index bd60d4d8419c..a8cd6b546b0e 100644
|
||||
--- mozilla/toolkit/components/osfile/modules/osfile_unix_front.jsm
|
||||
+++ mozilla/toolkit/components/osfile/modules/osfile_unix_front.jsm
|
||||
@@ -399,7 +399,7 @@
|
||||
throw_on_negative("statvfs", (UnixFile.statvfs || UnixFile.statfs)(sourcePath, fileSystemInfoPtr));
|
||||
|
||||
let bytes = new Type.uint64_t.implementation(
|
||||
- fileSystemInfo.f_bsize * fileSystemInfo.f_bavail);
|
||||
+ fileSystemInfo.f_frsize * fileSystemInfo.f_bavail);
|
||||
|
||||
return bytes.value;
|
||||
};
|
|
@ -1,17 +0,0 @@
|
|||
--- mozilla/extensions/spellcheck/hunspell/glue/mozHunspell.cpp~
|
||||
+++ mozilla/extensions/spellcheck/hunspell/glue/mozHunspell.cpp
|
||||
@@ -392,6 +392,14 @@ mozHunspell::LoadDictionaryList(bool aNo
|
||||
}
|
||||
}
|
||||
|
||||
+ // load system hunspell dictionaries
|
||||
+ nsCOMPtr<nsIFile> hunDir;
|
||||
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
|
||||
+ true, getter_AddRefs(hunDir));
|
||||
+ if (hunDir) {
|
||||
+ LoadDictionariesFromDir(hunDir);
|
||||
+ }
|
||||
+
|
||||
// find dictionaries from extensions requiring restart
|
||||
nsCOMPtr<nsISimpleEnumerator> dictDirs;
|
||||
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,
|
|
@ -1,17 +0,0 @@
|
|||
--- mozilla/config/baseconfig.mk~
|
||||
+++ mozilla/config/baseconfig.mk
|
||||
@@ -2,10 +2,10 @@
|
||||
# directly in python/mozbuild/mozbuild/base.py for gmake validation.
|
||||
# We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
|
||||
# whether a normal build is happening or whether the check is running.
|
||||
-includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
||||
-idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
||||
-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
||||
-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
|
||||
+includedir := $(includedir)/%%MOZILLA%%
|
||||
+idldir = $(datadir)/idl/%%MOZILLA%%
|
||||
+installdir = $(libdir)/%%MOZILLA%%
|
||||
+sdkdir = $(libdir)/%%MOZILLA%%
|
||||
ifeq (.,$(DEPTH))
|
||||
DIST = dist
|
||||
else
|
|
@ -1,21 +0,0 @@
|
|||
# Accept API keys from environment like before bug 1294585
|
||||
|
||||
--- mozilla/build/moz.configure/keyfiles.configure
|
||||
+++ mozilla/build/moz.configure/keyfiles.configure
|
||||
@@ -18,6 +18,7 @@ def keyfile(desc, help=None, callback=lambda x: x):
|
||||
@checking('for the %s key' % desc, lambda x: x and x is not no_key)
|
||||
@imports(_from='__builtin__', _import='open')
|
||||
@imports(_from='__builtin__', _import='IOError')
|
||||
+ @imports(_from='os', _import='environ')
|
||||
def keyfile(value):
|
||||
if value:
|
||||
try:
|
||||
@@ -28,7 +29,7 @@ def keyfile(desc, help=None, callback=lambda x: x):
|
||||
raise FatalCheckError("'%s' is empty." % value[0])
|
||||
except IOError as e:
|
||||
raise FatalCheckError("'%s': %s." % (value[0], e.strerror))
|
||||
- return no_key
|
||||
+ return environ.get('MOZ_%s_KEY' % desc.upper().replace(' ', '_')) or no_key
|
||||
|
||||
return keyfile
|
||||
|
|
@ -1,383 +0,0 @@
|
|||
# Partially revert bug 791305 to allow building with system IJG jpeg library
|
||||
|
||||
diff --git old-configure.in configure.in
|
||||
index f0aeb5d..1c01010 100644
|
||||
--- mozilla/old-configure.in
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -4027,11 +4027,7 @@ if test "$MOZ_SYSTEM_JPEG" = 1; then
|
||||
#include <jpeglib.h> ],
|
||||
[ #if JPEG_LIB_VERSION < $MOZJPEG
|
||||
#error "Insufficient JPEG library version ($MOZJPEG required)."
|
||||
- #endif
|
||||
- #ifndef JCS_EXTENSIONS
|
||||
- #error "libjpeg-turbo JCS_EXTENSIONS required"
|
||||
- #endif
|
||||
- ],
|
||||
+ #endif ],
|
||||
MOZ_SYSTEM_JPEG=1,
|
||||
AC_MSG_ERROR([Insufficient JPEG library version for --with-system-jpeg]))
|
||||
fi
|
||||
diff --git image/decoders/nsJPEGDecoder.cpp image/decoders/nsJPEGDecoder.cpp
|
||||
index 8fa8200..1d2a259 100644
|
||||
--- mozilla/image/decoders/nsJPEGDecoder.cpp
|
||||
+++ mozilla/image/decoders/nsJPEGDecoder.cpp
|
||||
@@ -21,13 +21,28 @@
|
||||
|
||||
extern "C" {
|
||||
#include "iccjpeg.h"
|
||||
-}
|
||||
|
||||
+#ifdef JCS_EXTENSIONS
|
||||
#if MOZ_BIG_ENDIAN
|
||||
#define MOZ_JCS_EXT_NATIVE_ENDIAN_XRGB JCS_EXT_XRGB
|
||||
#else
|
||||
#define MOZ_JCS_EXT_NATIVE_ENDIAN_XRGB JCS_EXT_BGRX
|
||||
#endif
|
||||
+#else
|
||||
+/* Colorspace conversion (copied from jpegint.h) */
|
||||
+struct jpeg_color_deconverter {
|
||||
+ JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
|
||||
+ JMETHOD(void, color_convert, (j_decompress_ptr cinfo,
|
||||
+ JSAMPIMAGE input_buf, JDIMENSION input_row,
|
||||
+ JSAMPARRAY output_buf, int num_rows));
|
||||
+};
|
||||
+
|
||||
+METHODDEF(void)
|
||||
+ycc_rgb_convert_argb (j_decompress_ptr cinfo,
|
||||
+ JSAMPIMAGE input_buf, JDIMENSION input_row,
|
||||
+ JSAMPARRAY output_buf, int num_rows);
|
||||
+#endif
|
||||
+}
|
||||
|
||||
static void cmyk_convert_rgb(JSAMPROW row, JDIMENSION width);
|
||||
|
||||
@@ -367,6 +382,7 @@ nsJPEGDecoder::WriteInternal(const char*
|
||||
case JCS_GRAYSCALE:
|
||||
case JCS_RGB:
|
||||
case JCS_YCbCr:
|
||||
+#ifdef JCS_EXTENSIONS
|
||||
// if we're not color managing we can decode directly to
|
||||
// MOZ_JCS_EXT_NATIVE_ENDIAN_XRGB
|
||||
if (mCMSMode != eCMSMode_All) {
|
||||
@@ -375,6 +391,9 @@ nsJPEGDecoder::WriteInternal(const char*
|
||||
} else {
|
||||
mInfo.out_color_space = JCS_RGB;
|
||||
}
|
||||
+#else
|
||||
+ mInfo.out_color_space = JCS_RGB;
|
||||
+#endif
|
||||
break;
|
||||
case JCS_CMYK:
|
||||
case JCS_YCCK:
|
||||
@@ -448,6 +467,16 @@ nsJPEGDecoder::WriteInternal(const char*
|
||||
return; // I/O suspension
|
||||
}
|
||||
|
||||
+#ifndef JCS_EXTENSIONS
|
||||
+ /* Force to use our YCbCr to Packed RGB converter when possible */
|
||||
+ if (!mTransform && (mCMSMode != eCMSMode_All) &&
|
||||
+ mInfo.jpeg_color_space == JCS_YCbCr && mInfo.out_color_space == JCS_RGB) {
|
||||
+ /* Special case for the most common case: transform from YCbCr direct into packed ARGB */
|
||||
+ mInfo.out_color_components = 4; /* Packed ARGB pixels are always 4 bytes...*/
|
||||
+ mInfo.cconvert->color_convert = ycc_rgb_convert_argb;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
// If this is a progressive JPEG ...
|
||||
mState = mInfo.buffered_image ?
|
||||
JPEG_DECOMPRESS_PROGRESSIVE : JPEG_DECOMPRESS_SEQUENTIAL;
|
||||
@@ -605,7 +633,11 @@ nsJPEGDecoder::OutputScanlines(bool* sus
|
||||
uint32_t* imageRow = ((uint32_t*)mImageData) +
|
||||
(mInfo.output_scanline * mInfo.output_width);
|
||||
|
||||
+#ifdef JCS_EXTENSIONS
|
||||
if (mInfo.out_color_space == MOZ_JCS_EXT_NATIVE_ENDIAN_XRGB) {
|
||||
+#else
|
||||
+ if (mInfo.cconvert->color_convert == ycc_rgb_convert_argb) {
|
||||
+#endif
|
||||
// Special case: scanline will be directly converted into packed ARGB
|
||||
if (jpeg_read_scanlines(&mInfo, (JSAMPARRAY)&imageRow, 1) != 1) {
|
||||
*suspend = true; // suspend
|
||||
@@ -920,6 +952,282 @@ term_source (j_decompress_ptr jd)
|
||||
} // namespace mozilla
|
||||
|
||||
|
||||
+#ifndef JCS_EXTENSIONS
|
||||
+/**************** YCbCr -> Cairo's RGB24/ARGB32 conversion: most common case **************/
|
||||
+
|
||||
+/*
|
||||
+ * YCbCr is defined per CCIR 601-1, except that Cb and Cr are
|
||||
+ * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
|
||||
+ * The conversion equations to be implemented are therefore
|
||||
+ * R = Y + 1.40200 * Cr
|
||||
+ * G = Y - 0.34414 * Cb - 0.71414 * Cr
|
||||
+ * B = Y + 1.77200 * Cb
|
||||
+ * where Cb and Cr represent the incoming values less CENTERJSAMPLE.
|
||||
+ * (These numbers are derived from TIFF 6.0 section 21, dated 3-June-92.)
|
||||
+ *
|
||||
+ * To avoid floating-point arithmetic, we represent the fractional constants
|
||||
+ * as integers scaled up by 2^16 (about 4 digits precision); we have to divide
|
||||
+ * the products by 2^16, with appropriate rounding, to get the correct answer.
|
||||
+ * Notice that Y, being an integral input, does not contribute any fraction
|
||||
+ * so it need not participate in the rounding.
|
||||
+ *
|
||||
+ * For even more speed, we avoid doing any multiplications in the inner loop
|
||||
+ * by precalculating the constants times Cb and Cr for all possible values.
|
||||
+ * For 8-bit JSAMPLEs this is very reasonable (only 256 entries per table);
|
||||
+ * for 12-bit samples it is still acceptable. It's not very reasonable for
|
||||
+ * 16-bit samples, but if you want lossless storage you shouldn't be changing
|
||||
+ * colorspace anyway.
|
||||
+ * The Cr=>R and Cb=>B values can be rounded to integers in advance; the
|
||||
+ * values for the G calculation are left scaled up, since we must add them
|
||||
+ * together before rounding.
|
||||
+ */
|
||||
+
|
||||
+#define SCALEBITS 16 /* speediest right-shift on some machines */
|
||||
+
|
||||
+/* Use static tables for color processing. */
|
||||
+/* Four tables, each 256 entries of 4 bytes totals 4K which is not bad... */
|
||||
+
|
||||
+const int Cr_r_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
|
||||
+ -0xb3, -0xb2, -0xb1, -0xaf, -0xae, -0xac,
|
||||
+ -0xab, -0xaa, -0xa8, -0xa7, -0xa5, -0xa4,
|
||||
+ -0xa3, -0xa1, -0xa0, -0x9e, -0x9d, -0x9c,
|
||||
+ -0x9a, -0x99, -0x97, -0x96, -0x95, -0x93,
|
||||
+ -0x92, -0x90, -0x8f, -0x8e, -0x8c, -0x8b,
|
||||
+ -0x89, -0x88, -0x87, -0x85, -0x84, -0x82,
|
||||
+ -0x81, -0x80, -0x7e, -0x7d, -0x7b, -0x7a,
|
||||
+ -0x79, -0x77, -0x76, -0x74, -0x73, -0x72,
|
||||
+ -0x70, -0x6f, -0x6d, -0x6c, -0x6b, -0x69,
|
||||
+ -0x68, -0x66, -0x65, -0x64, -0x62, -0x61,
|
||||
+ -0x5f, -0x5e, -0x5d, -0x5b, -0x5a, -0x58,
|
||||
+ -0x57, -0x56, -0x54, -0x53, -0x51, -0x50,
|
||||
+ -0x4f, -0x4d, -0x4c, -0x4a, -0x49, -0x48,
|
||||
+ -0x46, -0x45, -0x43, -0x42, -0x40, -0x3f,
|
||||
+ -0x3e, -0x3c, -0x3b, -0x39, -0x38, -0x37,
|
||||
+ -0x35, -0x34, -0x32, -0x31, -0x30, -0x2e,
|
||||
+ -0x2d, -0x2b, -0x2a, -0x29, -0x27, -0x26,
|
||||
+ -0x24, -0x23, -0x22, -0x20, -0x1f, -0x1d,
|
||||
+ -0x1c, -0x1b, -0x19, -0x18, -0x16, -0x15,
|
||||
+ -0x14, -0x12, -0x11, -0x0f, -0x0e, -0x0d,
|
||||
+ -0x0b, -0x0a, -0x08, -0x07, -0x06, -0x04,
|
||||
+ -0x03, -0x01, 0x00, 0x01, 0x03, 0x04,
|
||||
+ 0x06, 0x07, 0x08, 0x0a, 0x0b, 0x0d,
|
||||
+ 0x0e, 0x0f, 0x11, 0x12, 0x14, 0x15,
|
||||
+ 0x16, 0x18, 0x19, 0x1b, 0x1c, 0x1d,
|
||||
+ 0x1f, 0x20, 0x22, 0x23, 0x24, 0x26,
|
||||
+ 0x27, 0x29, 0x2a, 0x2b, 0x2d, 0x2e,
|
||||
+ 0x30, 0x31, 0x32, 0x34, 0x35, 0x37,
|
||||
+ 0x38, 0x39, 0x3b, 0x3c, 0x3e, 0x3f,
|
||||
+ 0x40, 0x42, 0x43, 0x45, 0x46, 0x48,
|
||||
+ 0x49, 0x4a, 0x4c, 0x4d, 0x4f, 0x50,
|
||||
+ 0x51, 0x53, 0x54, 0x56, 0x57, 0x58,
|
||||
+ 0x5a, 0x5b, 0x5d, 0x5e, 0x5f, 0x61,
|
||||
+ 0x62, 0x64, 0x65, 0x66, 0x68, 0x69,
|
||||
+ 0x6b, 0x6c, 0x6d, 0x6f, 0x70, 0x72,
|
||||
+ 0x73, 0x74, 0x76, 0x77, 0x79, 0x7a,
|
||||
+ 0x7b, 0x7d, 0x7e, 0x80, 0x81, 0x82,
|
||||
+ 0x84, 0x85, 0x87, 0x88, 0x89, 0x8b,
|
||||
+ 0x8c, 0x8e, 0x8f, 0x90, 0x92, 0x93,
|
||||
+ 0x95, 0x96, 0x97, 0x99, 0x9a, 0x9c,
|
||||
+ 0x9d, 0x9e, 0xa0, 0xa1, 0xa3, 0xa4,
|
||||
+ 0xa5, 0xa7, 0xa8, 0xaa, 0xab, 0xac,
|
||||
+ 0xae, 0xaf, 0xb1, 0xb2,
|
||||
+ };
|
||||
+
|
||||
+const int Cb_b_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
|
||||
+ -0xe3, -0xe1, -0xdf, -0xde, -0xdc, -0xda,
|
||||
+ -0xd8, -0xd6, -0xd5, -0xd3, -0xd1, -0xcf,
|
||||
+ -0xce, -0xcc, -0xca, -0xc8, -0xc6, -0xc5,
|
||||
+ -0xc3, -0xc1, -0xbf, -0xbe, -0xbc, -0xba,
|
||||
+ -0xb8, -0xb7, -0xb5, -0xb3, -0xb1, -0xaf,
|
||||
+ -0xae, -0xac, -0xaa, -0xa8, -0xa7, -0xa5,
|
||||
+ -0xa3, -0xa1, -0x9f, -0x9e, -0x9c, -0x9a,
|
||||
+ -0x98, -0x97, -0x95, -0x93, -0x91, -0x90,
|
||||
+ -0x8e, -0x8c, -0x8a, -0x88, -0x87, -0x85,
|
||||
+ -0x83, -0x81, -0x80, -0x7e, -0x7c, -0x7a,
|
||||
+ -0x78, -0x77, -0x75, -0x73, -0x71, -0x70,
|
||||
+ -0x6e, -0x6c, -0x6a, -0x69, -0x67, -0x65,
|
||||
+ -0x63, -0x61, -0x60, -0x5e, -0x5c, -0x5a,
|
||||
+ -0x59, -0x57, -0x55, -0x53, -0x52, -0x50,
|
||||
+ -0x4e, -0x4c, -0x4a, -0x49, -0x47, -0x45,
|
||||
+ -0x43, -0x42, -0x40, -0x3e, -0x3c, -0x3a,
|
||||
+ -0x39, -0x37, -0x35, -0x33, -0x32, -0x30,
|
||||
+ -0x2e, -0x2c, -0x2b, -0x29, -0x27, -0x25,
|
||||
+ -0x23, -0x22, -0x20, -0x1e, -0x1c, -0x1b,
|
||||
+ -0x19, -0x17, -0x15, -0x13, -0x12, -0x10,
|
||||
+ -0x0e, -0x0c, -0x0b, -0x09, -0x07, -0x05,
|
||||
+ -0x04, -0x02, 0x00, 0x02, 0x04, 0x05,
|
||||
+ 0x07, 0x09, 0x0b, 0x0c, 0x0e, 0x10,
|
||||
+ 0x12, 0x13, 0x15, 0x17, 0x19, 0x1b,
|
||||
+ 0x1c, 0x1e, 0x20, 0x22, 0x23, 0x25,
|
||||
+ 0x27, 0x29, 0x2b, 0x2c, 0x2e, 0x30,
|
||||
+ 0x32, 0x33, 0x35, 0x37, 0x39, 0x3a,
|
||||
+ 0x3c, 0x3e, 0x40, 0x42, 0x43, 0x45,
|
||||
+ 0x47, 0x49, 0x4a, 0x4c, 0x4e, 0x50,
|
||||
+ 0x52, 0x53, 0x55, 0x57, 0x59, 0x5a,
|
||||
+ 0x5c, 0x5e, 0x60, 0x61, 0x63, 0x65,
|
||||
+ 0x67, 0x69, 0x6a, 0x6c, 0x6e, 0x70,
|
||||
+ 0x71, 0x73, 0x75, 0x77, 0x78, 0x7a,
|
||||
+ 0x7c, 0x7e, 0x80, 0x81, 0x83, 0x85,
|
||||
+ 0x87, 0x88, 0x8a, 0x8c, 0x8e, 0x90,
|
||||
+ 0x91, 0x93, 0x95, 0x97, 0x98, 0x9a,
|
||||
+ 0x9c, 0x9e, 0x9f, 0xa1, 0xa3, 0xa5,
|
||||
+ 0xa7, 0xa8, 0xaa, 0xac, 0xae, 0xaf,
|
||||
+ 0xb1, 0xb3, 0xb5, 0xb7, 0xb8, 0xba,
|
||||
+ 0xbc, 0xbe, 0xbf, 0xc1, 0xc3, 0xc5,
|
||||
+ 0xc6, 0xc8, 0xca, 0xcc, 0xce, 0xcf,
|
||||
+ 0xd1, 0xd3, 0xd5, 0xd6, 0xd8, 0xda,
|
||||
+ 0xdc, 0xde, 0xdf, 0xe1,
|
||||
+ };
|
||||
+
|
||||
+const int Cr_g_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
|
||||
+ 0x5b6900, 0x5ab22e, 0x59fb5c, 0x59448a, 0x588db8, 0x57d6e6,
|
||||
+ 0x572014, 0x566942, 0x55b270, 0x54fb9e, 0x5444cc, 0x538dfa,
|
||||
+ 0x52d728, 0x522056, 0x516984, 0x50b2b2, 0x4ffbe0, 0x4f450e,
|
||||
+ 0x4e8e3c, 0x4dd76a, 0x4d2098, 0x4c69c6, 0x4bb2f4, 0x4afc22,
|
||||
+ 0x4a4550, 0x498e7e, 0x48d7ac, 0x4820da, 0x476a08, 0x46b336,
|
||||
+ 0x45fc64, 0x454592, 0x448ec0, 0x43d7ee, 0x43211c, 0x426a4a,
|
||||
+ 0x41b378, 0x40fca6, 0x4045d4, 0x3f8f02, 0x3ed830, 0x3e215e,
|
||||
+ 0x3d6a8c, 0x3cb3ba, 0x3bfce8, 0x3b4616, 0x3a8f44, 0x39d872,
|
||||
+ 0x3921a0, 0x386ace, 0x37b3fc, 0x36fd2a, 0x364658, 0x358f86,
|
||||
+ 0x34d8b4, 0x3421e2, 0x336b10, 0x32b43e, 0x31fd6c, 0x31469a,
|
||||
+ 0x308fc8, 0x2fd8f6, 0x2f2224, 0x2e6b52, 0x2db480, 0x2cfdae,
|
||||
+ 0x2c46dc, 0x2b900a, 0x2ad938, 0x2a2266, 0x296b94, 0x28b4c2,
|
||||
+ 0x27fdf0, 0x27471e, 0x26904c, 0x25d97a, 0x2522a8, 0x246bd6,
|
||||
+ 0x23b504, 0x22fe32, 0x224760, 0x21908e, 0x20d9bc, 0x2022ea,
|
||||
+ 0x1f6c18, 0x1eb546, 0x1dfe74, 0x1d47a2, 0x1c90d0, 0x1bd9fe,
|
||||
+ 0x1b232c, 0x1a6c5a, 0x19b588, 0x18feb6, 0x1847e4, 0x179112,
|
||||
+ 0x16da40, 0x16236e, 0x156c9c, 0x14b5ca, 0x13fef8, 0x134826,
|
||||
+ 0x129154, 0x11da82, 0x1123b0, 0x106cde, 0x0fb60c, 0x0eff3a,
|
||||
+ 0x0e4868, 0x0d9196, 0x0cdac4, 0x0c23f2, 0x0b6d20, 0x0ab64e,
|
||||
+ 0x09ff7c, 0x0948aa, 0x0891d8, 0x07db06, 0x072434, 0x066d62,
|
||||
+ 0x05b690, 0x04ffbe, 0x0448ec, 0x03921a, 0x02db48, 0x022476,
|
||||
+ 0x016da4, 0x00b6d2, 0x000000, -0x00b6d2, -0x016da4, -0x022476,
|
||||
+ -0x02db48, -0x03921a, -0x0448ec, -0x04ffbe, -0x05b690, -0x066d62,
|
||||
+ -0x072434, -0x07db06, -0x0891d8, -0x0948aa, -0x09ff7c, -0x0ab64e,
|
||||
+ -0x0b6d20, -0x0c23f2, -0x0cdac4, -0x0d9196, -0x0e4868, -0x0eff3a,
|
||||
+ -0x0fb60c, -0x106cde, -0x1123b0, -0x11da82, -0x129154, -0x134826,
|
||||
+ -0x13fef8, -0x14b5ca, -0x156c9c, -0x16236e, -0x16da40, -0x179112,
|
||||
+ -0x1847e4, -0x18feb6, -0x19b588, -0x1a6c5a, -0x1b232c, -0x1bd9fe,
|
||||
+ -0x1c90d0, -0x1d47a2, -0x1dfe74, -0x1eb546, -0x1f6c18, -0x2022ea,
|
||||
+ -0x20d9bc, -0x21908e, -0x224760, -0x22fe32, -0x23b504, -0x246bd6,
|
||||
+ -0x2522a8, -0x25d97a, -0x26904c, -0x27471e, -0x27fdf0, -0x28b4c2,
|
||||
+ -0x296b94, -0x2a2266, -0x2ad938, -0x2b900a, -0x2c46dc, -0x2cfdae,
|
||||
+ -0x2db480, -0x2e6b52, -0x2f2224, -0x2fd8f6, -0x308fc8, -0x31469a,
|
||||
+ -0x31fd6c, -0x32b43e, -0x336b10, -0x3421e2, -0x34d8b4, -0x358f86,
|
||||
+ -0x364658, -0x36fd2a, -0x37b3fc, -0x386ace, -0x3921a0, -0x39d872,
|
||||
+ -0x3a8f44, -0x3b4616, -0x3bfce8, -0x3cb3ba, -0x3d6a8c, -0x3e215e,
|
||||
+ -0x3ed830, -0x3f8f02, -0x4045d4, -0x40fca6, -0x41b378, -0x426a4a,
|
||||
+ -0x43211c, -0x43d7ee, -0x448ec0, -0x454592, -0x45fc64, -0x46b336,
|
||||
+ -0x476a08, -0x4820da, -0x48d7ac, -0x498e7e, -0x4a4550, -0x4afc22,
|
||||
+ -0x4bb2f4, -0x4c69c6, -0x4d2098, -0x4dd76a, -0x4e8e3c, -0x4f450e,
|
||||
+ -0x4ffbe0, -0x50b2b2, -0x516984, -0x522056, -0x52d728, -0x538dfa,
|
||||
+ -0x5444cc, -0x54fb9e, -0x55b270, -0x566942, -0x572014, -0x57d6e6,
|
||||
+ -0x588db8, -0x59448a, -0x59fb5c, -0x5ab22e,
|
||||
+ };
|
||||
+
|
||||
+const int Cb_g_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
|
||||
+ 0x2c8d00, 0x2c34e6, 0x2bdccc, 0x2b84b2, 0x2b2c98, 0x2ad47e,
|
||||
+ 0x2a7c64, 0x2a244a, 0x29cc30, 0x297416, 0x291bfc, 0x28c3e2,
|
||||
+ 0x286bc8, 0x2813ae, 0x27bb94, 0x27637a, 0x270b60, 0x26b346,
|
||||
+ 0x265b2c, 0x260312, 0x25aaf8, 0x2552de, 0x24fac4, 0x24a2aa,
|
||||
+ 0x244a90, 0x23f276, 0x239a5c, 0x234242, 0x22ea28, 0x22920e,
|
||||
+ 0x2239f4, 0x21e1da, 0x2189c0, 0x2131a6, 0x20d98c, 0x208172,
|
||||
+ 0x202958, 0x1fd13e, 0x1f7924, 0x1f210a, 0x1ec8f0, 0x1e70d6,
|
||||
+ 0x1e18bc, 0x1dc0a2, 0x1d6888, 0x1d106e, 0x1cb854, 0x1c603a,
|
||||
+ 0x1c0820, 0x1bb006, 0x1b57ec, 0x1affd2, 0x1aa7b8, 0x1a4f9e,
|
||||
+ 0x19f784, 0x199f6a, 0x194750, 0x18ef36, 0x18971c, 0x183f02,
|
||||
+ 0x17e6e8, 0x178ece, 0x1736b4, 0x16de9a, 0x168680, 0x162e66,
|
||||
+ 0x15d64c, 0x157e32, 0x152618, 0x14cdfe, 0x1475e4, 0x141dca,
|
||||
+ 0x13c5b0, 0x136d96, 0x13157c, 0x12bd62, 0x126548, 0x120d2e,
|
||||
+ 0x11b514, 0x115cfa, 0x1104e0, 0x10acc6, 0x1054ac, 0x0ffc92,
|
||||
+ 0x0fa478, 0x0f4c5e, 0x0ef444, 0x0e9c2a, 0x0e4410, 0x0debf6,
|
||||
+ 0x0d93dc, 0x0d3bc2, 0x0ce3a8, 0x0c8b8e, 0x0c3374, 0x0bdb5a,
|
||||
+ 0x0b8340, 0x0b2b26, 0x0ad30c, 0x0a7af2, 0x0a22d8, 0x09cabe,
|
||||
+ 0x0972a4, 0x091a8a, 0x08c270, 0x086a56, 0x08123c, 0x07ba22,
|
||||
+ 0x076208, 0x0709ee, 0x06b1d4, 0x0659ba, 0x0601a0, 0x05a986,
|
||||
+ 0x05516c, 0x04f952, 0x04a138, 0x04491e, 0x03f104, 0x0398ea,
|
||||
+ 0x0340d0, 0x02e8b6, 0x02909c, 0x023882, 0x01e068, 0x01884e,
|
||||
+ 0x013034, 0x00d81a, 0x008000, 0x0027e6, -0x003034, -0x00884e,
|
||||
+ -0x00e068, -0x013882, -0x01909c, -0x01e8b6, -0x0240d0, -0x0298ea,
|
||||
+ -0x02f104, -0x03491e, -0x03a138, -0x03f952, -0x04516c, -0x04a986,
|
||||
+ -0x0501a0, -0x0559ba, -0x05b1d4, -0x0609ee, -0x066208, -0x06ba22,
|
||||
+ -0x07123c, -0x076a56, -0x07c270, -0x081a8a, -0x0872a4, -0x08cabe,
|
||||
+ -0x0922d8, -0x097af2, -0x09d30c, -0x0a2b26, -0x0a8340, -0x0adb5a,
|
||||
+ -0x0b3374, -0x0b8b8e, -0x0be3a8, -0x0c3bc2, -0x0c93dc, -0x0cebf6,
|
||||
+ -0x0d4410, -0x0d9c2a, -0x0df444, -0x0e4c5e, -0x0ea478, -0x0efc92,
|
||||
+ -0x0f54ac, -0x0facc6, -0x1004e0, -0x105cfa, -0x10b514, -0x110d2e,
|
||||
+ -0x116548, -0x11bd62, -0x12157c, -0x126d96, -0x12c5b0, -0x131dca,
|
||||
+ -0x1375e4, -0x13cdfe, -0x142618, -0x147e32, -0x14d64c, -0x152e66,
|
||||
+ -0x158680, -0x15de9a, -0x1636b4, -0x168ece, -0x16e6e8, -0x173f02,
|
||||
+ -0x17971c, -0x17ef36, -0x184750, -0x189f6a, -0x18f784, -0x194f9e,
|
||||
+ -0x19a7b8, -0x19ffd2, -0x1a57ec, -0x1ab006, -0x1b0820, -0x1b603a,
|
||||
+ -0x1bb854, -0x1c106e, -0x1c6888, -0x1cc0a2, -0x1d18bc, -0x1d70d6,
|
||||
+ -0x1dc8f0, -0x1e210a, -0x1e7924, -0x1ed13e, -0x1f2958, -0x1f8172,
|
||||
+ -0x1fd98c, -0x2031a6, -0x2089c0, -0x20e1da, -0x2139f4, -0x21920e,
|
||||
+ -0x21ea28, -0x224242, -0x229a5c, -0x22f276, -0x234a90, -0x23a2aa,
|
||||
+ -0x23fac4, -0x2452de, -0x24aaf8, -0x250312, -0x255b2c, -0x25b346,
|
||||
+ -0x260b60, -0x26637a, -0x26bb94, -0x2713ae, -0x276bc8, -0x27c3e2,
|
||||
+ -0x281bfc, -0x287416, -0x28cc30, -0x29244a, -0x297c64, -0x29d47e,
|
||||
+ -0x2a2c98, -0x2a84b2, -0x2adccc, -0x2b34e6,
|
||||
+ };
|
||||
+
|
||||
+
|
||||
+/* We assume that right shift corresponds to signed division by 2 with
|
||||
+ * rounding towards minus infinity. This is correct for typical "arithmetic
|
||||
+ * shift" instructions that shift in copies of the sign bit. But some
|
||||
+ * C compilers implement >> with an unsigned shift. For these machines you
|
||||
+ * must define RIGHT_SHIFT_IS_UNSIGNED.
|
||||
+ * RIGHT_SHIFT provides a proper signed right shift of an INT32 quantity.
|
||||
+ * It is only applied with constant shift counts. SHIFT_TEMPS must be
|
||||
+ * included in the variables of any routine using RIGHT_SHIFT.
|
||||
+ */
|
||||
+
|
||||
+#ifdef RIGHT_SHIFT_IS_UNSIGNED
|
||||
+#define SHIFT_TEMPS INT32 shift_temp;
|
||||
+#define RIGHT_SHIFT(x,shft) \
|
||||
+ ((shift_temp = (x)) < 0 ? \
|
||||
+ (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
|
||||
+ (shift_temp >> (shft)))
|
||||
+#else
|
||||
+#define SHIFT_TEMPS
|
||||
+#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
+METHODDEF(void)
|
||||
+ycc_rgb_convert_argb (j_decompress_ptr cinfo,
|
||||
+ JSAMPIMAGE input_buf, JDIMENSION input_row,
|
||||
+ JSAMPARRAY output_buf, int num_rows)
|
||||
+{
|
||||
+ JDIMENSION num_cols = cinfo->output_width;
|
||||
+ JSAMPLE * range_limit = cinfo->sample_range_limit;
|
||||
+
|
||||
+ SHIFT_TEMPS
|
||||
+
|
||||
+ /* This is used if we don't have SSE2 */
|
||||
+
|
||||
+ while (--num_rows >= 0) {
|
||||
+ JSAMPROW inptr0 = input_buf[0][input_row];
|
||||
+ JSAMPROW inptr1 = input_buf[1][input_row];
|
||||
+ JSAMPROW inptr2 = input_buf[2][input_row];
|
||||
+ input_row++;
|
||||
+ uint32_t *outptr = (uint32_t *) *output_buf++;
|
||||
+ for (JDIMENSION col = 0; col < num_cols; col++) {
|
||||
+ int y = GETJSAMPLE(inptr0[col]);
|
||||
+ int cb = GETJSAMPLE(inptr1[col]);
|
||||
+ int cr = GETJSAMPLE(inptr2[col]);
|
||||
+ JSAMPLE * range_limit_y = range_limit + y;
|
||||
+ /* Range-limiting is essential due to noise introduced by DCT losses. */
|
||||
+ outptr[col] = 0xFF000000 |
|
||||
+ ( range_limit_y[Cr_r_tab[cr]] << 16 ) |
|
||||
+ ( range_limit_y[((int) RIGHT_SHIFT(Cb_g_tab[cb] + Cr_g_tab[cr], SCALEBITS))] << 8 ) |
|
||||
+ ( range_limit_y[Cb_b_tab[cb]] );
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
///*************** Inverted CMYK -> RGB conversion *************************
|
||||
/// Input is (Inverted) CMYK stored as 4 bytes per pixel.
|
||||
/// Output is RGB stored as 3 bytes per pixel.
|
|
@ -1,12 +0,0 @@
|
|||
--- mail/app/nsMailApp.cpp.orig 2017-03-21 17:00:12 UTC
|
||||
+++ mail/app/nsMailApp.cpp
|
||||
@@ -322,6 +322,9 @@ int main(int argc, char* argv[], char* e
|
||||
{
|
||||
mozilla::TimeStamp start = mozilla::TimeStamp::Now();
|
||||
|
||||
+ setenv("MOZ_GMP_PATH", "%%LOCALBASE%%/lib/browser_plugins/symlinks/gecko", 0);
|
||||
+ setenv("MOZ_PLUGIN_PATH", "%%LOCALBASE%%/lib/browser_plugins/symlinks/gecko", 0);
|
||||
+
|
||||
#ifdef HAS_DLL_BLOCKLIST
|
||||
DllBlocklist_Initialize();
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
# Let ports handle default sample type
|
||||
|
||||
--- mozilla/old-configure.in~
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -5144,7 +5144,7 @@ dnl Use integers over floats for audio o
|
||||
dnl (regarless of the CPU architecture, because audio
|
||||
dnl backends for those platforms don't support floats. We also
|
||||
dnl use integers on ARM with other OS, because it's more efficient.
|
||||
-if test "$OS_TARGET" = "Android" -o "$CPU_ARCH" = "arm"; then
|
||||
+if test -n "$MOZ_INTEGER_SAMPLES"; then
|
||||
MOZ_SAMPLE_TYPE_S16=1
|
||||
AC_DEFINE(MOZ_SAMPLE_TYPE_S16)
|
||||
AC_SUBST(MOZ_SAMPLE_TYPE_S16)
|
|
@ -1,13 +0,0 @@
|
|||
$OpenBSD: patch-toolkit_mozapps_installer_packager_mk,v 1.11 2012/06/11 15:29:56 landry Exp $
|
||||
install headers/idl/sdk libs only if xulrunner
|
||||
--- mozilla/toolkit/mozapps/installer/packager.mk.orig Fri Jun 1 14:04:20 2012
|
||||
+++ mozilla/toolkit/mozapps/installer/packager.mk Tue Jun 5 07:55:51 2012
|
||||
@@ -127,7 +127,7 @@ endif
|
||||
$(NSINSTALL) -D $(DESTDIR)$(bindir)
|
||||
$(RM) -f $(DESTDIR)$(bindir)/$(MOZ_APP_NAME)
|
||||
ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir)
|
||||
-ifdef INSTALL_SDK # Here comes the hard part
|
||||
+ifeq ($(MOZ_APP_NAME),xulrunner)
|
||||
$(NSINSTALL) -D $(DESTDIR)$(includedir)
|
||||
(cd $(DIST)/include && tar $(TAR_CREATE_FLAGS) - .) | \
|
||||
(cd $(DESTDIR)$(includedir) && tar -xf -)
|
|
@ -1,502 +0,0 @@
|
|||
# Allow more config/external/ libs built against system-wide version.
|
||||
|
||||
diff --git build/moz.configure/old.configure build/moz.configure/old.configure
|
||||
index d0fe7accffe6..c46bdd023225 100644
|
||||
--- mozilla/build/moz.configure/old.configure
|
||||
+++ mozilla/build/moz.configure/old.configure
|
||||
@@ -288,7 +288,12 @@ def old_configure_options(*options):
|
||||
'--with-system-libvpx',
|
||||
'--with-system-nspr',
|
||||
'--with-system-nss',
|
||||
+ '--with-system-ogg',
|
||||
'--with-system-png',
|
||||
+ '--with-system-soundtouch',
|
||||
+ '--with-system-theora',
|
||||
+ '--with-system-tremor',
|
||||
+ '--with-system-vorbis',
|
||||
'--with-system-zlib',
|
||||
'--with-thumb',
|
||||
'--with-thumb-interwork',
|
||||
diff --git config/Makefile.in config/Makefile.in
|
||||
index a6206bb0ff30..f20987c61754 100644
|
||||
--- mozilla/config/Makefile.in
|
||||
+++ mozilla/config/Makefile.in
|
||||
@@ -51,6 +51,11 @@ export:: $(export-preqs)
|
||||
-DMOZ_SYSTEM_LIBEVENT=$(MOZ_SYSTEM_LIBEVENT) \
|
||||
-DMOZ_SYSTEM_LIBVPX=$(MOZ_SYSTEM_LIBVPX) \
|
||||
-DMOZ_SYSTEM_ICU=$(MOZ_SYSTEM_ICU) \
|
||||
+ -DMOZ_SYSTEM_OGG=$(MOZ_SYSTEM_OGG) \
|
||||
+ -DMOZ_SYSTEM_THEORA=$(MOZ_SYSTEM_THEORA) \
|
||||
+ -DMOZ_SYSTEM_VORBIS=$(MOZ_SYSTEM_VORBIS) \
|
||||
+ -DMOZ_SYSTEM_TREMOR=$(MOZ_SYSTEM_TREMOR) \
|
||||
+ -DMOZ_SYSTEM_SOUNDTOUCH=$(MOZ_SYSTEM_SOUNDTOUCH) \
|
||||
$(srcdir)/system-headers $(srcdir)/stl-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers
|
||||
$(INSTALL) system_wrappers $(DIST)
|
||||
|
||||
diff --git config/external/moz.build config/external/moz.build
|
||||
index 029ff8504795..2c3a40caa1ba 100644
|
||||
--- mozilla/config/external/moz.build
|
||||
+++ mozilla/config/external/moz.build
|
||||
@@ -21,12 +21,21 @@ if CONFIG['MOZ_UPDATER']:
|
||||
external_dirs += ['modules/brotli']
|
||||
external_dirs += ['modules/woff2']
|
||||
|
||||
-if CONFIG['MOZ_VORBIS']:
|
||||
+if not CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ external_dirs += ['media/libogg']
|
||||
+
|
||||
+if CONFIG['MOZ_VORBIS'] and not CONFIG['MOZ_SYSTEM_VORBIS']:
|
||||
external_dirs += ['media/libvorbis']
|
||||
|
||||
-if CONFIG['MOZ_TREMOR']:
|
||||
+if CONFIG['MOZ_TREMOR'] and not CONFIG['MOZ_SYSTEM_TREMOR']:
|
||||
external_dirs += ['media/libtremor']
|
||||
|
||||
+if not CONFIG['MOZ_SYSTEM_THEORA']:
|
||||
+ external_dirs += ['media/libtheora']
|
||||
+
|
||||
+if not CONFIG['MOZ_SYSTEM_SOUNDTOUCH']:
|
||||
+ external_dirs += ['media/libsoundtouch']
|
||||
+
|
||||
if CONFIG['MOZ_WEBM_ENCODER']:
|
||||
external_dirs += ['media/libmkv']
|
||||
|
||||
@@ -52,12 +61,9 @@ external_dirs += [
|
||||
'media/kiss_fft',
|
||||
'media/libcubeb',
|
||||
'media/libnestegg',
|
||||
- 'media/libogg',
|
||||
'media/libopus',
|
||||
- 'media/libtheora',
|
||||
'media/libspeex_resampler',
|
||||
'media/libstagefright',
|
||||
- 'media/libsoundtouch',
|
||||
'media/psshparser'
|
||||
]
|
||||
|
||||
diff --git config/system-headers config/system-headers
|
||||
index 5ee7f71f9634..13178ac3b3ab 100644
|
||||
--- mozilla/config/system-headers
|
||||
+++ mozilla/config/system-headers
|
||||
@@ -1348,3 +1348,17 @@ unicode/utypes.h
|
||||
libutil.h
|
||||
unwind.h
|
||||
fenv.h
|
||||
+#if MOZ_SYSTEM_OGG==1
|
||||
+ogg/ogg.h
|
||||
+ogg/os_types.h
|
||||
+#endif
|
||||
+#if MOZ_SYSTEM_THEORA==1
|
||||
+theora/theoradec.h
|
||||
+#endif
|
||||
+#if MOZ_SYSTEM_VORBIS==1
|
||||
+vorbis/codec.h
|
||||
+vorbis/vorbisenc.h
|
||||
+#endif
|
||||
+#if MOZ_SYSTEM_TREMOR==1
|
||||
+tremor/ivorbiscodec.h
|
||||
+#endif
|
||||
diff --git dom/media/AudioStream.cpp dom/media/AudioStream.cpp
|
||||
index 93ecda4319af..ff674c64ea07 100644
|
||||
--- mozilla/dom/media/AudioStream.cpp
|
||||
+++ mozilla/dom/media/AudioStream.cpp
|
||||
@@ -115,7 +115,9 @@ AudioStream::AudioStream(DataSource& aSource)
|
||||
: mMonitor("AudioStream")
|
||||
, mChannels(0)
|
||||
, mOutChannels(0)
|
||||
+#ifndef MOZ_SYSTEM_SOUNDTOUCH
|
||||
, mTimeStretcher(nullptr)
|
||||
+#endif
|
||||
, mDumpFile(nullptr)
|
||||
, mState(INITIALIZED)
|
||||
, mDataSource(aSource)
|
||||
@@ -130,9 +132,11 @@ AudioStream::~AudioStream()
|
||||
if (mDumpFile) {
|
||||
fclose(mDumpFile);
|
||||
}
|
||||
+#ifndef MOZ_SYSTEM_SOUNDTOUCH
|
||||
if (mTimeStretcher) {
|
||||
soundtouch::destroySoundTouchObj(mTimeStretcher);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
size_t
|
||||
@@ -151,7 +155,11 @@ nsresult AudioStream::EnsureTimeStretcherInitializedUnlocked()
|
||||
{
|
||||
mMonitor.AssertCurrentThreadOwns();
|
||||
if (!mTimeStretcher) {
|
||||
+#ifdef MOZ_SYSTEM_SOUNDTOUCH
|
||||
+ mTimeStretcher = new soundtouch::SoundTouch();
|
||||
+#else
|
||||
mTimeStretcher = soundtouch::createSoundTouchObj();
|
||||
+#endif
|
||||
mTimeStretcher->setSampleRate(mAudioClock.GetInputRate());
|
||||
mTimeStretcher->setChannels(mOutChannels);
|
||||
mTimeStretcher->setPitch(1.0);
|
||||
diff --git dom/media/AudioStream.h dom/media/AudioStream.h
|
||||
index 7dc1f60f95cc..67d402a4117f 100644
|
||||
--- mozilla/dom/media/AudioStream.h
|
||||
+++ mozilla/dom/media/AudioStream.h
|
||||
@@ -16,7 +16,11 @@
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "CubebUtils.h"
|
||||
+#ifdef MOZ_SYSTEM_SOUNDTOUCH
|
||||
+#include "soundtouch/SoundTouch.h"
|
||||
+#else
|
||||
#include "soundtouch/SoundTouchFactory.h"
|
||||
+#endif
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@@ -287,7 +291,11 @@ private:
|
||||
uint32_t mChannels;
|
||||
uint32_t mOutChannels;
|
||||
AudioClock mAudioClock;
|
||||
+#ifdef MOZ_SYSTEM_SOUNDTOUCH
|
||||
+ nsAutoPtr<soundtouch::SoundTouch> mTimeStretcher;
|
||||
+#else
|
||||
soundtouch::SoundTouch* mTimeStretcher;
|
||||
+#endif
|
||||
|
||||
// Output file for dumping audio
|
||||
FILE* mDumpFile;
|
||||
diff --git dom/media/moz.build dom/media/moz.build
|
||||
index 86b051c58d33..fb6186dce78b 100644
|
||||
--- mozilla/dom/media/moz.build
|
||||
+++ mozilla/dom/media/moz.build
|
||||
@@ -308,6 +308,21 @@ if CONFIG['MOZ_WEBRTC']:
|
||||
|
||||
DEFINES['MOZILLA_INTERNAL_API'] = True
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_OGG_CFLAGS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_THEORA']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_THEORA_CFLAGS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_VORBIS']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_VORBIS_CFLAGS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_TREMOR']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_TREMOR_CFLAGS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_SOUNDTOUCH']:
|
||||
+ CXXFLAGS += CONFIG['MOZ_SOUNDTOUCH_CFLAGS']
|
||||
+
|
||||
if CONFIG['OS_TARGET'] == 'WINNT':
|
||||
DEFINES['WEBRTC_WIN'] = True
|
||||
else:
|
||||
diff --git dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
|
||||
index 078f6ea5ef60..c600db067539 100644
|
||||
--- mozilla/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
|
||||
+++ mozilla/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
|
||||
@@ -11,9 +11,13 @@
|
||||
#include "prmem.h"
|
||||
#include "prlink.h"
|
||||
|
||||
+#ifdef MOZ_SYSTEM_SOUNDTOUCH
|
||||
+#include "nsXPCOMPrivate.h" // for XUL_DLL
|
||||
+#else
|
||||
// We use a known symbol located in lgpllibs to determine its location.
|
||||
// soundtouch happens to be always included in lgpllibs
|
||||
#include "soundtouch/SoundTouch.h"
|
||||
+#endif
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@@ -50,6 +54,12 @@ FFVPXRuntimeLinker::Init()
|
||||
|
||||
sLinkStatus = LinkStatus_FAILED;
|
||||
|
||||
+#ifdef MOZ_SYSTEM_SOUNDTOUCH
|
||||
+ // We retrieve the path of the XUL library as this is where mozavcodec and
|
||||
+ // mozavutil libs are located.
|
||||
+ char* path =
|
||||
+ PR_GetLibraryFilePathname(XUL_DLL, (PRFuncPtr)&FFVPXRuntimeLinker::Init);
|
||||
+#else
|
||||
// We retrieve the path of the lgpllibs library as this is where mozavcodec
|
||||
// and mozavutil libs are located.
|
||||
char* lgpllibsname = PR_GetLibraryName(nullptr, "lgpllibs");
|
||||
@@ -60,6 +70,7 @@ FFVPXRuntimeLinker::Init()
|
||||
PR_GetLibraryFilePathname(lgpllibsname,
|
||||
(PRFuncPtr)&soundtouch::SoundTouch::getVersionId);
|
||||
PR_FreeLibraryName(lgpllibsname);
|
||||
+#endif
|
||||
if (!path) {
|
||||
return false;
|
||||
}
|
||||
diff --git media/libogg/README_MOZILLA media/libogg/README_MOZILLA
|
||||
index 6213fdc7770c..ada799916a17 100644
|
||||
--- mozilla/media/libogg/README_MOZILLA
|
||||
+++ mozilla/media/libogg/README_MOZILLA
|
||||
@@ -6,3 +6,6 @@ package downloaded from xiph.org and copied using the update.sh script.
|
||||
The int-types.patch address a bug that config_types.h generated from
|
||||
Linux platform can't be used on OpenSolaris directly see Mozilla bug
|
||||
449754
|
||||
+
|
||||
+The in-tree copy may be omitted during build by --with-system-ogg.
|
||||
+Keep version in old-configure.in in sync on updates.
|
||||
diff --git media/libsoundtouch/README_MOZILLA media/libsoundtouch/README_MOZILLA
|
||||
index dc0dbe8f6886..ea73b55e3e39 100644
|
||||
--- mozilla/media/libsoundtouch/README_MOZILLA
|
||||
+++ mozilla/media/libsoundtouch/README_MOZILLA
|
||||
@@ -6,3 +6,5 @@ The whole library is not used, only the relevant files are imported in the tree,
|
||||
using the script `update.sh`. Some changes have been made to the files, using
|
||||
the patch `moz-libsoundtouch.patch`. We also use a custom soundtouch_config.h.
|
||||
|
||||
+The in-tree copy may be omitted during build by --with-system-soundtouch.
|
||||
+Keep version in old-configure.in in sync on updates.
|
||||
diff --git media/libsoundtouch/src/soundtouch_perms.h media/libsoundtouch/src/soundtouch_perms.h
|
||||
index 0af2fe618311..10973564e7a4 100644
|
||||
--- mozilla/media/libsoundtouch/src/soundtouch_perms.h
|
||||
+++ mozilla/media/libsoundtouch/src/soundtouch_perms.h
|
||||
@@ -12,7 +12,9 @@
|
||||
|
||||
#pragma GCC visibility push(default)
|
||||
#include "SoundTouch.h"
|
||||
+#ifndef MOZ_SYSTEM_SOUNDTOUCH
|
||||
#include "SoundTouchFactory.h"
|
||||
+#endif
|
||||
#pragma GCC visibility pop
|
||||
|
||||
#endif // MOZILLA_SOUNDTOUCH_PERMS_H
|
||||
diff --git media/libtheora/README_MOZILLA media/libtheora/README_MOZILLA
|
||||
index d48dbfa6f63d..6f30f250220e 100644
|
||||
--- mozilla/media/libtheora/README_MOZILLA
|
||||
+++ mozilla/media/libtheora/README_MOZILLA
|
||||
@@ -3,3 +3,6 @@ using the update.sh script. The changes made were those applied by update.sh,
|
||||
the addition/update of Makefile.in files for the Mozilla build system.
|
||||
|
||||
The subversion revision used was r17578.
|
||||
+
|
||||
+The in-tree copy may be omitted during build by --with-system-theora.
|
||||
+Keep version in old-configure.in in sync on updates.
|
||||
diff --git media/libtheora/moz.build media/libtheora/moz.build
|
||||
index c7f85eebff95..aae7b814adb5 100644
|
||||
--- mozilla/media/libtheora/moz.build
|
||||
+++ mozilla/media/libtheora/moz.build
|
||||
@@ -21,6 +21,9 @@ FINAL_LIBRARY = 'gkmedias'
|
||||
# The encoder is currently not included.
|
||||
DEFINES['THEORA_DISABLE_ENCODE'] = True
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS']
|
||||
+
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
|
||||
CFLAGS += ['-Wno-type-limits']
|
||||
diff --git media/libtremor/README_MOZILLA media/libtremor/README_MOZILLA
|
||||
index ee67b53a05c5..81c971773d55 100644
|
||||
--- mozilla/media/libtremor/README_MOZILLA
|
||||
+++ mozilla/media/libtremor/README_MOZILLA
|
||||
@@ -5,3 +5,6 @@ Makefile.in files for the Mozilla build system.
|
||||
|
||||
The upstream release used was http://svn.xiph.org/trunk/Tremor/
|
||||
The subversion revision used was r17547.
|
||||
+
|
||||
+The in-tree copy may be omitted during build by --with-system-tremor.
|
||||
+Keep version in old-configure.in in sync on updates.
|
||||
diff --git media/libtremor/moz.build media/libtremor/moz.build
|
||||
index 83afc8e37c64..71ef159da3d7 100644
|
||||
--- mozilla/media/libtremor/moz.build
|
||||
+++ mozilla/media/libtremor/moz.build
|
||||
@@ -9,3 +9,5 @@ with Files('*'):
|
||||
|
||||
DIRS += ['include/tremor', 'lib']
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS']
|
||||
diff --git media/libvorbis/README_MOZILLA media/libvorbis/README_MOZILLA
|
||||
index 1211ac074b33..eb31084aed25 100644
|
||||
--- mozilla/media/libvorbis/README_MOZILLA
|
||||
+++ mozilla/media/libvorbis/README_MOZILLA
|
||||
@@ -8,3 +8,6 @@ https://svn.xiph.org/tags/vorbis/libvorbis-1.3.5@19464
|
||||
|
||||
Some files are renamed during the copy to prevent clashes with object
|
||||
file names with other Mozilla libraries.
|
||||
+
|
||||
+The in-tree copy may be omitted during build by --with-system-vorbis.
|
||||
+Keep version in old-configure.in in sync on updates.
|
||||
diff --git media/libvorbis/moz.build media/libvorbis/moz.build
|
||||
index adf393782cc9..923b76231107 100644
|
||||
--- mozilla/media/libvorbis/moz.build
|
||||
+++ mozilla/media/libvorbis/moz.build
|
||||
@@ -56,3 +56,6 @@ FINAL_LIBRARY = 'gkmedias'
|
||||
# Suppress warnings in third-party code.
|
||||
if CONFIG['GNU_CC']:
|
||||
CFLAGS += ['-Wno-uninitialized']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS']
|
||||
diff --git old-configure.in old-configure.in
|
||||
index b614eef85c89..85f9099dba4d 100644
|
||||
--- mozilla/old-configure.in
|
||||
+++ mozilla/old-configure.in
|
||||
@@ -2941,6 +2941,111 @@ if test -n "$MOZ_OMX_PLUGIN"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
+dnl ========================================================
|
||||
+dnl Check for libogg
|
||||
+dnl ========================================================
|
||||
+
|
||||
+MOZ_ARG_WITH_BOOL(system-ogg,
|
||||
+[ --with-system-ogg Use system libogg (located with pkgconfig)],
|
||||
+MOZ_SYSTEM_OGG=1,
|
||||
+MOZ_SYSTEM_OGG=)
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_OGG"; then
|
||||
+ PKG_CHECK_MODULES(MOZ_OGG, ogg >= 1.3.0)
|
||||
+
|
||||
+ _SAVE_LIBS=$LIBS
|
||||
+ LIBS="$LIBS $MOZ_OGG_LIBS"
|
||||
+ AC_CHECK_FUNC(ogg_set_mem_functions, [],
|
||||
+ [AC_DEFINE(MOZ_OGG_NO_MEM_REPORTING)])
|
||||
+ LIBS=$_SAVE_LIBS
|
||||
+fi
|
||||
+
|
||||
+AC_SUBST(MOZ_SYSTEM_OGG)
|
||||
+
|
||||
+dnl ========================================================
|
||||
+dnl Check for libvorbis
|
||||
+dnl ========================================================
|
||||
+
|
||||
+MOZ_ARG_WITH_BOOL(system-vorbis,
|
||||
+[ --with-system-vorbis Use system libvorbis (located with pkgconfig)],
|
||||
+MOZ_SYSTEM_VORBIS=1,
|
||||
+MOZ_SYSTEM_VORBIS=)
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_VORBIS"; then
|
||||
+ PKG_CHECK_MODULES(MOZ_VORBIS, vorbis vorbisenc >= 1.3.5)
|
||||
+fi
|
||||
+
|
||||
+AC_SUBST(MOZ_SYSTEM_VORBIS)
|
||||
+
|
||||
+dnl ========================================================
|
||||
+dnl Check for integer-only libvorbis aka tremor
|
||||
+dnl ========================================================
|
||||
+
|
||||
+MOZ_ARG_WITH_BOOL(system-tremor,
|
||||
+[ --with-system-tremor Use system libtremor (located with pkgconfig)],
|
||||
+MOZ_SYSTEM_TREMOR=1,
|
||||
+MOZ_SYSTEM_TREMOR=)
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_TREMOR"; then
|
||||
+ PKG_CHECK_MODULES(MOZ_TREMOR, vorbisidec >= 1.2.1)
|
||||
+fi
|
||||
+
|
||||
+AC_SUBST(MOZ_SYSTEM_TREMOR)
|
||||
+
|
||||
+dnl ========================================================
|
||||
+dnl Check for libtheora
|
||||
+dnl ========================================================
|
||||
+
|
||||
+MOZ_ARG_WITH_BOOL(system-theora,
|
||||
+[ --with-system-theora Use system libtheora (located with pkgconfig)],
|
||||
+MOZ_SYSTEM_THEORA=1,
|
||||
+MOZ_SYSTEM_THEORA=)
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_THEORA"; then
|
||||
+ PKG_CHECK_MODULES(MOZ_THEORA, theora >= 1.2)
|
||||
+fi
|
||||
+
|
||||
+AC_SUBST(MOZ_SYSTEM_THEORA)
|
||||
+
|
||||
+dnl ========================================================
|
||||
+dnl Check for libSoundTouch
|
||||
+dnl ========================================================
|
||||
+
|
||||
+MOZ_ARG_WITH_BOOL(system-soundtouch,
|
||||
+[ --with-system-soundtouch Use system libSoundTouch (located with pkgconfig)],
|
||||
+MOZ_SYSTEM_SOUNDTOUCH=1,
|
||||
+MOZ_SYSTEM_SOUNDTOUCH=)
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_SOUNDTOUCH"; then
|
||||
+ PKG_CHECK_MODULES(MOZ_SOUNDTOUCH, soundtouch >= 1.9.0)
|
||||
+
|
||||
+ AC_LANG_SAVE
|
||||
+ AC_LANG_CPLUSPLUS
|
||||
+ _SAVE_CXXFLAGS=$CXXFLAGS
|
||||
+ CXXFLAGS="$CXXFLAGS $MOZ_SOUNDTOUCH_CFLAGS"
|
||||
+ AC_CACHE_CHECK(for soundtouch sample type,
|
||||
+ ac_cv_soundtouch_sample_type,
|
||||
+ [AC_TRY_COMPILE([#include <SoundTouch.h>
|
||||
+ #ifndef SOUNDTOUCH_INTEGER_SAMPLES
|
||||
+ #error soundtouch expects float samples
|
||||
+ #endif],
|
||||
+ [],
|
||||
+ [ac_cv_soundtouch_sample_type=short],
|
||||
+ [ac_cv_soundtouch_sample_type=float])])
|
||||
+ CXXFLAGS=$_SAVE_CXXFLAGS
|
||||
+ AC_LANG_RESTORE
|
||||
+
|
||||
+ if test \( -n "$MOZ_SAMPLE_TYPE_S16" -a "$ac_cv_soundtouch_sample_type" != short \) \
|
||||
+ -o \( -n "$MOZ_SAMPLE_TYPE_FLOAT32" -a "$ac_cv_soundtouch_sample_type" != float \) ; then
|
||||
+ AC_MSG_ERROR([SoundTouch library is built with incompatible sample type. Either rebuild the library with/without --enable-integer-samples, chase default Mozilla sample type or remove --with-system-soundtouch.])
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+if test -n "$MOZ_SYSTEM_SOUNDTOUCH"; then
|
||||
+ AC_DEFINE(MOZ_SYSTEM_SOUNDTOUCH)
|
||||
+fi
|
||||
+AC_SUBST(MOZ_SYSTEM_SOUNDTOUCH)
|
||||
+
|
||||
dnl system libvpx Support
|
||||
dnl ========================================================
|
||||
MOZ_ARG_WITH_BOOL(system-libvpx,
|
||||
diff --git toolkit/library/moz.build toolkit/library/moz.build
|
||||
index 079a575adec3..514d901195de 100644
|
||||
--- mozilla/toolkit/library/moz.build
|
||||
+++ mozilla/toolkit/library/moz.build
|
||||
@@ -237,6 +237,21 @@ if CONFIG['MOZ_SYSTEM_HARFBUZZ']:
|
||||
if CONFIG['MOZ_SYSTEM_HUNSPELL']:
|
||||
OS_LIBS += CONFIG['MOZ_HUNSPELL_LIBS']
|
||||
|
||||
+if CONFIG['MOZ_SYSTEM_OGG']:
|
||||
+ OS_LIBS += CONFIG['MOZ_OGG_LIBS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_THEORA']:
|
||||
+ OS_LIBS += CONFIG['MOZ_THEORA_LIBS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_VORBIS']:
|
||||
+ OS_LIBS += CONFIG['MOZ_VORBIS_LIBS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_TREMOR']:
|
||||
+ OS_LIBS += CONFIG['MOZ_TREMOR_LIBS']
|
||||
+
|
||||
+if CONFIG['MOZ_SYSTEM_SOUNDTOUCH']:
|
||||
+ OS_LIBS += CONFIG['MOZ_SOUNDTOUCH_LIBS']
|
||||
+
|
||||
if CONFIG['MOZ_SYSTEM_LIBEVENT']:
|
||||
OS_LIBS += CONFIG['MOZ_LIBEVENT_LIBS']
|
||||
|
||||
diff --git xpcom/build/XPCOMInit.cpp xpcom/build/XPCOMInit.cpp
|
||||
index c083ab4bc4f3..62b917043a2c 100644
|
||||
--- mozilla/xpcom/build/XPCOMInit.cpp
|
||||
+++ mozilla/xpcom/build/XPCOMInit.cpp
|
||||
@@ -154,7 +154,9 @@ extern nsresult nsStringInputStreamConstructor(nsISupports*, REFNSIID, void**);
|
||||
|
||||
#include "mozilla/ipc/GeckoChildProcessHost.h"
|
||||
|
||||
+#ifndef MOZ_OGG_NO_MEM_REPORTING
|
||||
#include "ogg/ogg.h"
|
||||
+#endif
|
||||
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING)
|
||||
#if defined(HAVE_STDINT_H)
|
||||
// mozilla-config.h defines HAVE_STDINT_H, and then it's defined *again* in
|
||||
@@ -664,11 +666,13 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
|
||||
// this oddness.
|
||||
mozilla::SetICUMemoryFunctions();
|
||||
|
||||
+#ifndef MOZ_OGG_NO_MEM_REPORTING
|
||||
// Do the same for libogg.
|
||||
ogg_set_mem_functions(OggReporter::CountingMalloc,
|
||||
OggReporter::CountingCalloc,
|
||||
OggReporter::CountingRealloc,
|
||||
OggReporter::CountingFree);
|
||||
+#endif
|
||||
|
||||
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING)
|
||||
// And for VPX.
|
|
@ -1,11 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Thunderbird
|
||||
GenericName=Mail Client
|
||||
Comment=Mail client and News Reader
|
||||
Exec=@MOZILLA@ %u
|
||||
Icon=@PORTNAME_ICON@
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Network;Email;News;InstantMessaging;
|
Loading…
Reference in a new issue