summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/codebook.c (unfollow)
Commit message (Collapse)Author
2012-04-25Add codecs to librbcodec.Sean Bartell
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
2011-08-28libtremor: remove some inline cf asm that is no longer needed with the new ↵Nils Wallménius
toolchain, no speed diff. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30371 a1c6a512-1295-4272-9138-f99709370657
2010-12-12Revert tab police as it makes merging upstream changes more annoying and ↵Nils Wallménius
messed up indentation in some places. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28818 a1c6a512-1295-4272-9138-f99709370657
2010-12-12Tab police.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28817 a1c6a512-1295-4272-9138-f99709370657
2010-12-08libtremor: merge upstream revisions 17541, 17542, 17543, 17544, 17545, ↵Nils Wallménius
17546, 17547, 17555, 17572, bringing in various fixes and finally bringing our libtremor up to date, for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28773 a1c6a512-1295-4272-9138-f99709370657
2010-12-08libtremor: merge upstream revision 17539 and 17540 'Additional codebook ↵Nils Wallménius
validity checks.' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28771 a1c6a512-1295-4272-9138-f99709370657
2010-12-08libtremor: merge upstream revision 17528-17530, more error checking and bug ↵Nils Wallménius
fixes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28768 a1c6a512-1295-4272-9138-f99709370657
2010-12-07libtremor: merge upstream revision 17525 'Commit additional hardening to ↵Nils Wallménius
setup packet decode.' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28762 a1c6a512-1295-4272-9138-f99709370657
2010-12-06libtremor: merge upstream revision 17512 'Correctly handle the nonsensical ↵Nils Wallménius
codebook.dim==0 case.' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28746 a1c6a512-1295-4272-9138-f99709370657
2010-12-06libtremor: merge upstream revision 17511 'Add checks/rejection for absurdly ↵Nils Wallménius
huge codebooks.' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28745 a1c6a512-1295-4272-9138-f99709370657
2010-12-06libtremor:Nils Wallménius
Merge in upstream revision 17375. This removes tremor's internal ogg code and now uses libogg instead so a bunch of changes are just adjusting to the new api. Also brings in improvements to vorbisfile which fixes FS#10484. Disabled a lot of unused code in the libogg files and moved some small functions into the ogg.h header so they can be inlined. Some small tweaks to fix warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28742 a1c6a512-1295-4272-9138-f99709370657
2010-11-15libtremor: correct constraint for coldfire asm, swap can only be used on ↵Nils Wallménius
data registers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28604 a1c6a512-1295-4272-9138-f99709370657
2010-10-31libtremor: tweak a hot function for codebook decoding, mostly moving pointer ↵Nils Wallménius
lookups outside the loop. Speeds up decoding by 3-6% on Coldfire and a small speedup on arm too git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28419 a1c6a512-1295-4272-9138-f99709370657
2010-10-16libtremor: tiny optimization 0.5%-1.5% on coldfire and PPNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28285 a1c6a512-1295-4272-9138-f99709370657
2010-07-01Factor out sane code list bisection code and use instead of insane code, ↵Nils Wallménius
clean up some tests for readability's sake. Gives a small speedup on h300 (coldfire, 0.1-0.6MHz) and a tiny speedup on gigabeat s (armv6 0.1-0.2MHz), no real difference on PP. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27223 a1c6a512-1295-4272-9138-f99709370657
2010-05-12Simplify special case function, speedup of about 0.2MHz on both coldfire and ↵Nils Wallménius
pp decoding the files in the test set git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25977 a1c6a512-1295-4272-9138-f99709370657
2010-03-16Change various CPU_ARM defines to _ARM_ASSEM_ to be more consistent with the ↵Michael Giacomelli
rest of Tremor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25214 a1c6a512-1295-4272-9138-f99709370657
2010-03-05Fix broken whitespace after r24862Nils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25031 a1c6a512-1295-4272-9138-f99709370657
2010-02-22Remove all tabs within codec path.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24862 a1c6a512-1295-4272-9138-f99709370657
2009-12-23Assembler optimised bitreverse for ARM, again a little bit faster and ↵Jens Arnold
smaller. * Separated 'x' and 'ret' gives gcc a bit more freedom regarding register allocation (except on coldfire where it doesn't matter). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24107 a1c6a512-1295-4272-9138-f99709370657
2009-12-23Improved bitrev with approach suggested by Jens Arnold, gives 0.5%-1% ↵Nils Wallménius
speedup for tremor decoding on sansa c200 (PP) and a tiny speedup on coldfire as well git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24102 a1c6a512-1295-4272-9138-f99709370657
2009-12-21Use optimised byteswap function in bitrev for a tiny speedup on coldfire and ↵Nils Wallménius
pp and about 1-2% speedup on gigabeat s (due to the armv6 rev instruction) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24095 a1c6a512-1295-4272-9138-f99709370657
2009-02-17Commit FS#9915 by Sei Aoyumi. Adds hints to help GCC better optimize vorbis ↵Michael Giacomelli
decoding. Gives a minor speed increase. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20030 a1c6a512-1295-4272-9138-f99709370657
2008-11-22Macros should be ALL CAPS, so rename (un)likely() to (UN)LIKELY()Nils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19181 a1c6a512-1295-4272-9138-f99709370657
2008-11-20Introduce likely() and unlikely() macros, use to give gcc hints about which ↵Nils Wallménius
branch is likely to be taken in a conditional, use them in the midi player for a small speedup, use instead of similar EXPECT macros in tremor and use in mpegplayer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19162 a1c6a512-1295-4272-9138-f99709370657
2008-11-05Codec lib directories renamed, except for demac.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19018 a1c6a512-1295-4272-9138-f99709370657
2007-09-27FS #7833: Optimizations to the Vorbis codec:Tomasz Malesinski
- ARM assembly version of parts of mdct, - special case for vorbis_book_decodevv_add for 2 channels and even book->dim, - store the output in vb->pcm if possible, as it is usually in IRAM as opposed to v->pcm. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14875 a1c6a512-1295-4272-9138-f99709370657
2007-07-01Vorbis: Apply various bugfixes from upstream Tremor.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13756 a1c6a512-1295-4272-9138-f99709370657
2007-03-24FS #6848 - optimizations of Huffman decoding in Tremor.Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12903 a1c6a512-1295-4272-9138-f99709370657
2006-09-05Recude iram usage for the Vorbis decoder a little. Makes it possible to ↵Magnus Holmgren
build with gcc 4.0.3. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10891 a1c6a512-1295-4272-9138-f99709370657
2005-07-28Tweaked IRAM usage in the Vorbis codec. Speeds up decoding by about 10% on a ↵Magnus Holmgren
couple of test files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7249 a1c6a512-1295-4272-9138-f99709370657
2005-06-06Vorbis optimizations: allocation of PCM buffers in IRAM, avoiding copying.Pedro Vasconcelos
Slight code improvements to the MDCT functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6590 a1c6a512-1295-4272-9138-f99709370657
2005-05-27Basic optimizations of the Vorbis decoder for the ihp-1x0.Pedro Vasconcelos
Capable of real-time decoding with cpu freq at 120mhz. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6527 a1c6a512-1295-4272-9138-f99709370657
2005-02-28Get malloc() and friends out of the way for the cygwin linker (and maybe ↵Jens Arnold
others), to make plugins work properly in the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6086 a1c6a512-1295-4272-9138-f99709370657
2005-02-17Initial commit of the the Ogg Vorbis 'Tremor' integer playback codecMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5996 a1c6a512-1295-4272-9138-f99709370657