8711 Commits

Author SHA1 Message Date
Tamas Szentpeteri
a86fd1fb23 Backed out changeset 4309f75eaa90 (bug 1883615) for causing build bustages related to check_symbol_in_libs. CLOSED TREE 2024-04-17 12:57:02 +03:00
serge-sans-paille
78ac6a6ccf Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-04-17 09:33:00 +00:00
Updatebot
16eb058401 Bug 1891459 - Update dav1d to 5b5399911dd24703de641d65eda5b7f1e845d060 r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D207425
2024-04-16 16:40:31 +00:00
Chun-Min Chang
be484e5383 Bug 1886378 - Update linux/aarch64 sources to SVE-disabled version r=glandium
This patch updates the linux/aarch64 sources in our code base to the
SVE-disabled version. The commit version remains at 7fb8cec.

Differential Revision: https://phabricator.services.mozilla.com/D206720
2024-04-16 16:37:25 +00:00
Chun-Min Chang
6f46fb6bb4 Bug 1886378 - Include vpx_config.c directly in source list r=glandium
Initially, *vpx_config.c* on various platform-architecture combinations
was revmoed from the input list for source list generation and later
added to the source list in moz.build. This was necessary because the
generated list was based solely on architecture, while the vpx_config.c
differed across platform-architecture combinations.

With the source list generation reworked in the previous patch, each
platform-architecture combination now has its own list. Therefore,
vpx_config.c can be directly included in the source list, simplifying
the process.

Differential Revision: https://phabricator.services.mozilla.com/D207183
2024-04-16 16:37:25 +00:00
Chun-Min Chang
cdc4ec7b80 Bug 1886378 - Rework source-list generation across platforms and architectrues r=glandium
Previously, source lists on different platforms were generated solely
based on architecture. Each architecture's source list would be copied
to lists on various platforms with the same architecture, with
modifications as necessary. However, with recently divergent settings
for platforms sharing the same architecture, maintaining a single list
and modifying it across different platforms becomes cumbersome.

To streamline this process and accommodate differing platform-specific
settings, this patch introduces a new approach. It generates source
lists for each platform-architecture combination. Consequently, source
lists for all platform-architecture combinations can be directly copied
without subsequent modifications. This simplifies maintenance across
different platforms and architectures.

Differential Revision: https://phabricator.services.mozilla.com/D206719
2024-04-16 16:37:24 +00:00
Chun-Min Chang
3f09a6a1c0 Bug 1886378 - Disable SVE on linux/aarch64 r=glandium
This patch, akin to D204798 in bug 1880814 [1, 2], disables the SVE
features on the Linux/AArch64 platform.

[1] https://phabricator.services.mozilla.com/D204798
[2] https://hg.mozilla.org/mozilla-central/rev/d3a921beb422

Differential Revision: https://phabricator.services.mozilla.com/D206718
2024-04-16 16:37:24 +00:00
Andreas Pehrson
1cb7fca83a Bug 1888181 (MOZ) - Remove MockVideoSendStream::StartPerRtpStream. r=webrtc-reviewers,mjf
A fix for the upstream removal:
https://webrtc.googlesource.com/src/+/9c166e064fb2da8273e2d997ce182de49091dbd5

Differential Revision: https://phabricator.services.mozilla.com/D206630
2024-04-04 15:48:55 +00:00
Updatebot
4f2af575e2 Bug 1890629 - Update opus to fdb198e88660721e289df94c29e91f70caff787e r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D207065
2024-04-09 23:04:29 +00:00
Updatebot
d58dd3a136 Bug 1889046 - Update libjxl to a5e4aa1fc1fe5bee252225a2616dccde7fd35da0 r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D206312
2024-04-04 12:53:30 +00:00
Paul Adenot
57bea96ffa Bug 1885878 - Patch libaom to allow compiling with GCC 8. r=sergesanspaille
Missing were _mm_loadusi64, and _mm256_loadu2_m128i, reimplemented. It's all
below a layer of macros.

