1
0
Fork 0
forked from len0rd/rockbox

Clean up libmusepack: move declarations to internal.h and set svn properties.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25676 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-04-18 18:12:32 +00:00
parent be55f19ffd
commit 1cd1e66ed3
14 changed files with 17 additions and 14 deletions

1
apps/codecs/libmusepack/crc32.c Executable file → Normal file
View file

@ -4,6 +4,7 @@
* code from http://www.w3.org/TR/PNG/#D-CRCAppendix
*
*/
#include "internal.h"
/* Table of CRCs of all 8-bit messages. */
static unsigned long crc_table[256];

0
apps/codecs/libmusepack/huffman.c Executable file → Normal file
View file

View file

@ -100,6 +100,18 @@ static mpc_inline mpc_status mpc_check_key(char * key)
mpc_uint32_t mpc_random_int(mpc_decoder *d); // in synth_filter.c
void mpc_decoder_init_quant(mpc_decoder *d, double scale_factor);
void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData, mpc_int_t channels);
unsigned long mpc_crc32(unsigned char *buf, int len);
// streaminfo.c
mpc_status streaminfo_read_header_sv8(mpc_streaminfo* si,
const mpc_bits_reader * r_in,
mpc_size_t block_size);
mpc_status streaminfo_read_header_sv7(mpc_streaminfo* si, mpc_bits_reader * r_in);
void streaminfo_encoder_info(mpc_streaminfo* si, const mpc_bits_reader * r_in);
void streaminfo_gain(mpc_streaminfo* si, const mpc_bits_reader * r_in);
// mpc_decoder.c
void mpc_decoder_reset_scf(mpc_decoder * d, int value);
#ifdef __cplusplus
}

0
apps/codecs/libmusepack/minimax.h Executable file → Normal file
View file

0
apps/codecs/libmusepack/mpc_bits_reader.c Executable file → Normal file
View file

0
apps/codecs/libmusepack/mpc_bits_reader.h Executable file → Normal file
View file

View file

@ -133,7 +133,7 @@ void mpc_decoder_reset_scf(mpc_decoder * d, int value)
memset(d->SCF_Index_R, value, sizeof d->SCF_Index_R );
}
void mpc_decoder_setup(mpc_decoder *d)
static void mpc_decoder_setup(mpc_decoder *d)
{
memset(d, 0, sizeof *d);
@ -148,7 +148,7 @@ void mpc_decoder_setup(mpc_decoder *d)
mpc_decoder_init_quant(d, 1.0f);
}
void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si)
static void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si)
{
d->stream_version = si->stream_version;
d->ms = si->ms;

11
apps/codecs/libmusepack/mpc_demux.c Executable file → Normal file
View file

@ -52,17 +52,6 @@ static mpc_uint8_t g_buffer[DEMUX_BUFFER_SIZE + MAX_FRAME_SIZE];
static mpc_seek_t g_seek_table[MAX_SEEK_TABLE_SIZE];
static mpc_demux g_mpc_demux IBSS_ATTR;
// streaminfo.c
mpc_status streaminfo_read_header_sv8(mpc_streaminfo* si,
const mpc_bits_reader * r_in,
mpc_size_t block_size);
mpc_status streaminfo_read_header_sv7(mpc_streaminfo* si, mpc_bits_reader * r_in);
void streaminfo_encoder_info(mpc_streaminfo* si, const mpc_bits_reader * r_in);
void streaminfo_gain(mpc_streaminfo* si, const mpc_bits_reader * r_in);
// mpc_decoder.c
void mpc_decoder_reset_scf(mpc_decoder * d, int value);
enum {
MPC_BUFFER_SWAP = 1,
MPC_BUFFER_FULL = 2,

0
apps/codecs/libmusepack/mpc_types.h Executable file → Normal file
View file

0
apps/codecs/libmusepack/mpcdec.h Executable file → Normal file
View file

0
apps/codecs/libmusepack/mpcdec_math.h Executable file → Normal file
View file

View file

@ -38,6 +38,7 @@
#include "requant.h"
#include "mpcdec_math.h"
#include "decoder.h"
#include "internal.h"
/* C O N S T A N T S */
// Bits per sample for chosen quantizer

View file

@ -42,7 +42,6 @@
#include "huffman.h"
#include "mpc_bits_reader.h"
unsigned long mpc_crc32(unsigned char *buf, int len);
/* rockbox: not used
static const char na[] = "n.a.";
static char const * const versionNames[] = {

View file

@ -39,6 +39,7 @@
#include "mpcdec.h"
#include "decoder.h"
#include "mpcdec_math.h"
#include "internal.h"
/* C O N S T A N T S */
#undef _