Changeset 116 for mppenc/branches/r2d/libmpcenc
- Timestamp:
- 11/11/06 18:19:44 (18 years ago)
- Location:
- mppenc/branches/r2d/libmpcenc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/libmpcenc/encode_sv7.c
r78 r116 80 80 // writes SV8-header 81 81 void 82 WriteHeader_SV8( mpc_encoder_t*e,82 writeStreamInfo ( mpc_encoder_t*e, 83 83 const unsigned int MaxBand, 84 84 const unsigned int MS_on, 85 85 const unsigned int SamplesCount, 86 const unsigned int StreamVersion,87 const unsigned int PNS_on,88 86 const unsigned int SampleFreq, 89 87 const unsigned int ChannelCount) … … 93 91 int i; 94 92 95 writeBits ( e, StreamVersion, 8 ); // StreamVersion93 writeBits ( e, 0x08, 8 ); // StreamVersion 96 94 97 95 for( i = 0; i < samplesCountLen; i++) // nb of samples … … 109 107 writeBits ( e, ChannelCount - 1 , 4 ); // Channels 110 108 writeBits ( e, MaxBand - 1 , 5 ); // Bandwidth 111 writeBits ( e, 0 , 1 ); // former IS-Flag (not supported anymore)112 109 writeBits ( e, MS_on , 1 ); // MS-Coding Flag 113 writeBits ( e, PNS_on , 1 ); // PNS flag114 110 writeBits ( e, FRAMES_PER_BLOCK_PWR, 4 ); // frames per block (log2 unit) 111 } 112 113 // writes encoder signature 114 void writeEncoderInfo ( mpc_encoder_t * e, 115 const int profile, 116 const int PNS_on, 117 const int version_major, 118 const int version_minor, 119 const int version_implement, 120 const int version_build ) 121 { 122 writeBits ( e, profile, 4 ); 123 writeBits ( e, PNS_on, 1 ); 124 writeBits ( e, 0, 3 ); // unused 125 writeBits ( e, version_major, 4 ); 126 writeBits ( e, version_minor, 8 ); 127 writeBits ( e, version_implement, 4 ); 128 writeBits ( e, version_build, 8 ); 129 } 130 131 // writes replay gain info 132 void writeGainInfo ( mpc_encoder_t * e ) 133 { 134 writeBits ( e, 1, 8 ); // version 135 writeBits ( e, 0, 16 ); // Title gain 136 writeBits ( e, 0, 16 ); // Title peak 137 writeBits ( e, 0, 16 ); // Album gain 138 writeBits ( e, 0, 16 ); // Album peak 115 139 } 116 140 -
mppenc/branches/r2d/libmpcenc/libmpcenc.h
r78 r116 25 25 #ifndef NULL 26 26 #define NULL 0 27 #endif28 29 // FIXME : remove MPPENC_VERSION from here30 #ifndef MPPENC_VERSION31 # define MPPENC_VERSION "1.15w-6"32 27 #endif 33 28
Note: See TracChangeset
for help on using the changeset viewer.