rockbox/lib/rbcodec/codecs
Michael Sevakis 4888131972 Update software recording engine to latest codec interface.
Basically, just give it a good rewrite.

Software codec recording can be implemented in a more straightforward
and simple manner and made more robust through the better codec
control now available.

Encoded audio buffer uses a packed format instead of fixed-size
chunks and uses smaller data headers leading to more efficient usage.
The greatest benefit is with a VBR format like wavpack which needs
to request a maximum size but only actually ends up committing part
of that request.

No guard buffers are used for either PCM or encoded audio. PCM is
read into the codec's provided buffer and mono conversion done at
that time in the core if required. Any highly-specialized sample
conversion is still done within the codec itself, such as 32-bit
(wavpack) or interleaved mono (mp3).

There is no longer a separate filename array. All metadata goes
onto the main encoded audio buffer, eliminating any predermined
file limit on the buffer as well as not wasting the space for
unused path queue slots.

The core and codec interface is less awkward and a bit more sensible.
Some less useful interface features were removed. Threads are kept
on narrow code paths ie. the audio thread never calls encoding
functions and the codec thread never calls file functions as before.

Codecs no longer call file functions directly. Writes are buffered
in the core and data written to storage in larger chunks to speed up
flushing of data. In fact, codecs are no longer aware of the stream
being a file at all and have no access to the fd.

SPDIF frequency detection no longer requires a restart of recording
or plugging the source before entering the screen. It will poll
for changes and update when stopped or prerecording (which does
discard now-invalid prerecorded data).

I've seen to it that writing a proper header on full disk works
when the format makes it reasonably practical to do so. Other cases
may have incorrect data sizes but sample info will be in tact. File
left that way may play anyway.

mp3_enc.codec acquires the ability to write 'Info' headers with LAME
tags to make it gapless (bonus).

Change-Id: I670685166d5eb32ef58ef317f50b8af766ceb653
Reviewed-on: http://gerrit.rockbox.org/493
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
2013-06-30 00:40:27 +02:00
..
demac
lib Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
liba52
libalac
libasap asap codec: remove invalid memset 2012-05-06 23:38:15 -04:00
libasf
libatrac
libcook
libfaad
libffmpegFLAC Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libgme Silence some (harmless) warnings. 2013-06-16 18:23:18 +02:00
libm4a remove extraneous parens 2012-05-06 23:41:37 -04:00
libmad Fix libmad compilation on MIPS with newer gcc. FS#12013 2012-06-11 23:17:19 +02:00
libmusepack Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libopus Fix opus craches with large embedded album art 2013-05-18 23:38:23 +02:00
libpcm Add support for 16 bit 'half float' format PCM. 2012-11-22 05:18:00 +01:00
librm
libspc SPC Codec ARMv5: I didn't have fast gauss quite right. 2013-05-26 00:33:30 -04:00
libspeex Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libtremor Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libtta
libwavpack Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libwma Fix audio corruption when sequentially playing low bitrate WMA files 2012-05-01 02:01:06 -04:00
libwmapro Expand the range of the WPA Pro quant table. Fixes FS#12704. 2012-07-03 18:43:44 -04:00
libwmavoice
a52.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
a52_rm.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
aac.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
adx.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
aiff.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
aiff_enc.c Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
alac.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
ape.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
asap.c
atrac3_oma.c
atrac3_rm.c
au.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
ay.c
codec_crt0.c
codecs.h Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
codecs.make Fix opus craches with large embedded album art 2013-05-18 23:38:23 +02:00
cook.c
flac.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
gbs.c
hes.c
kss.c
mod.c Remove STATICIRAM hack 2012-05-08 22:46:12 +02:00
mp3_enc.c Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
mpa.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
mpc.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
nsf.c
opus.c Opus: fix glitch caused by 2e9aa3d 2013-05-21 22:38:18 +02:00
raac.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
sgc.c
shorten.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
sid.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
smaf.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
SOURCES Initial opus codec support 2012-09-20 20:47:44 +02:00
spc.c
speex.c
tta.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
vgm.c VGM Codec: Improve time and fade behavior. Tweak minor misc. 2013-03-06 19:47:05 -05:00
vorbis.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
vox.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wav.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wav64.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wav_enc.c Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
wavpack.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wavpack_enc.c Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
wma.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wmapro.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
wmavoice.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00