rockbox/lib/rbcodec/codecs/libatrac
Michael Giacomelli fc1d445d69 atrac3: keep the second window table out of small IRAM
b7170e03c4 added window_lookup_mid, 512 bytes, to IRAM on every
target. On the targets with 48KB of IRAM for a codec that left
the ATRAC3 codecs 48 bytes too large to link (iPod Color and the
other PP502x players with 96KB of IRAM).

Put the table in IRAM only on the targets with more, like the
decoder's other large tables. Nothing changes there.

Built for iPod Color, where the two codecs now have 476 bytes of
IRAM to spare, and for the iriver H120.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:18:33 -04:00
..
atrac3.c atrac3: output samples with 28 fractional bits 2026-10-06 21:56:47 -04:00
atrac3.h atrac3: output samples with 28 fractional bits 2026-10-06 21:56:47 -04:00
atrac3_arm.S atrac3: output samples with 28 fractional bits 2026-10-06 21:56:47 -04:00
atrac3_armv5e.S atrac3: remove the rounding bias of the ARMv5E QMF filter 2026-10-06 21:56:47 -04:00
atrac3data.h Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
atrac3data_fixed.h atrac3: keep the second window table out of small IRAM 2026-10-06 22:18:33 -04:00
fixp_math.h chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
libatrac.make chore: Get rid of *all* vestigal CVS '$Id:$' tags 2026-06-01 16:01:18 -04:00
README.rockbox Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
SOURCES Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00

Library: libatrac
Imported by : Mohamed Tarek
Import date : 10-August-2009

LICENSING INFORMATION

ffmpeg is licensed under the Lesser GNU General Public License.

IMPORT DETAILS

The decoder is based on ffmpeg-svn r18110 : Mar 21 2009.
Some changes were done on in order to use static VLC tables
according to this commit :
http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=4c20cf13a166577d93f5b2b0abb4609c60104d33

The decoder had been modified to use fixed-point arithmetic.

TESTING

The test program should compile in any Unix-like environment using the
command "make -f Makefile.test".

For ARM targets add -DCPU_ARM to CFLAGS in Makefile.test to make use of 
the asm ARM optimisations in rockbox's mdct library.

For Big-endian targets, change -D"ROCKBOX_LITTLE_ENDIAN=1" 
to -D"ROCKBOX_BIG_ENDIAN=1" in Makefile.test.

Running "./atractest file.rm" will decode the audio data to a WAV file
called "output.wav" in the current directory.