Ignore:
Timestamp:
09/16/06 16:55:23 (18 years ago)
Author:
zorg
Message:

Merge remaining interesting bits from rockbox svn including seeking code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/zorg/include/mpcdec/decoder.h

    r18 r21  
    4545
    4646#define MPC_SUPPORT_SV456
     47#define SCF_HACK
    4748
    4849enum {
     
    6263    //@{
    6364
     65    mpc_uint32_t  next;
    6466    mpc_uint32_t  dword; /// currently decoded 32bit-word
    6567    mpc_uint32_t  pos;   /// bit-position within dword
    66     mpc_uint32_t  Speicher[MPC_DECODER_MEMSIZE]; /// read-buffer
     68    mpc_uint32_t  *Speicher; /// read-buffer
    6769    mpc_uint32_t  Zaehler; /// actual index within read-buffer
     70    mpc_uint32_t  Ring;
    6871
    6972    mpc_uint32_t  samples_to_skip;
    70 
     73    mpc_uint32_t  last_block_samples;
    7174    mpc_uint32_t  FwdJumpInfo;
    7275    mpc_uint32_t  ActDecodePos;
     
    7578    mpc_uint32_t  DecodedFrames;
    7679    mpc_uint32_t  OverallFrames;
     80    mpc_uint32_t  MaxDecodedFrames;           // Maximum frames decoded (indicates usable seek table entries)
     81    mpc_uint16_t  SeekTableIndex;
     82    mpc_uint32_t  SeekTableCounter;
    7783    mpc_int32_t   SampleRate;                 // Sample frequency
    7884
     
    105111    //mpc_int32_t   DSCF_Reference_R [32];      // holds last frames SCF
    106112    mpc_bool_t    MS_Flag[32];                // MS used?
     113
     114    mpc_uint32_t* SeekTable;
     115    mpc_bool_t    Use_SeekTable;
     116    mpc_bool_t    Use_FastSeek;
     117    mpc_bool_t    Use_StaticSeekTable;
     118    mpc_uint8_t   SeekTable_Step;
     119    mpc_uint32_t  Max_SeekTable_Size;
     120
    107121#ifdef MPC_FIXED_POINT
    108122    mpc_uint8_t   SCF_shift[256];
     
    111125    MPC_SAMPLE_FORMAT V_L[MPC_V_MEM + 960];
    112126    MPC_SAMPLE_FORMAT V_R[MPC_V_MEM + 960];
    113     MPC_SAMPLE_FORMAT Y_L[36][32];
    114     MPC_SAMPLE_FORMAT Y_R[36][32];
     127    MPC_SAMPLE_FORMAT (*Y_L)[32];
     128    MPC_SAMPLE_FORMAT (*Y_R)[32];
    115129    MPC_SAMPLE_FORMAT SCF[256]; ///< holds adapted scalefactors (for clipping prevention)
    116130    //@}
Note: See TracChangeset for help on using the changeset viewer.