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

15 Коммитов

Автор SHA1 Сообщение Дата
Ralph Giles b38e6e22a7 Bug 817179 - Fix an issue with Opus padding larger than 16. r=tterribe
Packets with with more than 2^24 padding length bytes could
overflow the packet length calculation. This change avoids
the wrap around behaviour.
2012-11-30 15:02:23 -08:00
Ralph Giles 0f2ab88ce4 Bug 811544 - Build fixed-point opus on arm. r=ted
Enable MOZ_OPUS_FIXED inside the opus makefile if
MOZ_SAMPLE_TYPE_FLOAT32 is not defined. This is the
general proxy for floating point audio support in
other areas of the code.

We could have defined MOZ_OPUS_FIXED directly in
the configure script (and still could) but I liked
this better.
2012-11-13 17:32:28 -08:00
Jan Beich 9eb8381d9f Bug 789656 - Use lrintf() in libopus on BSDs. r=rillian 2012-09-13 18:47:12 -04:00
Ralph Giles 41d94ed0c4 Bug 790381 - Update libopus to 1.0.0 release. r=derf
Update files to match the opus-1.0.0 source release.
This corresponds to the spec implementation included
in RFC 6716.

Changes from the previous in-tree version (draft-12):

 - Add extern "C" protection on opus_multistream.h.
 - Align to sizeof(void*) instead of 4 bytes.
 - Copyright header updates for IETF publication.
 - Minor documentation and whitespace fixes.
2012-09-11 13:08:00 -07:00
Ralph Giles 9e1fc83261 Bug 790381 - Filter out makefile comments in opus update.sh. r=derf
We read *_sources.mk from the opus source tree to get a list
of needed files. As of the 1.0.0 release, those files have
comment lines, which the previous sed one-liner failed to
strip out.

The earlier version attempted this with 's/^#.8//', but
the whole file has been read into memory so we can
remove the line continuation escapes. However, the
newlines are still present, so we can replace this
with 's/#[^\n]*\(\n\)/\1\g' Which replaces everything
from a comment character to a newline with a newline.

We have to capture and subsitute the final newline instead
of using a literal \n because portable sed doesn't expand
that character on the right-hand side. GNU sed will,
however.
2012-09-12 16:59:04 -04:00
Mike Hommey 70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ralph Giles 058b1c7520 Bug 776661 - Initialize all of the bytes in the incoming data structure in silk_get_TOC; r=rillian
Fixes a warning under clang in dead code. Ehsan's original patch
converted to upstream-carrying style and applied by rillian.
2012-07-23 17:42:37 -04:00
Ralph Giles a5a427105d Bug 759806 - Revert MPL2 on BSD opus source files - r=gerv
Bug 716478 added MPL2 license headers to a couple of (headerless) files
in media/libopus. These files are third-party code and covered until the
associated BSD license of the upstream project.

Although the files in question are either source file listings, or
programmatically generated, and as such not copyrightable, labelling
them as MPL2 is technically incorrect.

--HG--
extra : rebase_source : 0d639832b481755e5385ae4465149dee5b2fc5ad
2012-05-31 14:31:24 +12:00
Ginn Chen 9613686d16 Bug 758487 Fix libopus compile on Solaris/SPARC r=rillian 2012-05-28 09:33:35 +08:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Jacek Caban 28ed253c21 Bug 754797 - libopus fails to compile on mingw - r=rillian
Define HAVE_LRINTF when compiling with GCC on Windows to avoid
the MSVC assembly implementation in libopus/celt/float_cast.h.
2012-05-15 12:18:14 +02:00
Ralph Giles b5b15f5783 Bug 751607 - Update opus codec to the draft-12 source. r=derf
Updates our copy of the libopus reference implementation to
match http://tools.ietf.org/html/draft-ietf-codec-opus-12

This uses the v0.9.10/draft-12 tag from the upstream git repo.

Summary of changes:

- License header updates
- Warning fixes
- Comment improvements
2012-05-03 10:04:19 -07:00
Ed Morley 0f35229bca Merge mozilla-central to fx-team to pick up PGO fixes 2012-05-03 11:24:50 +01:00
Ralph Giles 4e5d9404d3 Bug 674225 - Add libopus to the mozilla build system. - r=ted
This builds the opus reference library in media/libopus.
We support both fixed and floating point builds, switched
by MOZ_OPUS_FIXED. Currently this isn't defined by anything
but should probably offer a configure option, and default
to true on arm.

Thanks to Tim Terriberry for additional review.
2012-04-30 16:20:22 -07:00
Ralph Giles 4b5cc3352d Bug 674225 - Add the opus draft-11 source to the tree. - r=derf
This is the IETF Opus audio codec reference implementation.
The source was copied into the tree using the included
update.sh script, from a checkout of the v0.9.9 git tag,
which corresponds to the source code published in
https://tools.ietf.org/id/draft-ietf-codec-opus-11.txt
2012-04-30 16:20:22 -07:00