Ignore:
Timestamp:
10/06/06 17:14:05 (18 years ago)
Author:
zorg
Message:

Separated public interface from private headers
Use opaque objects whenever possible
Some (useless?) cosmetics on libmpcdec
Remove sv5-6 outdated support
Added libwavformat for upcoming mpcdec
New layout
Work in progress...

File:
1 moved

Legend:

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

    r63 r68  
    3232  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3333*/
    34 
    3534/// \file internal.h
    3635/// Definitions and structures used only internally by the libmpcdec.
     36#ifndef _MPCDEC_INTERNAL_H_
     37#define _MPCDEC_INTERNAL_H_
     38#ifdef WIN32
     39#pragma once
     40#endif
     41#ifdef __cplusplus
     42extern "C" {
     43#endif
    3744
    38 #ifndef _mpcdec_internal_h
    39 #define _mpcdec_internal_h
    40 
     45#include <mpcdec/mpcdec.h>
    4146
    4247enum {
    43     MPC_DECODER_SYNTH_DELAY = 481
     48    MPC_FRAME_LENGTH          = (36 * 32),              ///< Samples per mpc frame
     49    MPC_DECODER_BUFFER_LENGTH = (MPC_FRAME_LENGTH * 4), ///< Required buffer size for decoder
     50    MPC_DECODER_SYNTH_DELAY   = 481
    4451};
    4552
    4653/// Big/little endian 32 bit byte swapping routine.
    47 static __inline
     54static mpc_inline
    4855mpc_uint32_t mpc_swap32(mpc_uint32_t val) {
    49     return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) |
    50             ((val & 0x0000ff00) <<  8) | ((val & 0x000000ff) << 24));
     56    return (((val & 0xFF000000) >> 24) | ((val & 0x00FF0000) >> 8)
     57          | ((val & 0x0000FF00) <<  8) | ((val & 0x000000FF) << 24));
    5158}
    5259
    5360/// Searches for a ID3v2-tag and reads the length (in bytes) of it.
    54 /// \param reader supplying raw stream data
     61///
     62/// \param p_reader supplying raw stream data
    5563/// \return size of tag, in bytes
    56 /// \return -1 on errors of any kind
    57 mpc_int32_t JumpID3v2(mpc_reader* fp);
     64/// \return MPC_STATUS_FILE on errors of any kind
     65mpc_int32_t mpc_skip_id3v2(mpc_reader* p_reader);
    5866
    5967/// helper functions used by multiple files
     
    6270void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData);
    6371
    64 #endif // _mpcdec_internal_h
    65 
     72#ifdef __cplusplus
     73}
     74#endif
     75#endif
Note: See TracChangeset for help on using the changeset viewer.