Changeset 147 for libmpc/branches/r2d/include
- Timestamp:
- 11/20/06 19:53:36 (18 years ago)
- Location:
- libmpc/branches/r2d/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/include/mpc/mpc_types.h
r137 r147 72 72 typedef unsigned int mpc_uint_t; 73 73 // FIXME : must be the same size as a pointer 74 typedef unsigned int mpc_size_t;74 typedef size_t mpc_size_t; 75 75 76 76 /// Libmpcdec error codes -
libmpc/branches/r2d/include/mpcdec/mpcdec.h
r131 r147 57 57 58 58 typedef struct mpc_frame_info_t { 59 mpc_uint32_t samples; // number of samples in the frame60 mpc_ uint32_t bits; // number of bits consumed by this frame61 MPC_SAMPLE_FORMAT * buffer; // frame samples buffer (size = samples * channels * sizeof(MPC_SAMPLE_FORMAT)59 mpc_uint32_t samples; /// number of samples in the frame 60 mpc_int32_t bits; /// number of bits consumed by this frame (-1) if end of stream 61 MPC_SAMPLE_FORMAT * buffer; /// frame samples buffer (size = samples * channels * sizeof(MPC_SAMPLE_FORMAT) 62 62 } mpc_frame_info; 63 63 … … 75 75 // void mpc_decoder_set_seeking(mpc_decoder *p_dec, mpc_streaminfo *si, mpc_bool_t fast_seeking); 76 76 77 // void mpc_decoder_set_streaminfo(mpc_decoder *p_dec, mpc_streaminfo *si); 77 /** 78 * set the scf indexes for seeking use 79 * needed only for sv7 seeking 80 * @param d 81 */ 82 void mpc_decoder_reset_scf(mpc_decoder * d); 78 83 79 84 /// Sets decoder sample scaling factor. All decoded samples will be multiplied … … 92 97 void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i); 93 98 94 /// Seeks to the specified sample in the source stream.95 // mpc_bool_t mpc_decoder_seek_sample(mpc_decoder *p_dec, mpc_int64_t destsample);96 97 /// Seeks to specified position in seconds in the source stream.98 // mpc_bool_t mpc_decoder_seek_seconds(mpc_decoder *p_dec, double seconds);99 100 99 // init demuxer 101 100 mpc_demux * mpc_demux_init(mpc_reader * p_reader); … … 106 105 // get streaminfo 107 106 void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i); 107 // seek 108 mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_int64_t destsample); 109 mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds); 110 108 111 109 112 #ifdef __cplusplus -
libmpc/branches/r2d/include/mpcdec/streaminfo.h
r137 r147 64 64 mpc_uint32_t ms; ///< Mid/side stereo (0: off, 1: on) 65 65 mpc_uint32_t fast_seek; ///< True if stream supports fast-seeking (sv7) 66 mpc_uint32_t frames_per_block; ///< Number of frames in a block(sv8)66 mpc_uint32_t block_pwr; ///< Number of frames in a block = 2^block_pwr (sv8) 67 67 //@} 68 68
Note: See TracChangeset
for help on using the changeset viewer.