diff options
| author | Nils Wallménius <nils@rockbox.org> | 2011-06-01 10:28:26 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2011-06-01 10:28:26 +0000 |
| commit | 7c6056b352e35c5b12521b35ba193e13f75500be (patch) | |
| tree | a53215338a7c78bd47ebb3afedf41c0489a97f4e /apps/codecs/libmusepack | |
| parent | 05a1984eb32dd07bcf5d54c147ace4d6f56a00b4 (diff) | |
| download | rockbox-7c6056b352e35c5b12521b35ba193e13f75500be.zip rockbox-7c6056b352e35c5b12521b35ba193e13f75500be.tar.gz rockbox-7c6056b352e35c5b12521b35ba193e13f75500be.tar.bz2 rockbox-7c6056b352e35c5b12521b35ba193e13f75500be.tar.xz | |
FS#12140 by Sean Bartell, Make various codec stuff static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29942 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack')
| -rw-r--r-- | apps/codecs/libmusepack/mpc_decoder.c | 22 | ||||
| -rw-r--r-- | apps/codecs/libmusepack/mpcdec.h | 2 | ||||
| -rw-r--r-- | apps/codecs/libmusepack/requant.c | 2 |
3 files changed, 15 insertions, 11 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c index eb06385..7bf7935 100644 --- a/apps/codecs/libmusepack/mpc_decoder.c +++ b/apps/codecs/libmusepack/mpc_decoder.c @@ -118,13 +118,15 @@ enum //------------------------------------------------------------------------------ // forward declarations //------------------------------------------------------------------------------ -void mpc_decoder_requantisierung (mpc_decoder *d) - ICODE_ATTR_MPC_LARGE_IRAM; -void mpc_decoder_read_bitstream_sv7(mpc_decoder * d, mpc_bits_reader * r) - ICODE_ATTR_MPC_LARGE_IRAM; -void mpc_decoder_read_bitstream_sv8(mpc_decoder * d, mpc_bits_reader * r, - mpc_bool_t is_key_frame) - ICODE_ATTR_MPC_SV8_BS_DEC; +static void mpc_decoder_requantisierung (mpc_decoder *d) + ICODE_ATTR_MPC_LARGE_IRAM; +static void mpc_decoder_read_bitstream_sv7(mpc_decoder * d, + mpc_bits_reader * r) + ICODE_ATTR_MPC_LARGE_IRAM; +static void mpc_decoder_read_bitstream_sv8(mpc_decoder * d, + mpc_bits_reader * r, + mpc_bool_t is_key_frame) + ICODE_ATTR_MPC_SV8_BS_DEC; //------------------------------------------------------------------------------ // macros @@ -348,7 +350,7 @@ void mpc_decoder_decode_frame(mpc_decoder * d, } } -void +static void mpc_decoder_requantisierung(mpc_decoder *d) { mpc_int32_t Band; @@ -431,7 +433,7 @@ mpc_decoder_requantisierung(mpc_decoder *d) } } -void mpc_decoder_read_bitstream_sv7(mpc_decoder * d, mpc_bits_reader * r) +static void mpc_decoder_read_bitstream_sv7(mpc_decoder * d, mpc_bits_reader * r) { mpc_int32_t n, idx, Max_used_Band = 0; @@ -580,7 +582,7 @@ void mpc_decoder_read_bitstream_sv7(mpc_decoder * d, mpc_bits_reader * r) } } -void mpc_decoder_read_bitstream_sv8(mpc_decoder * d, mpc_bits_reader * r, mpc_bool_t is_key_frame) +static void mpc_decoder_read_bitstream_sv8(mpc_decoder * d, mpc_bits_reader * r, mpc_bool_t is_key_frame) { mpc_int32_t n, Max_used_Band; const mpc_can_data * Table, * Tables[2]; diff --git a/apps/codecs/libmusepack/mpcdec.h b/apps/codecs/libmusepack/mpcdec.h index 68754dc..85536e7 100644 --- a/apps/codecs/libmusepack/mpcdec.h +++ b/apps/codecs/libmusepack/mpcdec.h @@ -139,7 +139,9 @@ MPC_API void mpc_decoder_exit(mpc_decoder *p_dec); * by this factor. Useful for applying replay gain. * @param scale_factor multiplicative scaling factor */ +/* rockbox: changed to static MPC_API void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor); +*/ MPC_API void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i); diff --git a/apps/codecs/libmusepack/requant.c b/apps/codecs/libmusepack/requant.c index ad26867..5a113b0 100644 --- a/apps/codecs/libmusepack/requant.c +++ b/apps/codecs/libmusepack/requant.c @@ -90,7 +90,7 @@ static mpc_uint32_t find_shift(double fval) #define SET_SCF(N,X) d->SCF[N] = MAKE_MPC_SAMPLE_EX(X,d->SCF_shift[N] = (mpc_uint8_t) find_shift(X)); -void +static void mpc_decoder_scale_output(mpc_decoder *d, double factor) { mpc_int32_t n; double f1, f2; |