Differential Revision: https://phabricator.services.mozilla.com/D206524
2024-04-04 12:42:03 +00:00
Paul Adenot
6b0adafa0d Bug 1885878 - Update aom to new version 879d14159441796c92f3bbba7f8965e1bcf320ca. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D205058
2024-04-04 12:42:02 +00:00
Paul Adenot
fdec62e9dd Bug 1885878 - Add a patch to libaom to include errno.h to unbreak MinGW. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D206521
2024-04-04 12:42:01 +00:00
Chun-Min Chang
35328c8ac4 Bug 1888772 - Apply ARM-CPU-runtime-detection patch r=media-playback-reviewers,padenot
This patch is the result running the command below
```
./mach vendor media/libvpx/moz.yaml --patch-mode=only --ignore-modified
```
with arm_cpu_runtime_detection_code_on_openbsd.patch in moz.yaml's
patches list only (other patches are temporarily removed during the
updating process).

Depends on D206409

Differential Revision: https://phabricator.services.mozilla.com/D206410
2024-04-03 16:07:48 +00:00
Chun-Min Chang
73367c096d Bug 1888772 - Add arm-cpu-runtime-detection patch to moz.yaml r=media-playback-reviewers,padenot
Depends on D206408

Differential Revision: https://phabricator.services.mozilla.com/D206409
2024-04-03 16:07:47 +00:00
Chun-Min Chang
209358d9cf Bug 1888772 - Import ARM-CPU-runtime-detection-on-OpenBSD patch r=media-playback-reviewers,padenot
This patch imports the fix to build ARM CPU runtime detection code on
OpenBSD [1] to our code base.

[1] https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/multimedia/libvpx/patches/patch-vpx_ports_aarch64_cpudetect_c?rev=1.1&content-type=text/x-cvsweb-markup

Differential Revision: https://phabricator.services.mozilla.com/D206408
2024-04-03 16:07:47 +00:00
Cristian Tuns
1070adab28 Backed out 1 changesets (bug 1885878) for causing build bustages in synonyms.h CLOSED TREE
Backed out changeset 7d326ac64fc8 (bug 1885878)
2024-04-02 10:16:42 -04:00
Paul Adenot
42f414b3f1 Bug 1885878 - Update aom to new version 158761dfb40e77f3a54c3b14a596112837baa24b. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D205058
2024-04-02 12:58:50 +00:00
Updatebot
0b8e47ba3b Bug 1888953 - Update opus to 0e30966b198ad28943799eaf5b3b08100b6f70c3 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D206258
2024-04-02 07:44:24 +00:00
Paul Adenot
97496687b0 Bug 1834920 - Make audio IO work on iOS in Gecko. r=glandium,pehrsons
This disable the rust backend on iOS until we sort it out -- the old backend
still works well.

This essentially disables all device management: enumeration, recovery after
device disappearance, etc. This also disables Aggregate device support, but it
should fall back on regular duplex IO code.

The modifications done to the backend are put in a patch applied during update,
as usual. When not building for iOS, cubeb-coreaudio-rs is still used, and is
not modified by this patch.

I'm including a small assert disabling that stems from the fact that there's no
dynamic linker and so we can't do ffts for Web Audio API yet.

Differential Revision: https://phabricator.services.mozilla.com/D205449
2024-03-27 15:28:35 +00:00
Paul Adenot
27969a44b1 Bug 1749046 - Add a DTX flag to libopusenc.c. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D199735
2024-03-27 14:16:38 +00:00
Paul Adenot
d96ebfc92b Bug 1749046 - Vendor libopusenc.c and libvorbisenc.c and support files in ffvpx. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D199524
2024-03-27 14:16:31 +00:00
Chun-Min Chang
5470bff441 Bug 1886321 - Escape from building with <sys/auxv.h> on Windows/OSX AArch64 r=media-playback-reviewers,karlt
The 'sys/auxv.h' file is not on our Windows AArch64 and OSX AArch64 CIs,
so we undefine the `HAVE_GETAUXVAL` macro to avoid building dav1d
sources with this header.

