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

8370 Коммитов

Автор SHA1 Сообщение Дата
Updatebot e5f64cdb87 Bug 1783298 - Update opus to 997fdf54e781ae1c04dee42018f35388a04fe483 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D153817
2022-08-16 06:37:23 +00:00
Byron Campen c2e51c8618 Bug 1769802: Key JsepTransceiver by UUID instead of a simple integer index. r=mjf
The integer index we're replacing here is based on the order in which
transceivers were added. If we clone the JSEP engine for an sRD that happens to
result in the creation of a transceiver, and at the same time JS calls
addTransceiver, we have a situation where the sRD transceiver is added first
to the cloned JSEP engine, but the addTransceiver transceiver is added first
to the old JSEP engine, resulting in them having the same index. So, let's just
use a proper key for this stuff.

Differential Revision: https://phabricator.services.mozilla.com/D150169
2022-08-05 14:03:43 +00:00
Updatebot 760010bb23 Bug 1782272 - Update libjxl to 59f7d19e454bc5e1edd692187e1178f5926fdfd9 r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D153232
2022-08-01 10:27:42 +00:00
Updatebot 8f83cbb6c3 Bug 1780967 - Update opus to ab04fbb1b7d0b727636d28fc2cadb5df9febe515 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D152595
2022-07-26 23:58:19 +00:00
Updatebot 1ae6ab3048 Bug 1781120 - Update dav1d to a029d6892c5c39f4cda629d4a3b676ef2e8288f6 r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D152673
2022-07-26 20:30:04 +00:00
Chun-Min Chang d4fb3f7727 Bug 1778632 - Update dav1d to 6dc03eee53df62c1fb82a735f70a1b2b16d26bf0 r=mjf
Run `./mach vendor media/libdav1d/moz.yaml` to get the latest dav1d
version and update the revision number in moz.yaml.

According to the changes in *third_party/dav1d/src/meson.build*, the
*media/libdav1d/asm/moz.build* is updated as follows:

- Remove *{arm,x86}/refmvs_init.c*
- Remove *{arm,x86}/cdef_init_tmpl.c*
- Remove *{arm,x86}/filmgrain_init_tmpl.c*
- Remove *{arm,x86}/ipred_init_tmpl.c*
- Remove *{arm,x86}/itx_init_tmpl.c*
- Remove *{arm,x86}/loopfilter_init_tmpl.c*
- Remove *{arm,x86}/looprestoration_init_tmpl.c*
- Remove *{arm,x86}/mc_init_tmpl.c*
- Remove *x86/msac_init.c*
- Add *x86/cdef16_avx512.asm*
- Add *x86/loopfilter16_avx512.asm*

Differential Revision: https://phabricator.services.mozilla.com/D152335
2022-07-21 17:29:30 +00:00
Butkovits Atila faa5640935 Backed out 7 changesets (bug 1765480) for causing build bustages. CLOSED TREE
Backed out changeset ed10a546db4f (bug 1765480)
Backed out changeset 3a362936969a (bug 1765480)
Backed out changeset c0efff24b361 (bug 1765480)
Backed out changeset e393cf609b9b (bug 1765480)
Backed out changeset 2979c28076f7 (bug 1765480)
Backed out changeset 37cfee2c325e (bug 1765480)
Backed out changeset e3017c8a70af (bug 1765480)
2022-07-21 20:03:32 +03:00
Paul Adenot 05381defcb Bug 1765480 - Conditionally include bsf, codec and parser list with CONFIG_* macros. r=alwu
Depends on D150973

Differential Revision: https://phabricator.services.mozilla.com/D151996
2022-07-21 16:19:28 +00:00
Paul Adenot aa9cc96f06 Bug 1765480 - Update ffvpx to a recent ffmpeg version, reapply the in-tree patch, fix moz.build for the new files, fix the symbol files. r=alwu
Depends on D150972

Differential Revision: https://phabricator.services.mozilla.com/D150973
2022-07-21 16:19:27 +00:00
Paul Adenot 83e8e46967 Bug 1765480 - Regenerate config* files for ffvpx on all platforms needed, splitting off `config_components.h`. r=alwu
Depends on D150971

Differential Revision: https://phabricator.services.mozilla.com/D150972
2022-07-21 16:19:27 +00:00
Paul Adenot 956df4b40b Bug 1765480 - Overhaul ffvpx/README_MOZILLA. r=alwu
Depends on D150970

Differential Revision: https://phabricator.services.mozilla.com/D150971
2022-07-21 16:19:26 +00:00
Paul Adenot 8c21ae7ab0 Bug 1765480 - Remove the file ffvpx/FILES and prefer rsync to update ffvpx. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D150970
2022-07-21 16:19:26 +00:00
Updatebot b9b38ddcc4 Bug 1779862 - Update opus to c9d5bea13e3cb7381bfa897a45d8bab4e7b767a7 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D151965
2022-07-16 06:17:06 +00:00
Tom Ritter 8cc6e9c4f1 Bug 1779670: Fix the ImageLib Bugzilla Component in moz.yaml files r=gfx-reviewers,jrmuizel DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151892
2022-07-15 01:01:11 +00:00
Chun-Min Chang fc671ae0e5 Bug 1778635 - Apply local patches to libvpx r=webrtc-reviewers,mjf
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=only` as what
media/libvpx/README_MOZILLA said.

Differential Revision: https://phabricator.services.mozilla.com/D151869
2022-07-14 20:22:34 +00:00
Chun-Min Chang 911fe535a4 Bug 1778635 - Vendor libvpx r=webrtc-reviewers,mjf
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=none` as what
media/libvpx/README_MOZILLA said.

The update libvpx revision is 168b312774166958897f727196a59ee8ad423e78.

