diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-06-04 05:41:59 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-06-04 05:41:59 +0000 |
| commit | cc11e9466a3aa2ffc67779f80b2059a326301660 (patch) | |
| tree | fe983231163513f062b9c3647cd0fc7e944527f2 /apps/codecs/libmusepack/decoder.h | |
| parent | 9ea6bc06da5902aa5e0fff77a1764ca9befd115b (diff) | |
| download | rockbox-cc11e9466a3aa2ffc67779f80b2059a326301660.zip rockbox-cc11e9466a3aa2ffc67779f80b2059a326301660.tar.gz rockbox-cc11e9466a3aa2ffc67779f80b2059a326301660.tar.bz2 rockbox-cc11e9466a3aa2ffc67779f80b2059a326301660.tar.xz | |
Further changes in mpc buffered seek. Remove magical number and replace it with a better commented #define. Use shift and bit mask instead of division and modulo operations when using the seek buffer. Saves some binary size for the codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17686 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/decoder.h')
| -rw-r--r-- | apps/codecs/libmusepack/decoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/libmusepack/decoder.h b/apps/codecs/libmusepack/decoder.h index 41ffe1c..499cd53 100644 --- a/apps/codecs/libmusepack/decoder.h +++ b/apps/codecs/libmusepack/decoder.h @@ -110,7 +110,8 @@ typedef struct mpc_decoder_t { mpc_uint32_t SeekTableCounter; // used to sum up skip info, if SeekTable_Step != 1 mpc_uint32_t MaxDecodedFrames; // Maximum frames decoded (indicates usable seek table entries) mpc_uint32_t* SeekTable; // seek table itself - mpc_uint8_t SeekTable_Step; // frames per seek table index + mpc_uint8_t SeekTable_Step; // 1<<SeekTable_Step = frames per table index + mpc_uint32_t SeekTable_Mask; // used to avoid modulo-operation in seek #ifdef MPC_FIXED_POINT mpc_uint8_t SCF_shift[256]; |