Differential Revision: https://phabricator.services.mozilla.com/D205647
2024-03-27 01:12:17 +00:00
Updatebot
aa00957b9c Bug 1886321 - Update dav1d to 8e08426468a76d8a667e8a79d92bafd85d7411ac r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D205160
2024-03-27 01:12:17 +00:00
Mike Hommey
3583f8462a Bug 1886318 - Add missing header for EBUSY on mingw. r=media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D205669
2024-03-26 04:38:30 +00:00
Shravan Narayan
0aed52d2bb Bug 1885359 - Fix intermittent crash on destroy rlbox sandbox in soundtouch r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D204720
2024-03-22 15:13:58 +00:00
Cristian Tuns
c447d02bac Backed out changeset c885999ff37e (bug 1886321) for causing build bustages in cpu.c CLOSED TREE 2024-03-20 15:29:42 -04:00
Updatebot
b7441a48e8 Bug 1886321 - Update dav1d to 8e08426468a76d8a667e8a79d92bafd85d7411ac r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D205160
2024-03-20 18:18:44 +00:00
Chun-Min Chang
c7a69aed78 Bug 1880814 - Apply local patches r=media-playback-reviewers,alwu
This patch runs
```
./mach vendor media/libvpx/moz.yaml --patch-mode=only
```
to apply local patches.

Differential Revision: https://phabricator.services.mozilla.com/D204804
2024-03-19 23:22:54 +00:00
Chun-Min Chang
904440fbb0 Bug 1880814 - Adjust input_frame_validation.patch r=media-playback-reviewers,alwu
The input_frame_validation.patch has to be adjusted to meet the latest
vp8_cx_iface.c

Differential Revision: https://phabricator.services.mozilla.com/D204803
2024-03-19 23:22:53 +00:00
Chun-Min Chang
9ed06e0f8f Bug 1880814 - Update libvpx to 7fb8ceccf92c35cd5131b05c0502916715ebc76b r=media-playback-reviewers,alwu
This patch runs
```
./mach vendor media/libvpx/moz.yaml --patch-mode=none
```
to update libvpx to 7fb8cec

Differential Revision: https://phabricator.services.mozilla.com/D204802
2024-03-19 23:22:53 +00:00
Chun-Min Chang
0395845afd Bug 1880814 - Remove files ending with *_sve.c* on win/aarch64 r=glandium
This patch removes the sve-related files from libvpx sources on Windows
AArch64 platforms. The SVE-feature was disabled on the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D204801
2024-03-19 23:22:52 +00:00
Chun-Min Chang
d2d99b1589 Bug 1880814 - Port the cflags from Makefile to moz.build r=glandium
The cflags for sve features are introduced on arm platforms in this
patch. These settings are brought from libvpx's Makefile.

[1] 7fb8ceccf9/build/make/Makefile (151)

Differential Revision: https://phabricator.services.mozilla.com/D204800
2024-03-19 23:22:52 +00:00
Chun-Min Chang
3e9e678d7e Bug 1880814 - Logs for libvpx configuration on various platforms r=glandium
This patch generates log files during the configuration of libvpx on
variouse platforms. These logs can be used for manual verification of
the correctness of settings. In this particular case, the log file for
win/aarch64 reveals the sve feature is disabled on win/aarch64.

The logs will be excluded to the repo, by .gitignore and .hgignore
settings.

Differential Revision: https://phabricator.services.mozilla.com/D204799
2024-03-19 23:22:51 +00:00
Chun-Min Chang
cb56000349 Bug 1880814 - Disable SVE on win/aarch64 r=glandium
This patch disables the SVE features on win/aarch64 platform.

1. According to libvpx setting scripts [1, 2], the sve feature in config
   file can be disabled by adding `--disable-sve` option when running
   the *configure* script.
2. According to *rtcd.pl* [3], the SVE-related function in headers
   ending with *_rtcd.h* can be removed by `--disable-sve` option.

[1] 7fb8ceccf9/build/make/Android.mk (38)
[2] 7fb8ceccf9/build/make/configure.sh (1262)
[3] 7fb8ceccf9/build/make/rtcd.pl (525)

