Commit [836da0]  Maximize  Restore  History

The automated book training scripts managed to create a few residue

books with no codewords (in that mode with that partitioning scheme,
no values happened to fall into that partition). This is not really
an error.

However, the residue encoding code did not account for the possibility
of looking up a codebook best match and finding no entries. Because
the unused book only came up very rarely (four hours of training audio
didn't hit it once), it took a while to notice and only comes up on
platforms with subtly different FP than the machine used to do

This bug affects very low bitrate stereo 8, 11, 16 and 22kHz modes;
added code to check for 'no match in codebook' (correct behavior is to
encode nothing) and for good measure, removed the four dummy codebooks
as there's no point in wasting a few bytes in the header to pack a

Closes bug 1142.

git-svn-id: 0101bb08-14d6-0310-b084-bc0e0c8e3800

xiphmont xiphmont 2007-06-22

changed lib/books/coupled/res_books_stereo.h
changed lib/modes/residue_16.h
changed lib/modes/residue_8.h
lib/books/coupled/res_books_stereo.h Diff Switch to side-by-side view
lib/modes/residue_16.h Diff Switch to side-by-side view
lib/modes/residue_8.h Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks