Changeset 6 for trunk/include
- Timestamp:
- 08/12/06 16:24:59 (18 years ago)
- Location:
- trunk/include/mpcdec
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/mpcdec/internal.h
r3 r6 47 47 static __inline 48 48 mpc_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)); 53 51 } 54 52 -
trunk/include/mpcdec/mpcdec.h
r4 r6 101 101 mpc_bool_t mpc_decoder_initialize(mpc_decoder *d, mpc_streaminfo *si); 102 102 103 void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si); 104 103 105 /// Sets decoder sample scaling factor. All decoded samples will be multiplied 104 106 /// by this factor. … … 120 122 mpc_uint32_t *vbr_update_bits); 121 123 124 mpc_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 122 130 /// Seeks to the specified sample in the source stream. 123 131 mpc_bool_t mpc_decoder_seek_sample(mpc_decoder *d, mpc_int64_t destsample);
Note: See TracChangeset
for help on using the changeset viewer.