Changeset 6 for trunk/include/mpcdec


Ignore:
Timestamp:
08/12/06 16:24:59 (18 years ago)
Author:
zorg
Message:

Update to 1.2.1

Location:
trunk/include/mpcdec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/mpcdec/internal.h

    r3 r6  
    4747static __inline
    4848mpc_uint32_t swap32(mpc_uint32_t val) {
    49     const unsigned char* src = (const unsigned char*)&val;
    50     return
    51         (mpc_uint32_t)src[0] |
    52         ((mpc_uint32_t)src[1] << 8) | ((mpc_uint32_t)src[2] << 16) | ((mpc_uint32_t)src[3] << 24);
     49    return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) |
     50            ((val & 0x0000ff00) <<  8) | ((val & 0x000000ff) << 24));
    5351}
    5452
  • trunk/include/mpcdec/mpcdec.h

    r4 r6  
    101101mpc_bool_t mpc_decoder_initialize(mpc_decoder *d, mpc_streaminfo *si);
    102102
     103void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si);
     104
    103105/// Sets decoder sample scaling factor.  All decoded samples will be multiplied
    104106/// by this factor.
     
    120122    mpc_uint32_t *vbr_update_bits);
    121123
     124mpc_uint32_t mpc_decoder_decode_frame(
     125    mpc_decoder *d,
     126    mpc_uint32_t *in_buffer,
     127    mpc_uint32_t in_len,
     128    MPC_SAMPLE_FORMAT *out_buffer);
     129
    122130/// Seeks to the specified sample in the source stream.
    123131mpc_bool_t mpc_decoder_seek_sample(mpc_decoder *d, mpc_int64_t destsample);
Note: See TracChangeset for help on using the changeset viewer.