Commit graph

2351 commits

Author SHA1 Message Date
Gregory Maxwell
e699c1989c Testing tools improvements (no impact on draft) 2011-11-25 23:53:15 -05:00
Ralph Giles
10ebc02ecf Misc documentation fixes (no code change)
We use macros to encapsulate the appropriate type and size
information for the different CTL requests, but the macros
still need to be used with the _ctl() function call and an
encoder or decoder instance structure. As such, just listing
the macro defines is confusing. Adding some examples outside
the OpusEncoder overview page should help with this.

Also document that OPUS_SET_APPLICATION can take
OPUS_APPLICATION_RESTRICTED_LOWDELAY.
2011-11-25 23:25:38 -05:00
Ralph Giles
215938139e Fix various typing and spelling errors in the draft.
Also regularises some Canadian spelling to US like the rest of
the document.
2011-11-18 13:48:01 -08:00
Jean-Marc Valin
8298cbb7e2 Minor anti-collapse state fix
This fixes the tracking of the CELT anti-collapse energy. In some cases,
the energy for bands that weren't coded wasn't updated and could
come from old frames.
2011-11-08 00:43:23 -05:00
Jean-Marc Valin
a9d342e61e draft version update 2011-10-31 19:54:33 -04:00
Jean-Marc Valin
8ba1a0824a version bump 2011-10-31 19:53:06 -04:00
Jean-Marc Valin
09a84c8e4b Fixes a minor issue on CELT->SILK switching 2011-10-31 19:51:47 -04:00
Jean-Marc Valin
38c6a15092 version number bump 2011-10-31 17:21:55 -04:00
Jean-Marc Valin
0fd87bedcb More last-minute typos 2011-10-31 16:30:58 -04:00
Jean-Marc Valin
18ab935a05 Typos 2011-10-31 16:26:30 -04:00
Jean-Marc Valin
fe5fe9e14b Fixes sha1 of test1_mono 2011-10-31 16:08:51 -04:00
Jean-Marc Valin
2a8e2d8483 draft version/date change 2011-10-31 16:02:12 -04:00
Jean-Marc Valin
57db6c55d0 Test vectors update 2011-10-31 16:00:34 -04:00
Jean-Marc Valin
abaa348901 Adds -random_fec option to randomly add FEC to some frames.
Undocumented for now
2011-10-31 14:36:31 -04:00
Timothy B. Terriberry
917cd6e6ae Minor draft edits. 2011-10-31 14:12:25 -04:00
Ralph Giles
66767ee837 Clean up whitespace in the draft makefile.
Remove a trailing tab, and unexpand some tabs in the
source listing.
2011-10-31 13:56:58 -04:00
Jean-Marc Valin
27592c3e49 Multi-stream now checks that each stream at least contains a ToC. 2011-10-31 13:18:43 -04:00
Jean-Marc Valin
f8fc8f2960 Test vector warning 2011-10-31 13:09:51 -04:00
Jean-Marc Valin
a05a379fc4 Adds -random_framesize and -sweep_max options to opus_demo
Undocumented for now.
2011-10-30 22:49:35 -04:00
Jean-Marc Valin
23f3a1f1d7 Fixes a redundancy bug in glitchless SILK-SILK switching
The CELT encoder could end up using a non-max bit-rate and not use
all the bytes it's supposed to use.
2011-10-30 22:41:32 -04:00
Gregory Maxwell
afd05aca0c Fix multistream packet corruption, implement GET_FINAL_RANGE for multistream, and add many tests.
Multistream encode was failing to add the length of the extra length for
self-delimited packets causing corrupted output. Multistream decode was
not properly handling lost frames (and potentially reading out of bounds
as a result).

GET_FINAL_RANGE has been implemented as the xor of the final range of all
the streams in the packet.

