Ignore:
Timestamp:
02/08/07 14:29:39 (17 years ago)
Author:
r2d
Message:
  • added sv7 to sv8 conversion utility (still work to do, but able to convert basic files)
  • moved libmpcenc functions prototypes in libmpcenc.h
  • removed global variables from encode_sv7 (put in mpc_encoder_t)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcenc/libmpcenc.h

    r161 r203  
    3636
    3737typedef struct {
    38         unsigned int  L [36];
    39         unsigned int  R [36];
    40 } SubbandQuantTyp;
    41 
    42 typedef struct {
    4338        mpc_uint16_t    Code;        // >= 14 bit
    4439        mpc_uint16_t    Length;      // >=  4 bit
     
    6358        FILE * outputFile; // ouput file
    6459
    65         unsigned int  MS_Channelmode;
    66         unsigned int  Overflows; //       = 0;      // number of internal (filterbank) clippings
    67         unsigned int MaxBand; /// number of non zero bands in last frame
     60        mpc_uint32_t MS_Channelmode;
     61        mpc_uint32_t Overflows; //       = 0;      // number of internal (filterbank) clippings
     62        mpc_uint32_t MaxBand; /// number of non zero bands in last frame
     63
     64        mpc_int32_t   SCF_Index_L [32] [3];
     65        mpc_int32_t   SCF_Index_R [32] [3];       // holds scalefactor-indices
     66        mpc_int32_t   SCF_Last_L  [32];
     67        mpc_int32_t   SCF_Last_R  [32];           // Last coded SCF value
     68        mpc_quantizer Q [32];                     // holds quantized samples
     69        mpc_int32_t   Res_L [32];
     70        mpc_int32_t   Res_R [32];                 // holds the chosen quantizer for each subband
     71        mpc_bool_t    DSCF_Flag_L [32];
     72        mpc_bool_t    DSCF_Flag_R [32];           // differential SCF used?
     73        mpc_bool_t    MS_Flag[32];                // MS used?
    6874 } mpc_encoder_t;
    6975
     76 void         Init_SV8             ( mpc_encoder_t* );
     77 void writeStreamInfo ( mpc_encoder_t*e,
     78                                                const unsigned int  MaxBand,
     79                                                const unsigned int  MS_on,
     80                                                const unsigned int  SamplesCount,
     81                                                const unsigned int  SampleFreq,
     82                                                const unsigned int  ChannelCount);
     83 void writeEncoderInfo ( mpc_encoder_t * e,
     84                                                 const float profile,
     85                                                 const int PNS_on,
     86                                                 const int version_major,
     87                                                 const int version_minor,
     88                                                 const int version_implement,
     89                                                 const int version_build );
     90 void writeBlock ( mpc_encoder_t * e, const char * key, const mpc_bool_t addCRC);
     91 void writeMagic (mpc_encoder_t * e);
     92 void writeBits (mpc_encoder_t * e, mpc_uint32_t input, unsigned int bits );
     93 void writeSeekTable (mpc_encoder_t * e);
     94 void writeBitstream_SV8 ( mpc_encoder_t*, int);
     95
Note: See TracChangeset for help on using the changeset viewer.