Ignore:
Timestamp:
10/31/06 11:47:09 (17 years ago)
Author:
r2d
Message:
  • first SV8 decoding, it's VERY BADLY implemented. To enable decoding, MPC_LITTLE_ENDIAN must NOT be defined on 386 (so sv7 doesn't work in the same time). Was just to verify that there is no bug in encoding (found 1 !)
File:
1 edited

Legend:

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

    r70 r81  
    5252}
    5353
     54typedef struct  {
     55        char key[2];    // block key
     56        mpc_uint64_t size;      // block size minus the block header size
     57} mpc_block_t;
     58
     59
     60/// read a block header and fills the mpc_block_t struct.
     61///
     62/// \param p_reader supplying raw stream data
     63/// \param p_block returned block header
     64/// \return MPC_STATUS_FILE on errors of any kind
     65mpc_status mpc_get_block(mpc_reader * p_reader, mpc_block_t * p_block);
     66
     67/// find a block with key == find_key, stop search if key == stop_key;
     68///
     69/// \param p_reader supplying raw stream data
     70/// \param p_block returned block header
     71/// \param find_key key to find
     72/// \param stop_key key to stop on
     73/// \return MPC_STATUS_FILE on errors of any kind
     74mpc_status mpc_find_block(mpc_reader * p_reader, mpc_block_t * p_block,
     75                                                  char * find_key, char * stop_key);
     76
     77typedef struct  {
     78        unsigned int buff;
     79        unsigned int bitsCount;
     80} mpc_bits_reader;
     81
     82mpc_uint32_t mpc_read_bits(mpc_reader * p_reader, mpc_bits_reader * p_bits,
     83                                                   int nb_bits);
     84
    5485/// Searches for a ID3v2-tag and reads the length (in bytes) of it.
    5586///
Note: See TracChangeset for help on using the changeset viewer.