Changeset 60 for mppenc/branches/r2d/src/mppenc.c
- Timestamp:
- 09/28/06 18:15:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/src/mppenc.c
r57 r60 26 26 27 27 /* G L O B A L V A R I A B L E S */ 28 float SNR_comp_L [32];29 float SNR_comp_R [32]; // SNR-compensation after SCF-combination and ANS-gain30 28 float Power_L [32] [3]; 31 29 float Power_R [32] [3]; 32 30 float PNS = 0.; 33 int Max_Band; // maximum bandwidth34 31 35 32 /* MS-Coding */ 36 33 unsigned int MS_Channelmode; // global flag for enhanced functionality 37 float SampleFreq = 0.;38 float Bandwidth = 0.;39 34 int PredictionBands = 0; 40 35 int CombPenalities = -1; 41 extern float KBD1 = 2;42 extern float KBD2 = -1.;43 36 int DisplayUpdateTime = 1; 44 37 int APE_Version = 2000; … … 410 403 int n; 411 404 int idx; 412 413 ENTER(2);414 405 for ( n = 0; n < BLOCK; n++, N++ ) { 415 406 idx = n + CENTER; … … 422 413 data->S[idx] *= scale; 423 414 } 424 LEAVE(2);425 415 } 426 416 … … 434 424 int n; 435 425 int idx; 436 437 ENTER(3);438 426 for ( n = 0; n < BLOCK; n++, N++ ) { 439 427 idx = n + CENTER; … … 446 434 data->S[idx] *= scale; 447 435 } 448 LEAVE(3);449 436 } 450 437 … … 493 480 float SL; 494 481 float SR; 495 496 ENTER(4);497 482 498 483 for ( Band = 0; Band <= MaxBand; Band++ ) { // Suche nach Maxima … … 673 658 } 674 659 } 675 676 LEAVE(4);677 660 return; 678 661 } … … 689 672 static float errorR [32] [36 + MAX_NS_ORDER]; 690 673 int Band; 691 692 ENTER(5);693 674 694 675 // quantize Subband- and Subframe-samples … … 717 698 } 718 699 } 719 720 LEAVE(5);721 700 return; 722 701 } … … 772 751 float save [36]; // to adjust the scalefactors 773 752 float MNR; // Mask-to-Noise ratio 774 775 ENTER(6);776 753 777 754 for ( Band = 0; Band <= MaxBand; Band++, res++, comp++, smr++, scf += 3, x += 72 ) { … … 814 791 815 792 } 816 LEAVE(6);817 793 return; 818 794 } … … 1596 1572 1597 1573 1598 ENTER(2);1599 1600 1574 // initialize PCM-data 1601 1575 memset ( &Main, 0, sizeof Main ); … … 1860 1834 if ( N == LastValidFrame - 1 ) { 1861 1835 WriteBits ( LastValidSamples, 11 ); 1862 // fprintf ( stderr, "\nG ültige Samples im letzten Frame: %4u \n", LastValidSamples );1836 // fprintf ( stderr, "\nGltige Samples im letzten Frame: %4u \n", LastValidSamples ); 1863 1837 } 1864 1838 if ( N >= LastValidFrame ) { 1865 // fprintf ( stderr, "Zusätzlicher Frame %u (von %u) angehängt. \n", N, LastValidFrame ); 1866 } 1867 1868 } 1869 LEAVE(2); 1839 // fprintf ( stderr, "Zusï¿œzlicher Frame %u (von %u) angehï¿œgt. \n", N, LastValidFrame ); 1840 } 1841 1842 } 1870 1843 1871 1844 // write the last incomplete word to buffer, so it's written during the next flush … … 1936 1909 SendStartupMessage ( MPPENC_VERSION, 7, MPPENC_BUILD ); 1937 1910 } 1938 1939 START();1940 ENTER(1);1941 1911 1942 1912 // Welcome message … … 1978 1948 stderr_printf("\a\a\a"); 1979 1949 1980 LEAVE(1);1981 REPORT();1982 1950 #ifdef BUGBUG 1983 1951 reppr ();
Note: See TracChangeset
for help on using the changeset viewer.