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

79 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson cc1a0581dc Bug 1656438 - Fix non-direct int16 speex resampler halving values. r=karlt
As regressed by
0e5d424fdb (diff-a05703278f3e5abb7d4b60dd33006618R478)

Fix cherrypicked from
https://gitlab.xiph.org/xiph/speexdsp/-/merge_requests/5

Differential Revision: https://phabricator.services.mozilla.com/D89740
2020-09-17 06:08:38 +00:00
Narcis Beleuzu 84c3cc7574 Backed out 47 changesets (bug 1656438) for bustages on DynamicResampler.cpp . CLOSED TREE
Backed out changeset dc497e6c016d (bug 1656438)
Backed out changeset 780a6b48d876 (bug 1656438)
Backed out changeset a9baeaefbb85 (bug 1656438)
Backed out changeset 297b4dbd2380 (bug 1656438)
Backed out changeset 8c3c64217bf6 (bug 1656438)
Backed out changeset d51cd6827d3b (bug 1656438)
Backed out changeset 1e48be97c8ad (bug 1656438)
Backed out changeset 44d075680b27 (bug 1656438)
Backed out changeset 64c35518d82f (bug 1656438)
Backed out changeset 159e8137d4ad (bug 1656438)
Backed out changeset 0546062cc053 (bug 1656438)
Backed out changeset 18079c579276 (bug 1656438)
Backed out changeset b6f3e65401b4 (bug 1656438)
Backed out changeset cfbc65954235 (bug 1656438)
Backed out changeset d35cf2a0b659 (bug 1656438)
Backed out changeset 5da08b28c7b5 (bug 1656438)
Backed out changeset 8071a5b82a62 (bug 1656438)
Backed out changeset 4f2aeff6e0e4 (bug 1656438)
Backed out changeset 4bb23c108319 (bug 1656438)
Backed out changeset 90c2ec79a8fc (bug 1656438)
Backed out changeset ffb479620b65 (bug 1656438)
Backed out changeset 9e9f40be7bd7 (bug 1656438)
Backed out changeset 664f66d512ff (bug 1656438)
Backed out changeset ce3a1f7b1c79 (bug 1656438)
Backed out changeset 8e59070e92ea (bug 1656438)
Backed out changeset fd84761e9af8 (bug 1656438)
Backed out changeset 50ec7aa8a44a (bug 1656438)
Backed out changeset 338a090e2657 (bug 1656438)
Backed out changeset 1f262745a844 (bug 1656438)
Backed out changeset 3b904a06afd1 (bug 1656438)
Backed out changeset d5c5afc9239f (bug 1656438)
Backed out changeset 9351b87ca40b (bug 1656438)
Backed out changeset 2baecf74521e (bug 1656438)
Backed out changeset 8571622fc9a0 (bug 1656438)
Backed out changeset c4ad7c72bc9c (bug 1656438)
Backed out changeset e505d1d051c4 (bug 1656438)
Backed out changeset a51bb724a78c (bug 1656438)
Backed out changeset 8cacc0e96a3e (bug 1656438)
Backed out changeset 58838694eb67 (bug 1656438)
Backed out changeset 2baa906a480d (bug 1656438)
Backed out changeset 52e1ae3a4fd7 (bug 1656438)
Backed out changeset 1da839e0562d (bug 1656438)
Backed out changeset 55c9c22b0a13 (bug 1656438)
Backed out changeset d116b82ffad9 (bug 1656438)
Backed out changeset b640887eca0e (bug 1656438)
Backed out changeset 5be36600b092 (bug 1656438)
Backed out changeset 7b07bbe610ae (bug 1656438)
2020-09-15 20:15:27 +03:00
Andreas Pehrson 3125ba99d4 Bug 1656438 - Fix non-direct int16 speex resampler halving values. r=karlt
As regressed by
0e5d424fdb (diff-a05703278f3e5abb7d4b60dd33006618R478)

Fix cherrypicked from
https://gitlab.xiph.org/xiph/speexdsp/-/merge_requests/5

Differential Revision: https://phabricator.services.mozilla.com/D89740
2020-09-15 14:41:51 +00:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Sylvestre Ledru a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru 4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru 5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Chris Manchester c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Masatoshi Kimura 7f80207800 Bug 1371536 - Suppress more MSVC warnings in media/libspeex_resampler. r=padenot
MozReview-Commit-ID: DVUorkhSBTW

