Nirbheek Chauhan
907a52315d
Replace WIN32 with _WIN32 everywhere
...
_WIN32 is defined on all Windows platforms by every compiler that
targets Windows. We do not need WIN32 at all.
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Resolves https://github.com/xiph/opus/pull/104
2020-08-21 23:35:29 -07:00
Mark Harris
c340d83689
test_opus_decode: Fix build on GCC 3.4 to 4.5.x
...
Broken by b0949f11
, reported by ko-zu on GitHub.
2017-02-18 20:54:19 -08:00
Jean-Marc Valin
b0949f1194
Temporarily disable -Wnonnull around an opus_decode() call in test_opus_decode.c
...
Reported by wtchang in trac: https://trac.xiph.org/ticket/2160
2016-11-01 16:10:36 -04:00
Jean-Marc Valin
386883179a
Fixing some opus_int vs opus_int32 mismatches
...
Reported by Mark Warner.
2016-10-05 00:09:00 -04:00
Mark Harris
b0b6d6aeac
test_opus_decode: Check all soft clip samples
2016-07-21 21:39:41 -07:00
Mark Harris
d401961a18
tests: Avoid shift into sign undefined behavior
2016-07-21 21:22:22 -07:00
Gregory Maxwell
f4d2c034a6
Put custom_encoder_init decl behind CUSTOM_MODES. More softclip tests.
...
This removes an unused definition warning when compiling without
custom modes.
2013-11-24 06:49:01 -08:00
Gregory Maxwell
abf91fe9d0
Minor opus_pcm_soft_clip API hardening and tests.
2013-11-22 11:32:32 -08:00
Gregory Maxwell
a9daf9fec3
Add a couple minor additional decoder tests.
2013-06-29 22:20:54 -07:00
James Zern
a41a585f35
test_opus_decode: force integer constants unsigned
...
Quiets:
warning: this decimal constant is unsigned only in ISO C90
when building with e.g., gcc -m32 -std=gnu90
2013-03-05 09:18:07 -08:00
Gregory Maxwell
19239ea3a2
Add tests for GET_LAST_PACKET_DURATION.
...
Also remove a useless extern that crept into the tests from some
optimization driven testcase generation.
2012-12-05 21:50:08 -05:00
Jean-Marc Valin
7fcd66c40d
Changes the PLC behaviour and fixes the FEC behaviour on concatenated packets
...
PLC and FEC now return exactly the number of samples specified for the
buffer rather than (usually) returning the size of the last packet.
Doc and tests are updated accordingly.
2012-12-04 15:07:45 -05:00
Ralph Giles
662ae9bb18
Include process.h for _getpid on windows.
...
Previously the test programmes happened to link because _getpid
returns an int, which is the default prototype. Instead, include
the appropriate header to supply a real declaration, fixing the
associated warning.
I moved the getpid->_getpid define to the site of the header
inclusion to make clear what's going on, rather than have it
floating in win32/config.h.
2012-10-23 13:04:36 -07:00
Gregory Maxwell
98eed74bf5
Avoid an inconsequential memory leak in tests/test_opus_decode.c.
...
Match up the exit behavior when the no-fuzz enviroment variable
is set.
2012-08-09 07:22:44 -04:00
Gregory Maxwell
ce87883686
Fix headers by mingw broken by recent win32 changes.
2012-07-14 11:00:24 -04:00
Gian-Carlo Pascutto
c0edd63737
Make tests work on MSVC.
...
Add project files for Opus tests, fixup test source for Win32.
2012-07-12 18:00:46 -04:00
Gregory Maxwell
f99e3292e7
Avoid an inconsequential memory leak in tests/test_opus_decode.c
2012-06-01 08:47:25 -04:00
Jean-Marc Valin
ab5a049705
Merge commit ' 390c89225d
'
2012-04-24 13:39:22 -04:00
Jean-Marc Valin
cb05e7cd96
s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"
...
Also added 3rd clause to "master" COPYING file
2012-04-20 16:41:42 -04:00
Gregory Maxwell
8770b0709b
CLANG IOC no longer likes the 'deterministic random' bitstreams, so move the test_opus_decode bailout up.
2012-03-06 12:01:36 -05:00
Gregory Maxwell
a26b2be2f9
Improvements to the tests, add a TEST_OPUS_NOFUZZ to disable testing corrupted input.
...
No changes to the codec itself.
2012-01-25 12:04:17 +13:00
Gregory Maxwell
e699c1989c
Testing tools improvements (no impact on draft)
2011-11-25 23:53:15 -05: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
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
Jean-Marc Valin
4923f3f80e
Moves the main headers from src/ to include/
2011-10-26 21:36:57 -04:00
Gregory Maxwell
a5ff49ecdc
Renames test_opus to opus_demo and adds the test_opus_api, test_opus_encode, test_opus_decode test programs.
2011-10-26 19:59:49 -04:00