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/decoder.h

    r63 r68  
    3232  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3333*/
     34/// \file decoder.h
     35#ifndef _MPCDEC_DECODER_H_
     36#define _MPCDEC_DECODER_H_
     37#ifdef WIN32
     38#pragma once
     39#endif
    3440
    35 /// \file decoder.h
     41#include <mpcdec/reader.h>
    3642
    37 #ifndef _mpcdec_decoder_h_
    38 #define _mpcdec_decoder_h_
    39 
    40 #include "huffman.h"
    41 #include "math.h"
    42 #include "mpcdec.h"
    43 #include "reader.h"
    44 #include "streaminfo.h"
    45 
    46 #define MPC_SUPPORT_SV456
     43#ifdef __cplusplus
     44extern "C" {
     45#endif
    4746
    4847#define SEEKING_TABLE_SIZE  256u
     
    5352
    5453enum {
    55     MPC_V_MEM = 2304,
     54    MPC_V_MEM           = 2304,
    5655    MPC_DECODER_MEMSIZE = 16384,  // overall buffer size
    5756};
    5857
    59 typedef struct {
     58typedef struct mpc_quantizer {
    6059    mpc_int32_t  L [36];
    6160    mpc_int32_t  R [36];
    62 } QuantTyp;
     61} mpc_quantizer;
    6362
    64 typedef struct mpc_decoder_t {
     63struct mpc_decoder_t {
    6564    mpc_reader *r;
    6665
     
    101100    mpc_int32_t   SCF_Index_L [32] [3];
    102101    mpc_int32_t   SCF_Index_R [32] [3];       // holds scalefactor-indices
    103     QuantTyp      Q [32];                     // holds quantized samples
     102    mpc_quantizer Q [32];                     // holds quantized samples
    104103    mpc_int32_t   Res_L [32];
    105104    mpc_int32_t   Res_R [32];                 // holds the chosen quantizer for each subband
     
    110109    mpc_bool_t    MS_Flag[32];                // MS used?
    111110#ifdef MPC_FIXED_POINT
    112     unsigned char SCF_shift[256];
     111    mpc_uint8_t  SCF_shift[256];
    113112#endif
    114113
     
    120119    //@}
    121120
    122 } mpc_decoder;
     121};
    123122
    124 #endif // _mpc_decoder_h
     123#ifdef __cplusplus
     124}
     125#endif
     126#endif
Note: See TracChangeset for help on using the changeset viewer.