test_opus_encode now does the mono narrowband tests using dual-mono
multistream.
2011-10-30 19:57:22 -04:00
Jean-Marc Valin
b77c44b46f draft: s/LSb/LSB/ 2011-10-30 16:58:56 -04:00
Gregory Maxwell
c81b510239 Fix a number of multistream decoder bugs; add some very basic multistream decoder tests. 2011-10-30 02:20:41 -04:00
Jean-Marc Valin
b975a426a0 draft: Better description of the CELT allocation and stereo decisions 2011-10-30 01:40:55 -04:00
Gregory Maxwell
38fc0d59bc Fix some inconsequential file descriptor leaks in the demo tools to silence cppcheck warnings. 2011-10-30 00:02:28 -04:00
Koen Vos
a44e95abd0 SILK encoder description 2011-10-29 21:50:17 -04:00
Gregory Maxwell
54a3495a52 Minor changes to test_opus_encode to improve coverage a little bit. 2011-10-29 18:19:23 -04:00
Jean-Marc Valin
acd3bce9b4 Removes "set but never used" variables 2011-10-29 17:46:18 -04:00
Jean-Marc Valin
64ae0a960b Silences a gcc warning 2011-10-29 17:28:51 -04:00
Gregory Maxwell
72b9b34da7 Newly introduced check_encoder_option failed unconditionally instead of only when you used the wrong options. 2011-10-29 03:45:13 -04:00
Jean-Marc Valin
7664d811a8 Removes unused order 14 in silk_LPC_analysis_filter_FLP() 2011-10-29 02:15:38 -04:00
Jean-Marc Valin
be236b1204 Considers the case where SILK busts its budget in hybrid mode 2011-10-29 02:12:26 -04:00
Koen Vos
fd152f55f5 fixes a mixup between decoder and PLC states 2011-10-29 00:24:46 -04:00
Koen Vos
1ee6b48c60 Fixes PLC initialization bug 2011-10-29 00:03:29 -04:00
Jean-Marc Valin
2f3ae499ff oops, bad copy-paste 2011-10-28 23:52:21 -04:00
Jean-Marc Valin
d6cad7aa42 Disabling some unused SILK functions from the float build 2011-10-28 23:20:55 -04:00
Gregory Maxwell
8fcfe02bc0 Update test_opus_encode / test_opus_decode for better LBRR/PLC testing and to reduce stack usage. 2011-10-28 23:15:04 -04:00
Jean-Marc Valin
fa3ef8dcda draft wip 2011-10-28 23:13:28 -04:00
Jean-Marc Valin
9fb5cee6ae Checking that encoder options aren't used for decoding in opus_demo
And vice versa
2011-10-28 22:41:55 -04:00
Jean-Marc Valin
e1c3eac46b oops, forgot to update the source list 2011-10-28 21:20:13 -04:00
Koen Vos
a3798d9b13 comment 2011-10-28 21:07:17 -04:00
Koen Vos
0dbd0ca3e6 Fixes two SILK PLC issues
- Calling the decoder for FEC when there's no LBRR should no longer crash
- There should no longer be an issue with the PLC on frame size switching
2011-10-28 21:05:22 -04:00
Koen Vos
acc7a6c78b Reformatting changes with an update to the MSVC project files 2011-10-28 19:44:26 -04:00
Jean-Marc Valin
2d4f614091 test vector wip, nothing to see here 2011-10-28 16:16:35 -04:00
Ralph Giles
9e19fe6ffb Use the fallback __GNUC_PREREQ from arch.h in ecintrin.h.
__GNUC_PREREQ is generally defined by glibc; ecintrin.h
was checking to see if it was defined before use for
portability to non-glibc systems. However, we now have
a fallback definition in arch.h.
2011-10-28 11:37:18 -07:00
Ralph Giles
7931a60135 Remove relative paths to opus.h.
Files are already compiled with -I./include, the relative
path in the #include line isn't necessary.
2011-10-28 11:30:57 -07:00
Ralph Giles
839de4d082 Remove the define check for __GNUC_PREREQ.
Our arch.h makes sure it's always defined. Thanks to derf
for the suggestion.
2011-10-28 11:03:29 -07:00
Ralph Giles
b4dd4eb780 Fix the test for gcc version >= 4.6 to work for gcc 5 and up.
We use the __GNUC_PREREQ macro from celt/arch.h to check
the required minimum gcc version. The previous check would
have failed for gcc 5.n with n from 0 to 5.

Thanks to pcgod for pointing out the problem and derf for
pointing out we had a macro for this.
2011-10-28 10:51:17 -07:00
Ralph Giles
732ac84452 Move opus_apps inside the MALLOC_FAIL block.
This array is only used by the malloc failure test, and
defining it unconditionally creates an unused variable
warning on platforms where MALLOC_FAIL isn't set.
2011-10-28 10:26:20 -07:00
Ralph Giles
455993f1e1 Make the MALLOC_FAIL test solely dependent on HAVE___MALLOC_HOOK.
This test only works on glibc, but the important thing is support
for the __malloc_hook api, so that's what we should depend on,
especially since not all glibc versions have it.
2011-10-28 10:20:16 -07:00