Ignore:
Timestamp:
11/20/06 19:53:36 (18 years ago)
Author:
r2d
Message:
  • added a first version of the seek table for sv8
Location:
libmpc/branches/r2d/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/include/mpc/mpc_types.h

    r137 r147  
    7272typedef unsigned int mpc_uint_t;
    7373// FIXME : must be the same size as a pointer
    74 typedef unsigned int mpc_size_t;
     74typedef size_t mpc_size_t;
    7575
    7676/// Libmpcdec error codes
  • libmpc/branches/r2d/include/mpcdec/mpcdec.h

    r131 r147  
    5757
    5858typedef struct mpc_frame_info_t {
    59         mpc_uint32_t samples;   // number of samples in the frame
    60         mpc_uint32_t bits;      // number of bits consumed by this frame
    61         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)
    6262} mpc_frame_info;
    6363
     
    7575// void mpc_decoder_set_seeking(mpc_decoder *p_dec, mpc_streaminfo *si, mpc_bool_t fast_seeking);
    7676
    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 */
     82void mpc_decoder_reset_scf(mpc_decoder * d);
    7883
    7984/// Sets decoder sample scaling factor.  All decoded samples will be multiplied
     
    9297void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
    9398
    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 
    10099// init demuxer
    101100mpc_demux * mpc_demux_init(mpc_reader * p_reader);
     
    106105// get streaminfo
    107106void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
     107// seek
     108mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_int64_t destsample);
     109mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
     110
    108111
    109112#ifdef __cplusplus
  • libmpc/branches/r2d/include/mpcdec/streaminfo.h

    r137 r147  
    6464    mpc_uint32_t         ms;                 ///< Mid/side stereo (0: off, 1: on)
    6565        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)
    6767    //@}
    6868
Note: See TracChangeset for help on using the changeset viewer.