Ignore:
Timestamp:
11/08/06 00:20:07 (17 years ago)
Author:
r2d
Message:
  • can read sv7 & sv8
  • seek broken (not implemented)
  • added demuxer in API
  • added access to decoder in API
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpcdec/branches/zorg/src/decoder.h

    r81 r104  
    6262
    6363struct mpc_decoder_t {
    64     mpc_reader *r;
    65 
    6664    /// @name internal state variables
    6765    //@{
     66    mpc_uint32_t  SampleRate;                 // Sample frequency
     67    mpc_uint32_t  StreamVersion;              // version of bitstream
     68    mpc_uint32_t  Max_Band;
     69    mpc_uint32_t  MS_used;                    // MS-coding used ?
     70        mpc_uint32_t  TrueGaplessPresent;
     71        mpc_uint32_t  OverallFrames;              // number of frames in the stream, 0 = unknow
     72        mpc_uint32_t  LastFrameSamples;           // number of samples in the last frame
    6873
    69     mpc_uint32_t  dword; /// currently decoded 32bit-word
    70     mpc_uint32_t  pos;   /// bit-position within dword
    71     mpc_uint32_t  Speicher[MPC_DECODER_MEMSIZE]; /// read-buffer
    72     mpc_uint32_t  Zaehler; /// actual index within read-buffer
    73 
    74     mpc_uint32_t  samples_to_skip;
    75 
    76     mpc_uint32_t  DecodedFrames;
    77     mpc_uint32_t  OverallFrames;
    78     mpc_int32_t   SampleRate;                 // Sample frequency
    79 
    80     mpc_uint32_t  StreamVersion;              // version of bitstream
    81     mpc_int32_t   Max_Band;
    82     mpc_uint32_t  MPCHeaderPos;               // AB: needed to support ID3v2
    83 
    84     mpc_uint32_t  FrameWasValid;
    85     mpc_uint32_t  MS_used;                    // MS-coding used ?
    86     mpc_uint32_t  TrueGaplessPresent;
    87 
    88     mpc_uint32_t  WordsRead;                  // counts amount of decoded dwords
    89         mpc_uint32_t  BlockBits;                  // block bits left to read
     74        mpc_uint32_t  samples_to_skip;
     75        mpc_uint32_t  DecodedFrames;
    9076
    9177    // randomizer state variables
    9278    mpc_uint32_t  __r1;
    9379    mpc_uint32_t  __r2;
    94 
    95     // seeking
    96     mpc_uint32_t  seeking_table[SEEKING_TABLE_SIZE];
    97     mpc_uint32_t  seeking_pwr;                // distance between 2 frames in seeking_table = 2^seeking_pwr
    98     mpc_uint32_t  seeking_table_frames;       // last frame in seaking table
    99     mpc_uint32_t  seeking_window;             // number of frames to look for scalefactors
    10080
    10181    mpc_int32_t   SCF_Index_L [32] [3];
     
    11999    MPC_SAMPLE_FORMAT SCF[256]; ///< holds adapted scalefactors (for clipping prevention)
    120100    //@}
    121 
    122101};
    123102
Note: See TracChangeset for help on using the changeset viewer.