Differential Revision: https://phabricator.services.mozilla.com/D204798
2024-03-19 23:22:51 +00:00
Updatebot
85a91db376 Bug 1884859 - Update libjxl to f06a34c77b1bd11bafbe82989241e68c756ccca2 r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D204327
2024-03-14 20:57:48 +00:00
Mike Hommey
3bf9d367c1 Bug 1884026 - Don't build death tests on platforms that don't support them. r=media-playback-reviewers,cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D203846
2024-03-14 00:09:29 +00:00
Matthew Gregan
b71caf6061 Bug 1878776: Update opus to ab4e83598e7fc8b2ce82dc633a0fc0c452b629aa. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D200730
2024-03-06 19:59:59 +00:00
Lynne
8877c5f839 Bug 1879676 avfft: avoid overreads with RDFT API users r=padenot
The new API requires an extra array member at the very end,
which old API users did not do.

This disables in-place RDFT transforms and instead
does the transform out of place by copying once, there shouldn't
be a significant loss of speed as our in-place FFT requires a reorder
which is likely more expensive in the majority of cases to do.

Cherry-picked from
90adef99ca

Differential Revision: https://phabricator.services.mozilla.com/D203388
2024-03-05 23:30:18 +00:00
Paul Adenot
ac309d19de Bug 1879873 - Directly use tx instead of the older avfft interface. r=karlt,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202156
2024-02-28 12:50:27 +00:00
Paul Adenot
34060626a5 Bug 1879873 - Remove MOZ_LIBAV_FFT. r=karlt
We have some time to use av_fft.h, after which we'll have to use tx.h directly.
It's not hard to update.

Differential Revision: https://phabricator.services.mozilla.com/D201601
2024-02-28 12:50:26 +00:00
Paul Adenot
d309b4eb34 Bug 1879873 - Remove kiss fft and openmax dl. r=karlt,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D201600
2024-02-28 12:50:26 +00:00
Cristian Tuns
48a036458a Backed out 5 changesets (bug 1879873) for causing reftest failures in asan_malloc_win.cpp CLOSED TREE
Backed out changeset e519654e5d8b (bug 1879873)
Backed out changeset 9b17ac4800c6 (bug 1879873)
Backed out changeset 2e5121a988a8 (bug 1879873)
Backed out changeset 9973c75413d6 (bug 1879873)
Backed out changeset 7c947114da80 (bug 1879873)
2024-02-27 10:39:59 -05:00
Paul Adenot
bb57621a22 Bug 1879873 - Directly use tx instead of the older avfft interface. r=karlt,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202156
2024-02-27 12:40:23 +00:00
Paul Adenot
555a8424d6 Bug 1879873 - Remove MOZ_LIBAV_FFT. r=karlt
We have some time to use av_fft.h, after which we'll have to use tx.h directly.
It's not hard to update.

Differential Revision: https://phabricator.services.mozilla.com/D201601
2024-02-27 12:40:22 +00:00
Paul Adenot
a71183d09c Bug 1879873 - Remove kiss fft and openmax dl. r=karlt,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D201600
2024-02-27 12:40:22 +00:00
Timothy Nikkel
12ef746d48 Bug 1881807. Update libpng to version 1.6.43. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D202703
2024-02-26 22:50:28 +00:00
Timothy Nikkel
8c08a880a3 Bug 1881807. Update local patches we apply to libpng. r=gfx-reviewers,aosmond
Remove Fix-contrib-conftest-pngcp.dfa.patch which was a cherry picked commit from upstream to fix a build issue in the last version but is now in the current version.

The other two patches still apply cleanly but are just updating offsets/context so we don't get too far away from latest.

Differential Revision: https://phabricator.services.mozilla.com/D202702
2024-02-26 22:50:28 +00:00
Stanca Serban
612f98281b Backed out 5 changesets (bug 1879873) for causing bustages in FFmpegLibWrapper.h. CLOSED TREE
Backed out changeset 1d36088485a4 (bug 1879873)
Backed out changeset 13edc1b203a7 (bug 1879873)
Backed out changeset 71824d88e1cd (bug 1879873)
Backed out changeset 5147903580b8 (bug 1879873)
Backed out changeset 0aad3393b572 (bug 1879873)
2024-02-26 20:08:18 +02:00
Paul Adenot
df300c9bf1 Bug 1879873 - Directly use tx instead of the older avfft interface. r=karlt,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202156
2024-02-26 16:07:09 +00:00