Changeset 47 for mppenc/branches/zorg/src
- Timestamp:
- 09/23/06 14:52:51 (18 years ago)
- Location:
- mppenc/branches/zorg/src
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/zorg/src/encode_sv7.c
r46 r47 93 93 WriteBits ( 1 , 1 ); // true gapless: used? 94 94 WriteBits ( SamplesRest , 11 ); // true gapless: valid samples in last frame 95 WriteBits ( 0 , 20 ); 95 WriteBits ( 1 , 1 ); // we now support fast seeking 96 WriteBits ( 0 , 19 ); 96 97 97 98 WriteBits ( (MPPENC_VERSION[0]&15)*100 + (MPPENC_VERSION[2]&15)*10 + (MPPENC_VERSION[3]&15), … … 109 110 #define ENCODE_SCF1( new, old, rll ) \ 110 111 d = new - old + 7; \ 111 if ( d <= 14u && (rll < 32 || (int)new < 0 ) ) {\112 if ( d <= 14u && rll < 32) { \ 112 113 WriteBits ( Table[d].Code, Table[d].Length ); \ 113 114 } \ … … 242 243 case 2: 243 244 ENCODE_SCF1 ( SCF_Index_L[n][0], SCF_Last_L[n] , DSCF_RLL_L[n] ); 244 ENCODE_SCFn ( SCF_Index_L[n][2], SCF_Index_L[n][ 1], DSCF_RLL_L[n] );245 ENCODE_SCFn ( SCF_Index_L[n][2], SCF_Index_L[n][0], DSCF_RLL_L[n] ); 245 246 SCF_Last_L[n] = SCF_Index_L[n][2]; 246 247 break; … … 251 252 } 252 253 } 253 DSCF_RLL_L[n]++; // Increased counters for SCF that haven't been initialized again 254 if (DSCF_RLL_L[n] <= 32) 255 DSCF_RLL_L[n]++; // Increased counters for SCF that haven't been initialized again 254 256 255 257 if ( Res_R[n] ) { … … 268 270 case 2: 269 271 ENCODE_SCF1 ( SCF_Index_R[n][0], SCF_Last_R[n] , DSCF_RLL_R[n] ); 270 ENCODE_SCFn ( SCF_Index_R[n][2], SCF_Index_R[n][ 1], DSCF_RLL_R[n] );272 ENCODE_SCFn ( SCF_Index_R[n][2], SCF_Index_R[n][0], DSCF_RLL_R[n] ); 271 273 SCF_Last_R[n] = SCF_Index_R[n][2]; 272 274 break; … … 277 279 } 278 280 } 279 DSCF_RLL_R[n]++; // Increased counters for SCF that haven't been freshly initialized 281 if (DSCF_RLL_R[n] <= 32) 282 DSCF_RLL_R[n]++; // Increased counters for SCF that haven't been freshly initialized 280 283 } 281 284
Note: See TracChangeset
for help on using the changeset viewer.