Differential Revision: https://phabricator.services.mozilla.com/D151868
2022-07-14 20:22:32 +00:00
Andi-Bogdan Postelnicu 72ba7fb691 Bug 1519636 - Reformat recent changes to the Google coding style. r=media-playback-reviewers,alwu
Updated with clang-format version 14.0.5 (taskcluster-cAkeFEZXQmihHYDO8Y4hRw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D151003
2022-07-14 08:10:07 +00:00
Chun-Min Chang c41df48ec2 Bug 1778635 - Apply .mk patches before generating .mozbuild r=tjr
The patches for *.mk files should be applied before running
`generate_sources_mozbuild` since the files in the generated .mozbuild
is based on the files listed in the *.mk

Depends on D150207

Differential Revision: https://phabricator.services.mozilla.com/D150208
2022-07-13 21:02:46 +00:00
Chun-Min Chang b2994c8b50 Bug 1778635 - Rename duplicate file name r=tjr
The latest version (v1.12.0-rc1) of the libvpx [1] adds some
optimizations with LSX instructions for loongson architecture [2], which
has same name files *quantize_lsx.c* in both vp8/encoder/loongarch and
vpx_dsp/loongarch directories, and so the `find_duplicates` check fails
in *generate_sources_mozbuild.sh*

To avoid the above failure, *quantize_lsx.c* under *loongarch* is
renamed to *quantize_intrin_lsx.c*.

[1] https://chromium.googlesource.com/webm/libvpx/
[2] https://bugs.chromium.org/p/webm/issues/detail?id=1755

Differential Revision: https://phabricator.services.mozilla.com/D150207
2022-07-13 21:02:46 +00:00
Updatebot 0d11f36609 Bug 1779353 - Update opus to e4a74ddeb9788eab84d10660e958fe706619892f r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D151685
2022-07-13 12:37:07 +00:00
Matthew Gregan 67034f0afb Bug 1778921 - Vendor update of libopus to upstream revision 24398751. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D151463
2022-07-12 03:44:01 +00:00
Matthew Gregan d2210dd93c Bug 1778921 - Update libopus build config to prepare for next update. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D151462
2022-07-12 03:44:00 +00:00
Sebastian Hengst 07c1520097 Bug 1774376 - update further metadata mapping files to Graphics Bugzilla components. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151558
2022-07-11 22:38:30 +00:00
Bogdan Szekely 7f3ff3f4d3 Backed out 2 changesets (bug 1778921) for causing build bustages. CLOSED TREE
Backed out changeset e587c9bc5b83 (bug 1778921)
Backed out changeset 04fa88f59192 (bug 1778921)
2022-07-11 13:01:04 +03:00
Matthew Gregan 4c27ba0312 Bug 1778921 - Vendor update of libopus to upstream revision 24398751. r=media-playback-reviewers,alwu
Depends on D151462

Differential Revision: https://phabricator.services.mozilla.com/D151463
2022-07-11 09:40:46 +00:00
Matthew Gregan f18139ee37 Bug 1778921 - Update libopus build config to prepare for next update. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D151462
2022-07-11 09:40:46 +00:00
David Shin 309272c871 Bug 1778533 - Remove accidental *.orig commits. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D151296
2022-07-07 17:48:38 +00:00
Paul Adenot dbb13352c1 Bug 1776429 - Compile and use ffvpx video decoder/fft code on Apple Silicon Macs. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D150250
2022-06-29 09:55:59 +00:00
Nico Grunbaum 584caf4081 Bug 1698699 - P6 - Move convert_from_argb.cc to non-unified build;r=mjf
Depends on D150305

Differential Revision: https://phabricator.services.mozilla.com/D150312
2022-06-28 16:29:40 +00:00
Nico Grunbaum 924c1c797c Bug 1698699 - P5 - Update vendored libyuv;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150305
2022-06-28 16:29:39 +00:00
Nico Grunbaum 687962e932 Bug 1698699 - P4 - update line numbers for fix_build_errors.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150304
2022-06-28 16:29:39 +00:00
Nico Grunbaum 84af2c76e0 Bug 1698699 - P3 - remove no longer used allow_disabling_asm_avx2.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150303
2022-06-28 16:29:39 +00:00
Nico Grunbaum 5f9e40744a Bug 1698699 - P2 - remove absorbed add_H444ToARGB.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150302
2022-06-28 16:29:38 +00:00
Nico Grunbaum e2dc948671 Bug 1698699 - P1 - remove absorbed bug_1491848 cherry-picks;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150301
2022-06-28 16:29:38 +00:00
Iulian Moraru de7e722be8 Backed out 7 changesets (bug 1698699) for causing bp-hybrid bustages on scale_yuv_argb. CLOSED TREE
Backed out changeset b2606be8a0cf (bug 1698699)
Backed out changeset 97f5dde2d55e (bug 1698699)
Backed out changeset edf2a2cb7803 (bug 1698699)
Backed out changeset 0cc8a5a2d484 (bug 1698699)
Backed out changeset 95c49f3cfc03 (bug 1698699)
Backed out changeset 7016afe1f7f4 (bug 1698699)
Backed out changeset f0da7c35e088 (bug 1698699)
2022-06-28 01:47:56 +03:00
Nico Grunbaum 726a4f50bb Bug 1698699 - P6 - Move convert_from_argb.cc to non-unified build;r=mjf
Depends on D150305

Differential Revision: https://phabricator.services.mozilla.com/D150312
2022-06-27 20:40:04 +00:00
Nico Grunbaum 2e4d1b5a88 Bug 1698699 - P5 - Update vendored libyuv;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150305
2022-06-27 20:40:03 +00:00
Nico Grunbaum 9f4d58ec92 Bug 1698699 - P4 - update line numbers for fix_build_errors.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150304
2022-06-27 20:40:03 +00:00
Nico Grunbaum 1cbdbb0065 Bug 1698699 - P3 - remove no longer used allow_disabling_asm_avx2.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150303
2022-06-27 20:40:02 +00:00
Nico Grunbaum 44702c3cfa Bug 1698699 - P2 - remove absorbed add_H444ToARGB.patch;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150302
2022-06-27 20:40:02 +00:00
Nico Grunbaum 8adcfe58f3 Bug 1698699 - P1 - remove absorbed bug_1491848 cherry-picks;r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D150301
2022-06-27 20:40:01 +00:00
serge-sans-paille cda49eb83a Bug 1775152 - Cleanup media/webrtc/ includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D149804
2022-06-24 07:15:12 +00:00
Mike Hommey 5a28556ccd Bug 1768997 - Remove unused variables in av1_fuzzer.cpp. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D146152
2022-05-13 00:44:55 +00:00
Ryan VanderMeulen 638f98027d Bug 1761275 - Fix WebP crash on OOM. r=aosmond
Backport of upstream commit:
2de4b05a56

Differential Revision: https://phabricator.services.mozilla.com/D145815
2022-05-11 12:38:30 +00:00
Tom Ritter d018d41bad Bug 1767843 - Update dav1d to ffb59680356fd210816cf9e46d9d023ade1f4d5a r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D145913
2022-05-10 19:05:16 +00:00
Kagami Sascha Rosylight 0d3b3ecabe Bug 1767432 - Update libjxl to 192ddd r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D145332
2022-05-04 00:22:14 +00:00
Tom Ritter 527680376d Bug 1767335: Fix mach vendor pattern replacement r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D145360
2022-05-03 19:09:12 +00:00
Nika Layzell 052cba0853 Bug 1738106 - Part 3: Switch to TaskQueue::Create, r=xpcom-reviewers,necko-reviewers,media-playback-reviewers,dragana,alwu,barret
In future parts, TaskQueue will require extra initialization to be performed
which cannot happen in a constructor, as it takes references to the TaskQueue
object itself, which will require the introduction of a helper method. This
patch switches all callers of the TaskQueue constructor to use the new method.

Differential Revision: https://phabricator.services.mozilla.com/D142604
2022-05-02 20:37:34 +00:00
Byron Campen 288124e4a5 Bug 1611957: Make EncodingConstraints.maxFps a Maybe instead of having 0 represent no limit. r=ng
0 is a valid limit in setParameters according to the spec. For now, we treat
max-fr=0 in SDP as no limit, since that is what we have been doing.

Differential Revision: https://phabricator.services.mozilla.com/D144009
2022-04-26 14:07:37 +00:00
Mike Hommey 49275714a9 Bug 1766347 - Fix comma warnings in Windows builds. r=media-playback-reviewers,bryce
media/gmp-clearkey/0.1/WMFH264Decoder.cpp(145,24): error: possible misuse of comma operator here [-Werror,-Wcomma]
  while (type = nullptr,
                       ^
media/gmp-clearkey/0.1/WMFH264Decoder.cpp(145,10): note: cast expression to void to silence warning
  while (type = nullptr,
         ^~~~~~~~~~~~~~
         static_cast<void>( )

Differential Revision: https://phabricator.services.mozilla.com/D144641
2022-04-26 02:04:58 +00:00
Tom Ritter e726a40dcf Bug 1763991: Re-orient patches to align with mach vendor r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D143632
2022-04-20 16:18:24 +00:00
Tom Ritter 5f0238c1f0 Bug 1763991: Let Updatebot update libvpx r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D143631
2022-04-20 16:18:19 +00:00
Tom Ritter aae5d518f8 Bug 1762642: Add libopus to mach vendor r=kinetik,jewilde
This makes some ./mach vendor improvements needed:
 - Adds a replace-in-file-regex action
 - Allows you to skip copying the temporary extract directory
   so that a script can do it
 - Removes 'commit' from the look-in-moz.yaml-for-release match

Differential Revision: https://phabricator.services.mozilla.com/D142720
2022-04-15 18:17:39 +00:00
Tom Ritter fc564bdf93 Bug 1762642: Switch libopus' moz.build to double quotes r=kinetik
This makes it significantly easier to do regex matches
inside it when the pattern is inside a yaml file

Differential Revision: https://phabricator.services.mozilla.com/D142719
2022-04-15 18:17:39 +00:00
Tom Ritter d191cdd8bc Bug 1761335: If a version update does not modify any local files, bail r=jewilde
This change does a few things

 - Moves get_full_path from a function-local function to
   a class member
 - Makes yaml_file a class member so I don't need to pass
   it everywhere
 - Creates a new moz.yaml file directive 'generated'
 - Adds that directive to libdav1d
 - Detects if any files (other than generated ones) were
   modified by an update; and if not - do not update the
   moz.yaml. Exit with -2 so Updatebot can detect it.

Differential Revision: https://phabricator.services.mozilla.com/D141994
2022-04-15 18:17:38 +00:00
Tom Ritter ff61b6f5ba Bug 1762651: Update libdav1d assignee r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D143057
2022-04-15 11:15:50 +00:00
Nika Layzell 4fccdde58f Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-14 02:09:22 +00:00
Paul Adenot a5b1ff084e Bug 1764574 - Update libcubeb to 708f52c. r=cubeb-reviewers,chunmin
Depends on D143612

Differential Revision: https://phabricator.services.mozilla.com/D143613
2022-04-13 17:23:39 +00:00
Tom Ritter 3a556a6c17 Bug 1761534: Clean up libpng's moz.yaml r=jewilde
Depends on D142123

Differential Revision: https://phabricator.services.mozilla.com/D142124
2022-04-13 14:03:45 +00:00
Tom Ritter 42699cdd90 Bug 1762614: Remove unneccessary files r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D142718
2022-04-11 16:51:56 +00:00
Tom Ritter 0b2067c090 Bug 1762614: Update libopus to 2654707e86cc94413998976d179b2ab4a2aa3114 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D142717
2022-04-11 16:51:56 +00:00
Johann ad9f894b55 Bug 1759324 - update libvpx patches r=bryce
Adjust for minor offsets since v1.8.2

Differential Revision: https://phabricator.services.mozilla.com/D140926
2022-04-11 08:54:40 +00:00
Johann 1a131bad22 Bug 1759324 - update libvpx to v1.11.0 r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D140925
2022-04-11 08:54:39 +00:00
Cosmin Sabou 97d21fa167 Backed out 5 changesets (bug 1761511) for causing build bustages. CLOSED TREE
Backed out changeset 687de8c00013 (bug 1761511)
Backed out changeset 88e6cf5c70e5 (bug 1761511)
Backed out changeset 4c40758f54f1 (bug 1761511)
Backed out changeset 8a18abcccda4 (bug 1761511)
Backed out changeset 1afb1f32a6a4 (bug 1761511)
2022-04-07 00:13:00 +03:00
Nika Layzell f1c3a8f87c Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-06 20:45:08 +00:00
Iulian Moraru 3c8b65496c Backed out 2 changesets (bug 1762614) for causing android arm build bustages. CLOSED TREE
Backed out changeset f863c6888fe7 (bug 1762614)
Backed out changeset 26d845c1cc15 (bug 1762614)
2022-04-06 19:37:23 +03:00
Tom Ritter 0b84c4a248 Bug 1762614: Remove unneccessary (?) files r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D142718
2022-04-06 14:13:24 +00:00
Tom Ritter cb8d2bcb88 Bug 1762614: Update libopus to 2654707e86cc94413998976d179b2ab4a2aa3114 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D142717
2022-04-06 14:13:24 +00:00
Matthew Gregan d4353d63a9 Bug 1762531 - Switch media/libnestegg to mach vendor model. r=bryce,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D142652
2022-04-06 01:17:10 +00:00
Byron Campen 571c7afb5b Bug 1616937: Remove main thread parameters/members. r=mjf
This ability to set the main thread has never been used, and in many cases is
not possible due to things being cycle collected (and therefore
main-thread-only).

Differential Revision: https://phabricator.services.mozilla.com/D142382
2022-04-05 18:39:13 +00:00
Byron Campen d15909a769 Bug 1616937: Move RTCRtpSender to c++ r=mjf,webidl,smaug
Also involves moving identity-related stuff to MediaPipelineTransmit.

Differential Revision: https://phabricator.services.mozilla.com/D141770
2022-04-05 18:39:13 +00:00
Tom Ritter bff6a5c9a7 Bug 1761075: Update version.h for dav1d when vendoring r=jbauman,jewilde
Differential Revision: https://phabricator.services.mozilla.com/D141890
2022-04-01 16:45:42 +00:00
Matthew Gregan bef5976c4e Bug 1762104 - Switch media/libcubeb to mach vendor model. r=cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D142521
2022-03-31 10:13:59 +00:00
Chun-Min Chang d75068e0ab Bug 1762041 - Update libcubeb to d97fea4 r=cubeb-reviewers,kinetik
Pick commits:
d97fea4 - Switch device only when the users don't specifiy a particular device (#697)
bdf2837 - Don't reset device if DISABLE_DEVICE_SWITCHING is set
2f50db3 - Fire error callback when reinit fails
4bca265 - Make sure input latency is larger than zero
2d64fff - Return matched device from wasapi_find_bt_handsfree_output_device
f9927c4 - Rename function
8a3d20b - highlight type cast
342ff3c - Avoid duplicate GetDevicePeriod call
d292915 - Call wasapi_create_device only when necessary
016e72e - Don't reset input_bluetooth_handsfree when setting output
86210a1 - Group related lines
1e13faa - Get default_period only when we need it

Differential Revision: https://phabricator.services.mozilla.com/D142365
2022-03-30 01:17:49 +00:00
Nordin Abouzahra 82b9d72e94 Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

Removed superfluous set_define()s as libcubeb's moz.build does the necessary
`DEFINES['...']` assignments for each backend.

In addition logic for finer control of audio backend selection on Android was
added. One can now specify aaudio, opensl or both (which is the default).

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-28 20:48:52 +00:00
Timur Valeev afaa2381ce Bug 1759846 - the 'empty' method should be used to check for emptiness. r=sylvestre
In ClearKeyUtils.cpp: the 'empty' method should be used to check
for emptiness instead of 'size'

Differential Revision: https://phabricator.services.mozilla.com/D141956
2022-03-24 17:08:50 +00:00
Paul Adenot f99045f6bf Bug 1760774 - Update libcubeb to revision 5a2a20. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D141756
2022-03-23 10:56:55 +00:00
Iulian Moraru 866f261a7d Backed out changeset c25c591841cd (bug 1351378) for causing multiple failures. CLOSED TREE 2022-03-22 19:37:46 +02:00
Nordin Abouzahra 2b0b1c90db Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

***
Bug 1351378 - Address linter error. r?mhentges,glandium

***
Bug 1351378 - Remove superfluous set_define(). r?mhentges,glandium

libcubeb's moz.build does the necessary `DEFINES['...']` assignments for each
backend. Remove superfluous set_define().

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-22 17:02:05 +00:00
june wilde a3f7403679 Bug 1760719 - Update libjxl to 318c592d98b97d103941b90d47107f06a10c71da; r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D141716
2022-03-22 10:19:20 +00:00
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
Jon Bauman 72e5dabd5e Bug 1758482 - Update dav1d to new version 28a9c46e1c36540d3276299f2e284ece1d2386be from 2022-02-04T23:02:17.000-03:00. r=media-playback-reviewers,padenot
Normally updatebot would create a revision, allowing me to review it single-handedly, but https://phabricator.services.mozilla.com/D140519 was a failure because of changes updatebot didn't know how to handle, so I just need **someone** to approve the update to get this landed. This has a bit of priority since it's blocking https://bugzilla.mozilla.org/show_bug.cgi?id=1757971, which we want to get uplifted for Fx99.

Differential Revision: https://phabricator.services.mozilla.com/D140921
2022-03-14 17:17:59 +00:00
Kagami Sascha Rosylight 2765398421 Bug 1757483 - Update libjxl and highway r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D139919
2022-03-01 12:17:02 +00:00
Norisz Fay b4d61b9a3f Backed out changeset f87312b156f6 (bug 1757483) for causing build bustages on highway_export.h CLOSED TREE 2022-03-01 13:31:39 +02:00
Kagami Sascha Rosylight 05225c58b9 Bug 1757483 - Update libjxl and highway r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D139919
2022-03-01 11:05:24 +00:00
Matthew Gregan 746b1aae49 Bug 1757475 - Update libcubeb to 3a04ed29. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D139892
2022-03-01 04:57:02 +00:00
Mike Hommey 526e84fa47 Bug 1757122 - Replace unqualified uses of std::move. r=xpcom-reviewers,media-playback-reviewers,mccr8,bryce
Clang trunk added a warning about unqualified uses of std::move.
https://reviews.llvm.org/D119670

Differential Revision: https://phabricator.services.mozilla.com/D139681
2022-03-01 04:15:26 +00:00
Andrew Osmond 8abf68bca1 Bug 1757308 - Update libjpeg-turbo to 2.1.3. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D139857
2022-02-28 19:01:32 +00:00
Nils Ohlmeier 1f04e76928 Bug 1754027: disable SSRC changes for bundled audio RTP r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D138244
2022-02-16 00:02:04 +00:00
june wilde 8b3dc77005 Bug 1741872 - Add libtheora to libraries Updatebot can update; r=tjr
Depends on D125337

Differential Revision: https://phabricator.services.mozilla.com/D131499
2022-02-15 17:07:53 +00:00
Byron Campen a9797febb2 Bug 1402997: Move PCMedia's functionality to PCImpl. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D138543
2022-02-15 15:37:02 +00:00
june wilde 318e56b786 Bug 1741873 - Update libtheora to latest; r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D131500
2022-02-14 21:08:35 +00:00
june wilde 8b8d16f20c Bug 1754067 - Update libjxl to 4322679b1c418addc2284c5ea84fc2c3935b4a75; r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D138418
2022-02-14 17:57:57 +00:00
Tom Ritter 0c73045ce8 Bug 1754070: Update libdav1d to b562b7f648e26e64fae892495527b5b275d53183 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D138068
2022-02-13 02:58:26 +00:00
Andreas Pehrson ff6992a7a4 Bug 1748333 - Add DeletionPolicy to TaskQueueWrapper. r=ng
TaskQueueWrapper is used in two ways:
- Through the ref-counted CallWorkerThread, which is, well, ref-counted, and
  passed around gecko as an AbstractThread. The lifetime of this task queue is
  managed by the ref-count and it may be deleted on any thread (bug 1748333...).
- Through the TaskQueueFactory for libwebrtc's internal use. libwebrtc manages
  the lifetime of these task queues explicitly, and does not delete them on the
  task queue itself.

This patch adds a DeletionPolicy template parameter to TaskQueueWrapper to put
flag up front whether a TaskQueueWrapper will block shutdown or not.

For the former case above we use DeletionPolicy::NonBlocking and for the latter
DeletionPolicy::Blocking.

Differential Revision: https://phabricator.services.mozilla.com/D137292
2022-02-09 01:00:38 +00:00
Byron Campen [:bwc] 17426d80c0 Bug 1253706: Create and use MediaTransportHandler::SetIceConfig. r=mjf
Used to be built into CreateIceCtx, but needed to be stand-alone so it
could be called subsequently. Necessitated adding some members so pref-based
config state could be saved for later use.

Differential Revision: https://phabricator.services.mozilla.com/D135365
2022-02-08 23:37:56 +00:00
Cristian Tuns 5961fb265a Backed out 17 changesets (bug 1253706, bug 1752896) for causing Gtest failures CLOSED TREE
Backed out changeset ff344a02b277 (bug 1253706)
Backed out changeset 91a32bbc9193 (bug 1253706)
Backed out changeset fe16d24ab482 (bug 1253706)
Backed out changeset 145e94926991 (bug 1253706)
Backed out changeset ee68db9eb695 (bug 1253706)
Backed out changeset 47e6ed20b5af (bug 1253706)
Backed out changeset 4c2f46c1235c (bug 1253706)
Backed out changeset 4c158f767584 (bug 1253706)
Backed out changeset 8efacf071abb (bug 1253706)
Backed out changeset 61e1c3949250 (bug 1253706)
Backed out changeset 77f4be697b38 (bug 1253706)
Backed out changeset 095ce58afb6a (bug 1253706)
Backed out changeset 180fd6a03442 (bug 1253706)
Backed out changeset 2a227c50a598 (bug 1253706)
Backed out changeset 65e035023ca2 (bug 1253706)
Backed out changeset f16083aa8183 (bug 1253706)
Backed out changeset cc684f283be4 (bug 1752896)
2022-02-07 11:45:03 -05:00
Byron Campen [:bwc] bec4c8c0a2 Bug 1253706: Create and use MediaTransportHandler::SetIceConfig. r=mjf
Used to be built into CreateIceCtx, but needed to be stand-alone so it
could be called subsequently. Necessitated adding some members so pref-based
config state could be saved for later use.

Differential Revision: https://phabricator.services.mozilla.com/D135365
2022-02-07 15:26:04 +00:00
june wilde 8377018ba2 Bug 1753050 - Add libwebp to libraries Updatebot can update; r=tjr,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D137696
2022-02-04 14:18:35 +00:00
Andreas Pehrson d78a1f4edd Bug 1225722 - Implement getters in the conduits for currently active payload types. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D135866
2022-02-01 23:12:28 +00:00
Andreas Pehrson a8d8c8c97c Bug 1225722 - Add sdpFmtpLine to JsepCodecDescription. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D136627
2022-02-01 23:12:25 +00:00
Andreas Pehrson 9aba840cb7 Bug 1225722 - Create JsepCodecDescription instances through factory methods. r=bwc
This is mainly to avoid repeating the default parameters throughout the tree.

Differential Revision: https://phabricator.services.mozilla.com/D136626
2022-02-01 23:12:25 +00:00
Andreas Pehrson f9b9fbaf47 Bug 1225722 - Make the MediaType in JsepCodecDescription instances static. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D136625
2022-02-01 23:12:25 +00:00
Andreas Pehrson ec4ddc911d Bug 1225722 - jsep_track_unittest: Only log sdp and codecs on failure. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D136624
2022-02-01 23:12:24 +00:00
Andreea Pavel fe800a7fd2 Merge autoland to mozilla-central a=merge 2022-02-01 23:31:55 +02:00
Marian-Vasile Laza 66faa883a0 Backed out changeset df3acbea677e (bug 1748333) as requested by the dev. a=backout 2022-02-01 19:55:07 +02:00
Andreas Pehrson 5a90fa1684 Bug 1748333 - Add DeletionPolicy to TaskQueueWrapper. r=ng
TaskQueueWrapper is used in two ways:
- Through the ref-counted CallWorkerThread, which is, well, ref-counted, and
  passed around gecko as an AbstractThread. The lifetime of this task queue is
  managed by the ref-count and it may be deleted on any thread (bug 1748333...).
- Through the TaskQueueFactory for libwebrtc's internal use. libwebrtc manages
  the lifetime of these task queues explicitly, and does not delete them on the
  task queue itself.

This patch adds a DeletionPolicy template parameter to TaskQueueWrapper to put
flag up front whether a TaskQueueWrapper will block shutdown or not.

For the former case above we use DeletionPolicy::NonBlocking and for the latter
DeletionPolicy::Blocking.

Differential Revision: https://phabricator.services.mozilla.com/D137292
2022-01-31 21:44:02 +00:00
june wilde 51f5424c3d Bug 1687541 - Add libpng to libraries Updatebot can update; r=tjr,aosmond
Depends on D125337

Differential Revision: https://phabricator.services.mozilla.com/D104554
2022-02-01 15:54:23 +00:00
Andrew Osmond 943733bcc3 Bug 1752025 - Update libwebp to version 1.2.2. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D136960
2022-01-25 23:52:18 +00:00
Marian-Vasile Laza 02bd3e02b7 Merge autoland to mozilla-central. a=merge 2022-01-24 23:40:54 +02:00
Cosmin Sabou d0fe5b6a1c Bug 1750663 - Fix linting opt black failure. a=lint-fix 2022-01-24 12:34:57 +02:00
stransky 7b0c28a7d1 Bug 1750663 [Linux] Move mozva library and va headers to media directory r=alwu,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D136596
2022-01-24 10:19:51 +00:00
stransky aba6d7beef Bug 1743750 Add missing VA-API 1.0 function wrappers r=alwu
Depends on D136473

Differential Revision: https://phabricator.services.mozilla.com/D136474
2022-01-22 17:44:11 +00:00
stransky 37704af5ee Bug 1743750 Build bundled ffvpx with VA-API 1.0 support r=alwu
Depends on D136472

Differential Revision: https://phabricator.services.mozilla.com/D136473
2022-01-22 17:44:10 +00:00
stransky ae8cfbc77e Bug 1749852 [Linux] Don't build VA-API with MOZ_FFVPX_AUDIOONLY r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D135827
2022-01-17 08:40:41 +00:00
stransky a56325e8da Bug 1744254 Export VA library routines needed for VA-API formats enumeration r=alwu
Depends on D135131

Differential Revision: https://phabricator.services.mozilla.com/D135132
2022-01-17 08:24:01 +00:00
Updatebot 4b13ebc817 Bug 1749419 - Update dav1d to b562b7f648e26e64fae892495527b5b275d53183 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D135568
2022-01-16 00:40:27 +00:00
Iulian Moraru e545b0857f Backed out 5 changesets (bug 1744254) for causing build bustages on libxul.so. CLOSED TREE
Backed out changeset 0e7e39e68cb9 (bug 1744254)
Backed out changeset 16337f126487 (bug 1744254)
Backed out changeset 72c3b9812b35 (bug 1744254)
Backed out changeset 181370e93cab (bug 1744254)
Backed out changeset 3f107a153ad9 (bug 1744254)
2022-01-14 04:15:31 +02:00
stransky 16f046ffc6 Bug 1744254 Export VA library routines needed for VA-API formats enumeration r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135132
2022-01-13 22:14:25 +00:00
Kagami Sascha Rosylight edcdc5567a Bug 1749780 - Update libjxl to 9a74bd70b7932750deb78a8aebd6e041ce7f8b01 r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D135769
2022-01-13 12:49:48 +00:00
Butkovits Atila 288e47841c Backed out changeset fe2b37539282 (bug 1749780) for causing build bustages. CLOSED TREE 2022-01-13 04:12:03 +02:00
Kagami Sascha Rosylight 87d138d11d Bug 1749780 - Update libjxl r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D135769
2022-01-13 01:54:46 +00:00
stransky 2eb6e63d20 Bug 1745285 Build AV1 decoding support in ffvpx r=alwu,media-playback-reviewers
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-12 19:33:45 +00:00
stransky ac46150730 Bug 1745285 Claim correct libdav1d version r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135033
2022-01-12 19:33:44 +00:00
Norisz Fay 6f9865bac1 Backed out 4 changesets (bug 1745285) for causing av1 reftest failures
Backed out changeset 7656625bf5bf (bug 1745285)
Backed out changeset 96f726e72941 (bug 1745285)
Backed out changeset 9ccc8b7b3b73 (bug 1745285)
Backed out changeset b723d23e9056 (bug 1745285)
2022-01-11 22:56:14 +02:00
stransky 03ec7b6a39 Bug 1745285 Build AV1 decoding support in ffvpx r=alwu
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-11 18:42:27 +00:00
stransky 4354b92057 Bug 1745285 Claim correct libdav1d version r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135033
2022-01-11 18:42:26 +00:00
Cristian Tuns 0374f3e145 Backed out 4 changesets (bug 1745285) for causing build bustages CLOSED TREE
Backed out changeset 77ab7af01642 (bug 1745285)
Backed out changeset ff4b2e9ee068 (bug 1745285)
Backed out changeset 817eb128f1ff (bug 1745285)
Backed out changeset c1c5a7d9a805 (bug 1745285)
2022-01-11 10:30:15 -05:00
stransky ddd91c35ec Bug 1745285 Build AV1 decoding support in ffvpx r=alwu
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-11 13:24:57 +00:00
stransky f1204ddf17 Bug 1745285 Claim correct libdav1d version r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135033
2022-01-11 13:24:56 +00:00
Matthew Gregan b375771f7a Bug 1749122 - Fix nullptr deref in cubeb wasapi default devices query. a=aryx
Differential Revision: https://phabricator.services.mozilla.com/D135447
2022-01-08 19:53:45 +00:00
Matthew Gregan d25b03e77b Bug 1749065 - Fix libcubeb build on mingw. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D135427
2022-01-08 05:20:05 +00:00
Matthew Gregan 5caa1a4d96 Bug 1748948 - Update cubeb to 3d598eff. r=cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D135306
2022-01-07 19:20:31 +00:00
Andreas Pehrson 6f3e18ab53 Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald
The Runnable markers in the profilers are handy, but miss many types of
runnables. This includes most of those that wrap another runnable and run that
at a (possibly) later time.

AbstractThread, TaskDispatcher and TaskQueue does this for e.g. tail dispatched
tasks.

TaskQueueWrapper does this when wrapping webrtc tasks (and Mozilla Runnables) to
be run in a Mozilla TaskQueue with some overhead on the stack.

DelayedRunnable wraps a runnable to be run after a timeout.

It would perhaps be better in many cases to ignore the intermediate runnables,
but I haven't seen a straight forward way to achieve this.

More detailed data could be added on a case by case basis, for instance the
delay for a DelayedRunnable (incl. actual vs. target delay) or the scope of a
task in which a tail-dispatched runnable was dispatched. But this is also true
for the status quo (for instance the time from dispatch to run) so I leave these
ideas as future work.

Differential Revision: https://phabricator.services.mozilla.com/D135027
2022-01-05 15:26:24 +00:00
Butkovits Atila 64c8533f75 Backed out 7 changesets (bug 1746361, bug 1748280, bug 1746347) for causing failures at browser_interaction-between-interfaces.js. CLOSED TREE
Backed out changeset eccba94506f0 (bug 1748280)
Backed out changeset baf39ae53772 (bug 1748280)
Backed out changeset 775843562f7e (bug 1748280)
Backed out changeset 0987c68e9683 (bug 1748280)
Backed out changeset 58dd008520da (bug 1746361)
Backed out changeset 6f9e800877a6 (bug 1746347)
Backed out changeset f78e794a9c2f (bug 1746347)
2022-01-05 13:53:57 +02:00
Andreas Pehrson 0f53cfb803 Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald
The Runnable markers in the profilers are handy, but miss many types of
runnables. This includes most of those that wrap another runnable and run that
at a (possibly) later time.

AbstractThread, TaskDispatcher and TaskQueue does this for e.g. tail dispatched
tasks.

TaskQueueWrapper does this when wrapping webrtc tasks (and Mozilla Runnables) to
be run in a Mozilla TaskQueue with some overhead on the stack.

DelayedRunnable wraps a runnable to be run after a timeout.

It would perhaps be better in many cases to ignore the intermediate runnables,
but I haven't seen a straight forward way to achieve this.

More detailed data could be added on a case by case basis, for instance the
delay for a DelayedRunnable (incl. actual vs. target delay) or the scope of a
task in which a tail-dispatched runnable was dispatched. But this is also true
for the status quo (for instance the time from dispatch to run) so I leave these
ideas as future work.

Differential Revision: https://phabricator.services.mozilla.com/D135027
2022-01-05 10:54:20 +00:00
Mike Hommey 1acc37c7a6 Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-30 20:56:43 +00:00
Iulian Moraru b469802d84 Backed out changeset 7f9b4b6191ad (bug 1747756) for causing multiple failures. CLOSED TREE 2021-12-30 01:59:26 +02:00
Mike Hommey cb50a5444f Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-29 22:18:52 +00:00
stransky 18d9c6d0ee Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-24 19:41:37 +00:00
stransky a3dc09da29 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-24 19:41:36 +00:00
stransky c9604382fa Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-24 19:41:35 +00:00
Cosmin Sabou 28706cdf1a Backed out 4 changesets (bug 1652958, bug 1745284) for causing osx libavutil related build bustages. CLOSED TREE
Backed out changeset 5b0b786c19a2 (bug 1745284)
Backed out changeset 0128019f5e7d (bug 1652958)
Backed out changeset 0539b77bcb0b (bug 1652958)
Backed out changeset 008fd283bb70 (bug 1652958)
2021-12-23 04:30:18 +02:00
stransky a79dc0a99d Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-22 21:52:14 +00:00
stransky db65aaddb1 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-22 21:52:13 +00:00
stransky 0151c0fb7f Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-22 21:52:13 +00:00
stransky 07c3bd159f Bug 1745226 Update bundled libva headers to 1.13 in order to allow VA-API playback of AV1 r=alwu
Depends on D133419

Differential Revision: https://phabricator.services.mozilla.com/D133420
2021-12-22 13:20:52 +00:00
Iulian Moraru 258b6fac74 Backed out 5 changesets (bug 1652958, bug 1745226, bug 1745284) for causing multiple build bustages. CLOSED TREE
Backed out changeset 71c2b56628e2 (bug 1745284)
Backed out changeset 9a5c5dba4869 (bug 1652958)
Backed out changeset 851e98f06010 (bug 1652958)
Backed out changeset d24922f60614 (bug 1652958)
Backed out changeset 2c67764e3a80 (bug 1745226)
2021-12-22 14:02:09 +02:00
stransky 30f7cfac81 Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-22 06:45:48 +00:00
stransky 3dd5960eb4 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-22 06:45:47 +00:00
stransky 00194d2ef1 Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-22 06:45:47 +00:00
stransky 4d33553f15 Bug 1745226 Update bundled libva headers to 1.13 in order to allow VA-API playback of AV1 r=alwu
Depends on D133419

Differential Revision: https://phabricator.services.mozilla.com/D133420
2021-12-22 06:45:46 +00:00
Gabriele Svelto 2793748f11 Bug 1728436 - Added libasound2 dependency to the sysroot r=glandium
This is required to build the midir crate on Linux. The Dockerfile change is
needed to run the just built xpcshell executable on the build host.

Differential Revision: https://phabricator.services.mozilla.com/D124641
2021-12-21 11:34:52 +00:00
Updatebot c44e7f97c6 Bug 1744639 - Update dav1d to 7b99b0e17fbd86f0847684798b182f9122545580 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D133012
2021-12-18 02:56:07 +00:00
Andreas Pehrson 75b273a21d Bug 1744081 - Move VideoConduit::Shutdown asyncness ownership into VideoConduit. r=bryce,ng
Differential Revision: https://phabricator.services.mozilla.com/D133933
2021-12-17 20:34:18 +00:00
Paul Adenot f80d2b4827 Bug 1745912 - Use the same type in IDL and implementation file for MediaTransportHandler. r=pehrsons
Depends on D133733

Differential Revision: https://phabricator.services.mozilla.com/D133737
2021-12-14 14:21:16 +00:00
Butkovits Atila 3f4f5734f2 Backed out changeset b6b0a24a69e9 (bug 1744639) for causing Updatebot bustages. CLOSED TREE 2021-12-13 21:33:46 +02:00
Updatebot 2250b7eaf0 Bug 1744639 - Update dav1d to 7b99b0e17fbd86f0847684798b182f9122545580 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D133012
2021-12-13 19:04:55 +00:00
Andrew Osmond e5334f07ce Bug 1745177 - Update libjpeg-turbo to 2.1.2. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D133349
2021-12-09 21:39:26 +00:00
Alexandru Michis 68d717d134 Backed out changeset 76491e4adee2 (bug 1745177) for causing bustages in jchuff-neon.c
CLOSED TREE
2021-12-09 18:36:19 +02:00
Andrew Osmond 7a8556b176 Bug 1745177 - Update libjpeg-turbo to 2.1.2. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D133349
2021-12-09 15:48:37 +00:00
Paul Adenot 4c371ab30f Bug 1744973 - Fix build system after cubeb commit 9937d0bb5. r=cubeb-reviewers,chunmin
Depends on D133197

Differential Revision: https://phabricator.services.mozilla.com/D133198
2021-12-08 17:43:11 +00:00
Paul Adenot 8846c0abf1 Bug 1744973 - Update libcubeb to revision 773f16b7e. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D133197
2021-12-08 17:43:11 +00:00
Kagami Sascha Rosylight 59265056dd Bug 1743793 - Update libjxl and highway r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D132952
2021-12-06 23:43:32 +00:00
Byron Campen [:bwc] 6c48e39691 Bug 1744098: Test-case for bug. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D132827
2021-12-03 21:12:11 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Andreas Pehrson a3bf3e72b1 Bug 1741118 - Allow the MainAsCurrent TaskQueueWrapper to be deleted on itself. r=ng
This is prohibited for regular TaskQueueWrappers, as Delete must join (i.e.
block) the thread after initiating shutdown. But MainAsCurrent is special as
main thread doesn't go away just because MainAsCurrent goes away. It is also
gtest-only, and thus tightly coupled with MediaPipelineTest behavior.

Differential Revision: https://phabricator.services.mozilla.com/D132221
2021-11-30 17:37:40 +00:00
Sylvestre Ledru b637c6d142 Bug 1743088 - omx: Fix some encoding issue r=RyanVM DONTBUILD
Depends on D132232

Differential Revision: https://phabricator.services.mozilla.com/D132233
2021-11-29 15:05:34 +00:00
june wilde 420b1ebb70 Bug 1730394 - Use vendoring url in mach vendor and update moz.yamls accordingly; r=tjr
Depends on D124799

Differential Revision: https://phabricator.services.mozilla.com/D125337
2021-11-18 16:48:51 +00:00
Andreas Pehrson 3068d523b2 Bug 1738931 - Unset remote SSRC in a direct task (stable state) to avoid re-entrancy. r=bwc
...rather than by unsetting the old remote ssrc on all other conduits that
already have it set.

With this patch we don't risk re-entrancy into UnsetRemoteSSRC (CallWrapper,
VideoConduit) or SetRemoteSSRCConfig (VideoConduit).

Differential Revision: https://phabricator.services.mozilla.com/D130270
2021-11-18 09:32:33 +00:00
Norisz Fay 0c12096cf2 Backed out 2 changesets (bug 1738931) for causing mochitest failures on VideoConduit and WatchManager CLOSED TREE
Backed out changeset fbaeb0434e8a (bug 1738931)
Backed out changeset 3964c080fafc (bug 1738931)
2021-11-11 14:06:57 +02:00
Andreas Pehrson 0c0887a75b Bug 1738931 - Unset remote SSRC in a direct task (stable state) to avoid re-entrancy. r=bwc
...rather than by unsetting the old remote ssrc on all other conduits that
already have it set.

With this patch we don't risk re-entrancy into UnsetRemoteSSRC (CallWrapper,
VideoConduit) or SetRemoteSSRCConfig (VideoConduit).

Differential Revision: https://phabricator.services.mozilla.com/D130270
2021-11-11 11:10:48 +00:00
Kagami Sascha Rosylight 75108aa7bb Bug 1740415 - Update libjxl to 9e8c576 r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D130862
2021-11-10 13:32:14 +00:00
Marian-Vasile Laza 6c8d325e61 Backed out changeset 203314c3b2fa (bug 1738736) for causing AV1 video crashes (bug 1739910). a=backout 2021-11-08 11:52:27 +02:00
Updatebot 8e86ac27ee Bug 1738736 - Update dav1d to new version 3fd2ad938ace8d2d0ab86e4108d46a7722691073 from 2021-11-01 15:14:21 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D130107
2021-11-06 19:23:42 +00:00
Ulrich-Matthias Schäfer 2376855c25 Bug 1511670 - Adding required files for encoding webp. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D130547
2021-11-06 13:09:06 +00:00
Narcis Beleuzu 0c6785276c Backed out changeset 5ae245cf817b (bug 1738736) for updatebot-verify bustage. CLOSED TREE 2021-11-06 07:59:02 +02:00
Updatebot 17cf995408 Bug 1738736 - Update dav1d to 3fd2ad938ace8d2d0ab86e4108d46a7722691073 r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D130107
2021-11-06 05:28:37 +00:00
Timothy Nikkel 8b504c2676 Bug 1724331. Enable libpng defines PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED and PNG_WRITE_FILTER_SUPPORTED. r=aosmond
Other than compiler a bit more code this should have no functional effect, we're setting the values to their default values we had before.

Differential Revision: https://phabricator.services.mozilla.com/D130021
2021-11-05 08:53:26 +00:00
Timothy Nikkel 77d318b7de Bug 1737038. Make sure we pass the correct zlib strategy to zlib from libpng when encoding pngs. r=aosmond
We don't enable PNG_WRITE_FILTER_SUPPORTED that means that do_filter field on the png_struct will always be zero (it's initialized to 0, and any calls to png_set_filter will error out unless the result is setting it to 0 https://searchfox.org/mozilla-central/rev/489e82dcc1e5afbe691ff3b1c982382914637e38/media/libpng/pngwrite.c#1032 ).

Then this code in png_write_IHDR https://searchfox.org/mozilla-central/rev/489e82dcc1e5afbe691ff3b1c982382914637e38/media/libpng/pngwutil.c#829 will execute and set do_filter to PNG_ALL_FILTERS for non-paletted images with >=8 bit depth.

This this code https://searchfox.org/mozilla-central/rev/489e82dcc1e5afbe691ff3b1c982382914637e38/media/libpng/pngwutil.c#339 will execute and set our zlib strategy to PNG_Z_DEFAULT_STRATEGY (as opposed to PNG_Z_DEFAULT_NOFILTER_STRATEGY). PNG_Z_DEFAULT_STRATEGY is also known as Z_FILTERED inside of zlib.

From here https://searchfox.org/mozilla-central/rev/489e82dcc1e5afbe691ff3b1c982382914637e38/modules/zlib/src/zlib.h#589 that means: "Z_FILTERED for data produced by a filter (or predictor) ... Filtered data consists mostly of small values with a somewhat random distribution."

So that is not what we want to our non-filtered image data.

Switching this so that we use PNG_Z_DEFAULT_NOFILTER_STRATEGY improves both the compression and speed. The following is the avg time taken for toDataURL with a canvas containing 3 different images, and dataURL.length.

Z_FILTERED

very simple line art
49.7ms
17618

"very png compressable image from bug 1724331"
60.8ms
192214

a photo
241.3ms
4193966

Z_DEFAULT_STRATEGY

very simple line art
52.2ms
17590

"very png compressable image from bug 1724331"
61.2ms
186182

a photo
213ms
3555170

All images are smaller with Z_DEFAULT_STRATEGY, the photo being 15% smaller. The two compressable images are perhaps very slightly slower, but the large photo is 12% faster.

For bug 1724331 I want to turn on PNG_WRITE_FILTER_SUPPORTED, and this means we avoid this bug because do_filter gets set to PNG_FILTER_NONE which is not equal to PNG_NO_FILTERS (which is a bit confusing). Avoiding his bug means our png encoder produces different output and we have a couple of tests that check against the exact output of the pngencoder that need to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D130019
2021-11-04 00:17:07 +00:00
Andreas Pehrson 9ecd45f242 Bug 1729455 - Make GetRemoteSSRC return a Maybe. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D125836
2021-11-03 15:23:18 +00:00
Iulian Moraru bcd7d6fd66 Backed out 23 changesets (bug 1729455) for causing multiple build bustages. CLOSED TREE
Backed out changeset eb27a22d5419 (bug 1729455)
Backed out changeset 0744d68b8c94 (bug 1729455)
Backed out changeset 052a33acc2e4 (bug 1729455)
Backed out changeset 6911243d9ae0 (bug 1729455)
Backed out changeset 0473c7cfd344 (bug 1729455)
Backed out changeset 9b44714d7fce (bug 1729455)
Backed out changeset b04e243f4ab5 (bug 1729455)
Backed out changeset d112b90b7c05 (bug 1729455)
Backed out changeset 40008e4f1c1f (bug 1729455)
Backed out changeset 5a3ecc96a699 (bug 1729455)
Backed out changeset 3e8ac168ee3d (bug 1729455)
Backed out changeset 0cfae6f33c35 (bug 1729455)
Backed out changeset e8d24be16e22 (bug 1729455)
Backed out changeset eb07a028bc43 (bug 1729455)
Backed out changeset 11637120b0cc (bug 1729455)
Backed out changeset 7f7c9f002087 (bug 1729455)
Backed out changeset 080188fa01cf (bug 1729455)
Backed out changeset f058fbb8662e (bug 1729455)
Backed out changeset 907da0f267fd (bug 1729455)
Backed out changeset 8e036b0931e3 (bug 1729455)
Backed out changeset cfcd4d853484 (bug 1729455)
Backed out changeset 99267b6d193f (bug 1729455)
Backed out changeset a2cee9ad6c6c (bug 1729455)
2021-11-02 18:10:53 +02:00
Andreas Pehrson 7804652be5 Bug 1729455 - Make GetRemoteSSRC return a Maybe. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D125836
2021-11-02 14:35:49 +00:00
Andreas Pehrson 3a56135915 Bug 1721443 - Implement gtest helper TakeN that return a MozPromise wrapping the first N events from a MediaEventSource. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129625
2021-11-02 12:45:50 +00:00
Andreas Pehrson 33a5f01125 Bug 1420493 - Apply maxWidth and maxHeight when processing frames, rather than on resolution changes. r=dminor
An alternative approach would be to merge max_fs with maxWidth*maxHeight and let
the VideoAdapter decide on the resolution entirely. Then the logic could have
stayed in place.

But the VideoAdapter has another algorithm for finding the ideal resolution,
which for the unittest for this feature selects 960x640 rather than 1080x720.

This moves the checking so we can keep using the same logic as before.

This also enables a disabled test so we have test coverage of these parameters.

Differential Revision: https://phabricator.services.mozilla.com/D105778
2021-08-17 15:04:08 +02:00
Andreas Pehrson 3d09e4ceef Bug 1654112 - Merge conduit controllers into conduits, refactor away setters, and make unittests async. r=bwc,ng
The main point of this patch is to harden how conduits handle configuration
changes. With conduit controller classes acting in a layer on top of conduits
(and their old sync style APIs), for instance
`mTransmitting = true; mTransmitting = false;` on the control thread gets
elided and cannot be used as a mean of applying configuration changes in the way
`StartTransmitting(); ChangeConfig(); StopTransmitting();` could.

This patch removes the conduit controller classes, instead moving their mirrors
directly into the conduits. This allows for one larger "ConfigChanged" method
which can apply all the config changes while being aware of the state of the
conduit.

This patch effectively moves from setters to mirrors.

Unittests are updated to work with the new async structure. They're only on main
thread, but updates still happen async. Some helpers ensure that state changes
and direct (tail dispatched) tasks run in a for the tests sync fashion.

Differential Revision: https://phabricator.services.mozilla.com/D123222
2021-08-16 15:57:10 +02:00
Andreas Pehrson eac580d3d6 Bug 1654112 - Implement MediaConduitControl for controlling conduits async through state mirroring. r=ng,bwc
Differential Revision: https://phabricator.services.mozilla.com/D112868
2021-08-10 14:13:49 +02:00
Andreas Pehrson 41f1881f3e Bug 1654112 - Move NoTrialsConfig into SharedWebrtcState and make WebrtcCallWrapper keep a ref to it. r=ng
SharedWebrtcState when managed by PeerConnectionCtx is destroyed on main thread.
With interactions with call instances being async, there is no guarantee that
the objects owned by SharedWebrtcState (and referenced through raw pointers by
Call instances) are alive until all Call instances have been destroyed.

Making the WebrtcCallWrapper keep a strong-ref to the SharedWebrtcState will
ensure it can manage the lifetime of the SharedWebrtcState for as long as
necessary.

Differential Revision: https://phabricator.services.mozilla.com/D112857
2021-04-16 14:44:09 +02:00
Andreas Pehrson d1af373ba0 Bug 1654112 - Rename MediaSessionConduit::DeleteStreams to Shutdown, as VideoConduit does more than just delete streams. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D112856
2021-04-14 17:40:24 +02:00
Andreas Pehrson 309e6c0978 Bug 1654112 - Pass codec configs by value/reference instead of pointers. r=ng
This patch mainly sets the stage for using codec configs with StateMirroring.
It also makes the code a bit simpler, and removes the need to handle the nullptr
case.

Differential Revision: https://phabricator.services.mozilla.com/D112855
2021-04-14 17:36:40 +02:00
Andreas Pehrson 2a8f453e09 Bug 1654112 - Make MediaPipeline natively async with WatchManager. r=bwc
On its own this patch should mainly be seen as a refactor of the way we handle
races in MediaPipelineTransmit::SetTrack. Namely that Stop() immediately
followed by SetTrack was exposed to racing prior to this patch.

This patch makes MediaPipelines use a WatchManager to manage their tracks.
For receive pipelines, mActive triggers whether we enable the receive listener.
For transmit pipelines, mActive and mDomTrack triggers whether mDomTrack's
underlying track is hooked up to feed data to the conduit. A hole is also
punched through this allowing for unittests to set an overriden send track
to avoid mocking a MediaStreamTrack (DOM object) and MediaTrackGraph (several
non-virtual methods we'd need to override).

This patch also moves the responsibility of starting and stopping conduits to
the transceiver/receiver objects, where most of the interaction with the
conduits is already happening.

Differential Revision: https://phabricator.services.mozilla.com/D112854
2021-04-13 15:02:15 +02:00
Andreas Pehrson 6c00520556 Bug 1654112 - Make mediapipeline_unittest pass and remove TaskQueueWrapper::MainAsCurrent. r=ng,bwc
This patch makes mediapipeline_unittest pass an event target to the Call wrapper
but keeps using main thread for that event target, so that it can keep the test
cases simpler by allowing sybnc calls into the conduits.

TaskQueueWrapper::MainAsCurrent is no longer needed as mediapipeline_unittest
was the last user of it. A simpler version remains dedicated in
mediapipeline_unittest instead.

Differential Revision: https://phabricator.services.mozilla.com/D112853
2021-04-09 10:26:12 +02:00
Andreas Pehrson 21cef907f3 Bug 1654112 - Move VideoConduit to call worker thread for mCall and related access. r=ng,bwc
Differential Revision: https://phabricator.services.mozilla.com/D112851
2021-04-07 11:36:28 +02:00
Andreas Pehrson e3754e9e2b Bug 1654112 - Reinstate usage of mLockScaling in VideoConduit. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D112849
2021-04-07 09:45:07 +02:00
Andreas Pehrson 2c32da060a Bug 1654112 - Constify VideoConduit members that are based on prefs. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D112848
2021-04-07 09:44:33 +02:00
Andreas Pehrson 0ba344d3eb Bug 1654112 - Avoid `using namespace` in headers. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D112846
2021-04-06 18:30:27 +02:00
Andreas Pehrson 63dc1474e0 Bug 1654112 - Update conduit unittests to work with the Call worker thread. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D112845
2021-04-06 17:45:07 +02:00
Andreas Pehrson 960e3e0733 Bug 1654112 - Create CallWorkerThread which implements AbstractThread for a TaskQueueWrapper. r=ng
Ideally TaskQueueWrapper would implement both webrtc::TaskQueueBase and
AbstractThread, but webrtc::TaskQueueBase is not refcounted so implementing both
in the same class is not possible.

This patch implements AbstractThread in a refcounted class CallWorkerThread on
top of TaskQueueWrapper. Because of SharedModuleThread not having a thread-safe
refcount, the same CallWorkerThread must be used for all Call instances.
PeerConnectionCtx's SharedWebrtcState becomes the canonical owner of the
CallWorkerThread, but WebrtcCallWrappers will all hold a strong reference to it.

The new AbstractThread allows us to use webrtc TaskQueues with Mozilla
specific higher order threading functions, like MozPromise, MediaEventSource,
and whatever else could come in handy, without having to use an explicit
CurrentTaskQueueSetter (which is not public) everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D112844
2021-04-12 14:49:20 +02:00
Andreas Pehrson 2b131db4f6 Bug 1654112 - Move WebRtcCallWrapper to dedicated files. r=ng
This patch also renames it WebrtcCallWrapper, to better match neighboring
classes starting on "Webrtc".

Differential Revision: https://phabricator.services.mozilla.com/D112843
2021-04-08 11:31:43 +02:00
Byron Campen [:bwc] 186bb9fa6f Bug 1654112 - Reimplement ssrc/csrc stats cache. r=ng
The cache can be a lot simpler than the old one, since libwebrtc handles
pruning old entries for us, and since we're now telling libwebrtc when we
render frames (so we don't have to make our own stats with guesses of when
frames will be rendered). We also now have a single implementation of the
cache in the base class.

This patch also removes the old CSRC stat insertion stuff we hacked into
libwebrtc for testing, and handles that stuff in our cache directly.

Differential Revision: https://phabricator.services.mozilla.com/D108669
2021-03-15 12:19:57 -05:00
Nico Grunbaum f54f13e7c9 Bug 1654112 - deconflate the target and host architectures in libwebrtc build files; r=mjf
This patch changes the meaning of the target architecture to mean what it nominally should according to the gn documentation. I question as to if this could be upstreamed, but it may be worth a shot. If we do choose to pursue that. There are several other smaller patches that tackle individual instances, that this could be combined with.

Differential Revision: https://phabricator.services.mozilla.com/D119707
2021-07-14 22:28:13 +00:00
Andreas Pehrson b86f5931e9 Bug 1654112 - Don't create two WebRtcCallWrappers in VideoConduitTest. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D108082
2021-03-11 10:32:28 +01:00
Andreas Pehrson 5c1625e1b0 Bug 1654112 - Fix VideoConduit unittests. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D105777
2021-02-19 13:53:22 +01:00
Andreas Pehrson fb6283dd93 Bug 1654112 - Fix AudioConduit unittests. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D105771
2021-02-17 15:27:17 +01:00
Andreas Pehrson 13f2742d15 Bug 1654112 - Use a ShutdownBlockingTicket in WebRtcCallWrapper. r=jib,bwc
Peer connections are cleaned up on shutdown through an xpcom-shutdown observer.
It doesn't block shutdown throughout async operations.

webrtc::Call instances are currently used on the main thread and so destroying
them could be a sync operation. However with upcoming threading model changes
they are moving to a worker thread, making destruction of them inevitably async.

Currently they are even destroyed async, even though still on the main thread,
to better simulate the behavior we'd see with the threading model updated.

Destroying Call instances async can lead to a race between destroying all
TaskQueues tied to the Call instance, and reaching xpcom-shutdown-threads.
xpcom-shutdown-threads will shut down the thread pools backing the TaskQueues,
making future dispatches fail. We have asserts checking that dispatches always
succeed.

This patch adds a ShutdownBlocker to the Call wrapper, so progressing to
xpcom-shutdown-threads is blocked until Call instances are cleaned up and no
more dispatches are expected.

Differential Revision: https://phabricator.services.mozilla.com/D105770
2021-02-16 18:03:06 +01:00
Andreas Pehrson 25c7263d06 Bug 1654112 - Remove mozilla:: prefixes from mediapipeline_unittest.cpp. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D105768
2021-02-16 17:44:00 +01:00
Andreas Pehrson 9939950d10 Bug 1654112 - Destroy Call instances as their associated PeerConnections close. r=ng,bwc
Prior to this patch, WebRtcCallWrapper would never clear the call instance,
meaning that it went away as the classes having references to WebRtcCallWrapper
also went away. These are mainly TransceiverImpl and PeerConnectionMedia. There
are other classes too, but these are the ones that have a strong-ref to
WebRtcCallWrapper *and* are cycle collected.

With the worker threads in libwebrtc now using our own TaskQueues on top of
our SharedThreadPool instances, the ownership model of the Call instances
becomes problematic.

On shutdown, xpcom-shutdown-threads happens before the cycle collector is shut
down.

xpcom-shutdown-threads will however, block shutdown until all SharedThreadPools
have been shut down.

If a TransceiverImpl sits around until shutdown it **will** only be destroyed
during cycle collector shutdown. And, alas, we reach a deadlock as we're stuck
in xpcom-shutdown-threads until that TransceiverImpl gets destroyed.

This patch decouples the Call instance lifetime from the cycle collector, and
avoids the shutdown hang.

Differential Revision: https://phabricator.services.mozilla.com/D103496
2021-01-28 11:15:40 +01:00
Andreas Pehrson 534522ade2 Bug 1654112 - Set main thread as current TaskQueue when calling into libwebrtc so that audio calling works. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D102286
2021-02-01 09:28:23 +01:00
Andreas Pehrson 978b1c26e7 Bug 1654112 - Create Call instances using the new Call config. r=ng,bwc
This sets up our code for creating Call instances so that it works. A number of
things are left to do. Most notable fixing the threading model.

Until that is fixed we use main thread as a "worker" but this is not ideal.
It both leads to excessive work loads on main, and us having to set main as
"current" (using upstream's API for this) whenever we call into main from what
is meant to be the worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D102285
2021-01-18 15:46:57 +01:00
Andreas Pehrson 3942ce2431 Bug 1654112 - Implement AudioConduit::DeleteStreams. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D103493
2021-01-28 10:54:32 +01:00
Andreas Pehrson 154b8911da Bug 1654112 - Move AudioConduit to use upstream for audioLevel and remove unused code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D102276
2021-01-18 11:16:22 +01:00
Dan Minor 44b4216c53 Bug 1654112 - Fixes to MediaPipelineFilter. r=ng
Upstream's implementation for rid and mid assumes they are always present but
the current code in MediaPipelineFilter had them optional. We need to double
check which way it should be.

Differential Revision: https://phabricator.services.mozilla.com/D130073
2020-11-09 15:26:46 -05:00
Dan Minor 3e53c49811 Bug 1654112 - Update MockCall to reflect API changes. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D130069
2020-11-04 11:30:20 -05:00
Dan Minor 29077b4747 Bug 1654112 - Update VideoConduit to use new APIs. r=ng
This also disables the gtests until we figure out the new API.

Differential Revision: https://phabricator.services.mozilla.com/D130065
2020-10-30 14:30:28 -04:00
Dan Minor 402398a69d Bug 1654112 - Update AudioConduit to use new APIs. r=ng
This also disables the tests while we figure out the new API.

Differential Revision: https://phabricator.services.mozilla.com/D130064
2020-10-30 14:22:28 -04:00
Dan Minor bb596c69e6 Bug 1654112 - Add include dirs for abseil-cpp. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D130060
2020-10-26 15:19:21 -04:00
Dan Minor 38d5d300d9 Bug 1654112 - Update include paths for moved upstream code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D130059
2020-10-23 14:02:54 -04:00
criss fa5ca358fa Backed out 3 changesets (bug 1721443) for causing bustages on TestVideoFrameConverter.cpp. CLOSED TREE
Backed out changeset 8c52f162022b (bug 1721443)
Backed out changeset 0fec1fce1701 (bug 1721443)
Backed out changeset df2612b2d343 (bug 1721443)
2021-10-28 19:00:35 +03:00
Andreas Pehrson dda943e8cf Bug 1721443 - Implement gtest helper TakeN that return a MozPromise wrapping the first N events from a MediaEventSource. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129625
2021-10-28 11:39:53 +00:00
Kagami Sascha Rosylight 20fc6d114f Bug 1736752 - Update libjxl r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D129078
2021-10-28 01:06:52 +00:00
Jon Bauman 874adf9b96 Bug 1734058 - Update dav1d to new version f52aee04fbd711cddab23d0aa9b196e9c963e7b8 from 2021-10-04 21:58:36. r=mjf,haik
This is a fairly significant update, so required a few changes to Gecko code, but I've commented on the interesting details, so they should be easy to find

Differential Revision: https://phabricator.services.mozilla.com/D129465
2021-10-26 17:11:36 +00:00
Matthew Gregan e7136be138 Bug 1732479 - Update libcubeb to 8ef5a1ff. r=cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D128111
2021-10-12 19:25:57 +00:00
Andreas Pehrson 5df3ecb169 Bug 1733930 - Set transport states atomically in mediapipeline_unittest. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D127676
2021-10-08 07:43:55 +00:00
Jens Stutte cd08f3b728 Bug 1731564: Introduce a motivated SpinEventLoopUntil for direct use from C++. r=xpcom-reviewers,nika,necko-reviewers
This patch:
- moves the AutoNestedEventLoopAnnotation into SpinEventLoopUntil.h
- introduces the motivated SpinEventLoopUntil
- maps remaining SpinEventLoopUntil instances to SpinEventLoopUntil with "Missing motivation."
- changes relevant uses in nsThread and nsThreadManager to the motivated SpinEventLoopUntil
- changes all uses with IgnoreAndContinue behavior to the motivated SpinEventLoopUntil

Differential Revision: https://phabricator.services.mozilla.com/D126714
2021-10-07 08:06:10 +00:00
Marian-Vasile Laza 18fb16c542 Backed out 18 changesets (bug 1731564) for causing build bustages on SpinEventLoopUntil. CLOSED TREE
Backed out changeset 0464dbdc8584 (bug 1731564)
Backed out changeset 0d996df13545 (bug 1731564)
Backed out changeset 5630a0e7a109 (bug 1731564)
Backed out changeset 37b41d187cdb (bug 1731564)
Backed out changeset d37700fa60b6 (bug 1731564)
Backed out changeset b0ce7db44b99 (bug 1731564)
Backed out changeset aa5ec3aa1535 (bug 1731564)
Backed out changeset 73b648f1fa70 (bug 1731564)
Backed out changeset bb8fb0f9833e (bug 1731564)
Backed out changeset 0d8905144f5d (bug 1731564)
Backed out changeset 2cfb094a1ec3 (bug 1731564)
Backed out changeset 78d3b0257a6a (bug 1731564)
Backed out changeset e9d32926e93c (bug 1731564)
Backed out changeset 874cab520ce5 (bug 1731564)
Backed out changeset d8071cc32bd9 (bug 1731564)
Backed out changeset 283c5393cbbc (bug 1731564)
Backed out changeset 317bc38e3de5 (bug 1731564)
Backed out changeset 53e3f4862439 (bug 1731564)
2021-10-07 00:09:19 +03:00
Jens Stutte 80463c0d23 Bug 1731564: Introduce a motivated SpinEventLoopUntil for direct use from C++. r=xpcom-reviewers,nika,necko-reviewers
This patch:
- moves the AutoNestedEventLoopAnnotation into SpinEventLoopUntil.h
- introduces the motivated SpinEventLoopUntil
- maps remaining SpinEventLoopUntil instances to SpinEventLoopUntil with "Missing motivation."
- changes relevant uses in nsThread and nsThreadManager to the motivated SpinEventLoopUntil
- changes all uses with IgnoreAndContinue behavior to the motivated SpinEventLoopUntil

Differential Revision: https://phabricator.services.mozilla.com/D126714
2021-10-06 19:45:11 +00:00
Cristian Tuns c141635e77 Bug 1733545 -Fix Bp bustages a=fix. CLOSED TREE 2021-10-01 06:40:59 -04:00
Mike Hommey 5245f8491f Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D127229
2021-10-01 09:01:27 +00:00
Nils Ohlmeier e58ba15e19 Bug 1732778: added unit test for verifying SSRC order r=bwc,ng
Depends on D126998

Differential Revision: https://phabricator.services.mozilla.com/D127186
2021-10-01 05:09:32 +00:00
Kagami Sascha Rosylight 622ed0f491 Bug 1731773 - Part 1: Run mach vendor for libjxl and highway r=tnikkel
Just library version updates, nothing else.

Differential Revision: https://phabricator.services.mozilla.com/D126359
2021-09-28 10:54:24 +00:00
Marian-Vasile Laza 8062c39730 Backed out changeset c4fec6d39844 (bug 1731773) for causing build bustages. 2021-09-23 13:01:37 +03:00
Kagami Sascha Rosylight ffe3b03a5e Bug 1731773 - Run mach vendor for libjxl and highway r=tnikkel
Just library version updates, nothing else.

Differential Revision: https://phabricator.services.mozilla.com/D126359
2021-09-23 08:23:07 +00:00
Tom Ritter 800a85074e Bug 1729481: Exclude more things from dav1d to make it easier to update r=jbauman
Depends on D124940

Differential Revision: https://phabricator.services.mozilla.com/D124941
2021-09-20 16:09:55 +00:00
Tom Ritter a758caf0c7 Bug 1729481: Fix a bug in the python-version hacks r=jewilde
I was checking if the caller was 'log' but that wasn't correct
because we pass the result of the function to log, we don't call
it from log

Differential Revision: https://phabricator.services.mozilla.com/D124939
2021-09-20 16:09:54 +00:00
Marian-Vasile Laza feeff68652 Backed out 3 changesets (bug 1729481) for causing build bustages. CLOSED TREE
Backed out changeset fb80cde944e6 (bug 1729481)
Backed out changeset 40fc34344f2f (bug 1729481)
Backed out changeset f219caf475fc (bug 1729481)
2021-09-18 01:30:27 +03:00
Tom Ritter 3b40e004e9 Bug 1729481: Exclude more things from dav1d to make it easier to update r=jbauman
Depends on D124940

Differential Revision: https://phabricator.services.mozilla.com/D124941
2021-09-17 19:31:36 +00:00
Tom Ritter 6fd44d8476 Bug 1729481: Fix a bug in the python-version hacks r=jewilde
I was checking if the caller was 'log' but that wasn't correct
because we pass the result of the function to log, we don't call
it from log

Differential Revision: https://phabricator.services.mozilla.com/D124939
2021-09-17 19:31:35 +00:00
Andrew Osmond b063a68714 Bug 1709303 - Part 2. Update libjpeg-turbo to 2.1.1. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D125459
2021-09-13 21:55:13 +00:00
Andrew Osmond 2cb9576c72 Bug 1709303 - Part 1. Prepare scripts and patches for libjpeg-turbo update. r=jrmuizel,tnikkel
media/libjpeg/1050342.diff is no longer necessary and a correction
appears to have been made in the library. Chromium no longer uses this
patch either.

media/libjpeg/assembly-tables.diff and media/libjpeg/externalize-table.diff
require significant changes in order to apply. This may be done in a
future followup patch, but is deemed less important than updating
libjpeg-turbo.

With these patches, an update to libjpeg-turbo 2.1.1 should apply
cleanly and build.

Differential Revision: https://phabricator.services.mozilla.com/D125458
2021-09-13 21:55:12 +00:00
Andrew Osmond 6d3612bab1 Bug 1729748 - Update libwebp to 1.2.1. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124947
2021-09-08 18:55:06 +00:00
Nils Ohlmeier 797c9f2e3b Bug 1727196: stop making ssrc-group depend on stream-id. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D123672
2021-08-29 17:53:12 +00:00
Bryce Seager van Dyk 078aa06342 Bug 1727133 - Handle clear key cbcs media with 0:0 pattern. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D123359
2021-08-25 20:41:43 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Bryce Seager van Dyk fa930a9e95 Bug 1726615 - Reorder includes in ClearKey files. r=alwu
Reorder includes to match Google C++ style. The follow decisions were made to
resolve ambiguities.
- The pssh parser and clearkey are considered part of mozilla-central/Gecko and
  so have their includes grouped into the 'your project' includes at the end of
  includes. I.e. they're grouped with other mozilla-central headers.
- NSS and the CDM headers are considered as coming from other libs, so are
  placed in a block preceding the mozilla-central's.

I think everything else is decided by using the style guide and by Mozilla using
case sensitive sorting.

This also changes a few instances of using "systemheader.h" to <systemheader.h>,
which is more in line with the style guide.

Differential Revision: https://phabricator.services.mozilla.com/D123230
2021-08-20 18:00:12 +00:00
Bryce Seager van Dyk 4416660111 Bug 1711912 - Implement output protection query in Clearkey CDM. r=alwu
This implements logic in the clear key CDM to emulate protection queries. The
CDM will only do so if configured using the new test key system added prior to
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D122633
2021-08-19 17:14:09 +00:00
Bryce Seager van Dyk b7fc1c78ef Bug 1711912 - Set flag on clear key CDM if created using special protection query key system. r=alwu
This lets the clear key CDM behave differently if it's created with the
protection query key system. The different behaviour will be implemented in
following patches and gated behind the member set here.

Differential Revision: https://phabricator.services.mozilla.com/D122632
2021-08-19 17:14:08 +00:00