--HG--
extra : rebase_source : f0903adb6b8046b8a69695887de75b876ff1ce70
2017-06-09 14:54:47 +09:00
Paul Adenot a01cea3a7b Bug 1341254 - Update libspeex_resampler to 79822c. r=karlt
MozReview-Commit-ID: EDYCyjrWmz1

--HG--
extra : rebase_source : 94d87c4b911ac646e755e03dc938da57ce237aad
2017-03-06 17:16:23 +01:00
Paul Adenot 6bb696b272 Bug 1341254 - Put the modification made to the resampler code in bug 1274083 into their own patch, and add this patch to update.sh. r=karlt
MozReview-Commit-ID: IAOWdGS0jM

--HG--
extra : rebase_source : ca9d38acb50f7fa8818d50fd8370d98b5d21e4f9
2017-03-06 16:15:07 +01:00
Joel Maher 43d997b5a3 Bug 1344470 - add BUG_COMPONENT to media/* files. r=padenot
MozReview-Commit-ID: C7xWOE0OwIK
2017-03-07 13:06:45 -05:00
Makoto Kato 1ab5272de6 Bug 1298569 - Part 2. Replace -fpu=neon with CONFIG['NEON_FLAGS']. r=glandium
Use CONFIG['NEON_FLAGS'] on moz.build instead.

MozReview-Commit-ID: F6R532Hi5mg

--HG--
extra : rebase_source : 7243f316de3138c702f09b336f6d430e6c9c15b5
2016-09-14 18:34:19 +09:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Randell Jesup 486d30379d Bug 1274083: don't return early from rate changes if we overflow r=jmspeex
MozReview-Commit-ID: DVSp3VpiIJw
2016-05-20 01:53:27 -04:00
Jean-Yves Avenard 9471487dcf Bug 1266260: P1. Fix overflow is speexdsp. r=padenot
Fix submitted upstream

Upstream version had a partial fix for overflow (though incomplete). I've included that fix here and completed it.

MozReview-Commit-ID: 5RyIMI5qrvC

--HG--
extra : rebase_source : 18a67d2ca8220a8129b69105413c33a81f7a6984
2016-05-11 12:15:13 +02:00
Jean-Yves Avenard 71b5b956c8 Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w

--HG--
extra : rebase_source : 71292f9f45e8a2d7e02e720ce367f291edaf00b8
2016-04-19 14:39:39 +10:00
Carsten "Tomcat" Book 9d468452aa Backed out changeset a9bfe66b235c (bug 1264199)
--HG--
extra : rebase_source : f8151216bd24997a1f0de70ec515c920151a7dc4
2016-04-21 16:31:52 +02:00
Jean-Yves Avenard a0ff91528b Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w

--HG--
extra : rebase_source : 592c0dcb4e01308116e0ea264a59fe9e592986b3
2016-04-19 14:39:39 +10:00
Wes Kocher b8f98ffe9f Backed out 8 changesets (bug 1264199) for permafailing media mochitests on OSX 10.6 a=backout
Backed out changeset 0f20f2080824 (bug 1264199)
Backed out changeset 90351d2719be (bug 1264199)
Backed out changeset f484b42cbdda (bug 1264199)
Backed out changeset b79b62146120 (bug 1264199)
Backed out changeset f587df589b69 (bug 1264199)
Backed out changeset 02f781a573b4 (bug 1264199)
Backed out changeset d3677ae4c8ec (bug 1264199)
Backed out changeset d08288654ec9 (bug 1264199)

MozReview-Commit-ID: HVtiBSOxf7t
2016-04-20 11:01:36 -07:00
Jean-Yves Avenard 1d8e31734e Bug 1264199: [speex] P7. Handle memory allocation failures during initialization. r=kinetik
Fix submitted upstream.

MozReview-Commit-ID: JpHoVKu2S7w
2016-04-20 15:03:46 +10:00
Mike Hommey 3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Karl Tomlinson 922ba93d0c b=1000044 use direct resampler for 16->44.1k r=jmspeex
This also changes the HUGEMEM test to be independent of quality.
|oversample| has a maximum value of 32, so we know that the interpolating
resampler will use less memory when st->den_rate > 441.

--HG--
extra : transplant_source : vl%C1d%A5%FB%3Cd%FBC%86%FD%26%EC%FB%C0%5C%26%7D%8C
2014-07-24 09:44:59 +12:00
Mike Hommey ed70c5f377 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Karl Tomlinson 6da0b79f99 b=987679 update speex resampler to speexdsp d60e75b2 r=padenot
--HG--
extra : rebase_source : 8837b12e4e70daf5c089978079eeb5fa7bd278a4
2014-08-07 19:15:27 +12:00
Karl Tomlinson e460833f90 b=995075 update speex resampler to speexdsp 769dc295 r=padenot
--HG--
extra : rebase_source : 786ee924d4d41745bfad84fbf9457c82db4158fb
2014-08-07 18:13:12 +12:00
Karl Tomlinson ddcaf3a3a7 b=1042508 enable neon resampler optimizations r=padenot
--HG--
extra : rebase_source : fd984143b78ecf25a5158715dd8bed8df7398945
2014-07-22 16:51:08 +12:00
Karl Tomlinson ee8186f60a b=1042508 remove : of empty Clobber asm argument r=padenot
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended-Asm says

  asm [volatile] ( AssemblerTemplate : [OutputOperands] [ : [InputOperands] [ : [Clobbers] ] ] )

which implies that Clobbers is optional even after the third colon, but
the gcc used for b2g_try_emulator_dep builds says

resample_neon.c: In function 'saturate_32bit_to_16bit':
resample_neon.c:50: error: expected string literal before ')' token

--HG--
extra : rebase_source : 6ca7768d5b30f67ff6827acc9a4fdc51a672bc1e
2014-07-22 20:10:36 +12:00
Karl Tomlinson 5a1e783dae b=1042508 move resampler simd optimizations to separate translation units r=padenot
This ensures that code in resample.c will run on Intel x86 cpus even when SSE
support has been compiled, and will provide similarly for neon support when
enabled.

--HG--
rename : media/libspeex_resampler/sse-detect-runtime.patch => media/libspeex_resampler/simd-detect-runtime.patch
rename : media/libspeex_resampler/src/resample_neon.h => media/libspeex_resampler/src/resample_neon.c
rename : media/libspeex_resampler/src/resample_sse.h => media/libspeex_resampler/src/resample_sse.c
rename : media/libspeex_resampler/src/sse_detect.cpp => media/libspeex_resampler/src/simd_detect.cpp
rename : media/libspeex_resampler/src/sse_detect.h => media/libspeex_resampler/src/simd_detect.h
extra : rebase_source : bdf1ef791129dedeadce7369354a5992729a99b7
2014-07-23 21:49:04 +12:00
Karl Tomlinson 75884b1238 b=1042508 tie resampler sample type choice to MOZ_SAMPLE_TYPE_S16 r=padenot
When built with FIXED_POINT speex_resampler_process_float() assumes the
samples are in the range ±0x7fff and so Gecko instead uses ConvertAudioSamples
and speex_resampler_process_int().  This decision is based on
MOZ_SAMPLE_TYPE_S16.

--HG--
extra : rebase_source : 1e67861478026dfa65b61a31e3272970a7094094
2014-07-22 15:41:50 +12:00
Karl Tomlinson cc0c4ee1b1 b=1042508 include resample_neon.h from speexdsp 305e54ea r=padenot
--HG--
extra : rebase_source : effe9aa434298b0b49099b6809d506b92075ad1c
2014-07-21 17:08:00 +12:00
Karl Tomlinson 890c626840 b=1033122 be consistent about speex_resampler symbol visibility r=khuey
When "speex/speex_resampler.h" was included, another exported header (in
dist/include) would find the speex/speex_resampler.h in dist/include before
dist/system_wrappers.  Visibility of undefined symbols depended on the order
of includes.

This patch changes includes to <speex/speex_resampler.h> so that
WRAP_SYSTEM_INCLUDES works as expected but removes the wrapper when not using
GKMEDIAS_SHARED_LIBRARY.

--HG--
extra : rebase_source : 93ca1dbdd6b489647624326e78539f44c60d0b34
2014-07-02 14:21:34 +12:00
Karl Tomlinson b232975926 b=1042504 use direct resampler for 48->44.1k r=padenot
Transplanted from patch by Gregory Maxwell <greg@xiph.org>
http://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=f426ab52

--HG--
extra : rebase_source : 457a874135b4fea8649d72299be96a79e7dcda64
2014-07-21 16:34:26 +12:00
Karl Tomlinson a3e81ff91a b=1042504 update speex resampler to speexdsp 305e54ea r=padenot
Upstream SATURATE32PSHR changes conflict with Gecko's SSE runtime
detection patch.  That patch is updated to reduce deviation from
upstream.

--HG--
extra : rebase_source : fdaf355f802b944fcbe286e076ca19dc6bc33f80
2014-07-23 16:58:45 +12:00
Karl Tomlinson 3f4977b36d b=1042504 switch speex resampler to speexdsp bbe7e099 r=padenot
This is the speexdsp revision most similar to what is currently in Gecko.

We'll want to keep the HUGEMEM variant that we currently have from
opus-tools, but that will be restored in a subsequent patch.

--HG--
extra : rebase_source : 0d0d881dc1c997a42c9386136f0b93fd15aa0331
2014-07-23 16:56:25 +12:00
Karl Tomlinson de91b4a0e5 b=1042504 correct strip prefix for applying outside-speex patch r=padenot
--HG--
extra : rebase_source : 946eef24f2f585f992065430188bdbd2aff523de
2014-07-21 15:22:25 +12:00
Karl Tomlinson af2b2bd42d b=1033140 make speex_resampler declarations consistent with OUTSIDE_SPEEX implementation r=padenot
Instead of defining OUTSIDE_SPEEX and RANDOM_PREFIX everywhere
speex_resampler.h is included, it is easier to patch the header.

Symbol names in gkmedias symbols.def are updated now that RANDOM_PREFIX is
taking effect, and unused symbols are no longer exported.

--HG--
extra : transplant_source : sx%C9%ED%EB%E7%D8P%09%18%87%D4Oj%85%D5%25%C8%A5%01
2014-07-02 20:22:45 +12:00
JW Wang d1099cd2f3 Bug 1008079 - Add cubeb_resampler.cpp to build files. r=glandium 2014-06-16 19:46:00 -04:00
Ehsan Akhgari 020f3fd4d8 Bug 979118 - Add global MMX_FLAGS, SSE_FLAGS and SSE2_FLAGS variables; r=glandium 2014-03-19 21:55:00 -04:00
Chris Peterson 40d3d12f02 Bug 980211 - Suppress clang and gcc warnings in third-party media code: speex, theora, and vpx. r=derf 2014-03-15 23:21:32 -07:00
Chris Peterson 9f78f5433e Bug 980211 - Backout part of cset f81c8b82ac70 for bad merge of libspeex moz.build. 2014-03-09 23:35:44 -07:00
Chris Peterson aab65dde2d Bug 980211 - Suppress clang warnings in third-party media code: speex, theora, and vpx. r=derf 2014-03-05 21:38:52 -08:00
Ehsan Akhgari 667b4bc049 Bug 978594 - Part 3: Port some of the per-source flags to moz.build; r=glandium
--HG--
extra : rebase_source : fe4cd059eddda221af420e1517250772816d7ee8
2014-03-02 15:41:32 -05:00
Karl Tomlinson d5e8ef47f8 b=913854 add speex_resampler_set_skip_frac_num r=jmspeex
This allows a client to align output samples consistently for independent
resampling of contiguous input buffers.

--HG--
extra : rebase_source : 58caba11ac7f78418b173a98556276d3b4644603
2014-02-27 11:44:40 +13:00
Karl Tomlinson ea0eff7a99 b=973374 complete speex_resampler_reset_mem r=jmspeex
sample_frac_num is the array most likely to be non-zero after resampling a
previous stream, but the other arrays can also be left at non-zero values
in other situations.

--HG--
extra : rebase_source : dfd3974f051ff0b1794a937d712dda185352f7d5
2014-02-18 09:52:20 +13:00
Mike Hommey 8fd06cf41b Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00