Commit graph

11 commits

Author SHA1 Message Date
Jean-Marc Valin
c5f999097f Fixes tandem-test.c 2011-03-18 15:47:53 -04:00
Jean-Marc Valin
1111db3163 Oops, forgot COPYING and the tandem test 2011-02-09 23:14:03 -05:00
Timothy B. Terriberry
a093f4df74 Refactor the entropy coder.
This unifies the byte buffer, encoder, and decoder into a single
 struct.
The common encoder and decoder functions (such as ec_tell()) can
 operate on either one, simplifying code which uses both.
The precision argument to ec_tell() has been removed.
It now comes in two precisions:
  ec_tell() gives 1 bit precision in two operations, and
  ec_tell_frac() gives 1/8th bit precision in... somewhat more.
ec_{enc|dec}_bit_prob() were removed (they are no longer needed).
Some of the byte buffer access functions were made static and
 removed from the cross-module API.
All of the code in rangeenc.c and rangedec.c was merged into
 entenc.c and entdec.c, respectively, as we are no longer
 considering alternative backends.
rangeenc.c and rangede.c have been removed entirely.

This passes make check, after disabling the modes that we removed
 support for in cf5d3a8c.
2011-02-03 21:48:52 -05:00
Jean-Marc Valin
c97b258c62 celt_encoder_create() now defaults to Opus standard mode
The old constructor is renamed celt_encoder_create_custom(). Same
for the decoder.
2011-01-28 23:07:32 -05:00
Jean-Marc Valin
c52d768943 Minor fixes to testcases 2011-01-11 09:42:28 -05:00
David Schleef
b045a26a68 MSVC build fixes 2011-01-11 09:33:08 -05:00
Gregory Maxwell
4a11daa233 Updates tandem-test for more robust error reporting and additional frame sizes and sample rates. 2010-09-29 20:07:22 -04:00
Jean-Marc Valin
d56c610cac API change: optional resynthesis
The main encode call no longer takes a pointer for the optional resynthesis.
It's now done with a call to celt_encode_resynthesis().
2010-05-07 21:20:22 -04:00
Jean-Marc Valin
017fa85775 Changing the encoder API to add the frame size 2010-05-07 21:20:22 -04:00
Jean-Marc Valin
80ed147663 The number of channels is now set when creating the states rather than when
creating the mode. This means that the same mode can be shared for mono and
stereo.
2009-10-15 21:45:32 -04:00
Gregory Maxwell
7aa0ed40c1 Make ectest use random random numbers. Add a new test
"tandem-test" which tests the encoder and decoder in
many modes.
2009-05-26 22:44:04 -04:00