Changeset 200


Ignore:
Timestamp:
01/20/07 20:23:32 (17 years ago)
Author:
r2d
Message:
  • removed xlevel stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mpcenc/mpcenc.c

    r195 r200  
    5858double        Duration        = 1.e+99; // Maximum encoded audio length
    5959mpc_bool_t    FrontendPresent = 0;      // Flag for frontend-detection
    60 mpc_bool_t    XLevel          = 1;      // Encode extreme levels with relative SCFs
    6160
    6261#if MPPENC_MINOR % 2 == 0
     
    296295    stderr_printf (
    297296             "  --minval x       calculation of MinVal (1:Buschmann, 2,3:Klemm)\n" );
    298     stderr_printf (
    299              "  --noxlevel       use old filterbank clipping solving strategy\n" );
    300297    stderr_printf (
    301298             "\n" );
     
    973970            m->ShortThr = (float) atof (argv[k]);
    974971        }
    975         else if ( 0 == strcmp ( arg, "noxlevel") ) {                                      // Xlevel
    976             XLevel = 0;
    977         }
    978         else if ( 0 == strcmp ( arg, "xlevel") ) {                                      // Xlevel
    979             stderr_printf ( "\nXlevel coding now enabled by default, --xlevel ignored.\n" );
    980         }
    981972        else if ( 0 == strcmp ( arg, "nmt") ) {                                         // NMT
    982973            if ( ++k >= argc ) { stderr_printf ( errmsg, arg );  return -1; }
     
    12621253                    "       to file '%s'\n"
    12631254                    "\n"
    1264                     " SV %u.%u%s, Profile '%s'\n",
    1265                     inDatei, outDatei, 7, m->PNS > 0 ? 1 : 0, XLevel ? " + XLevel coding" : "", Profiles [m->MainQual] );
     1255                    " SV %u, Profile '%s'\n",
     1256                    inDatei, outDatei, 8, Profiles [m->MainQual] );
    12661257
    12671258    if ( verbose > 0 ) {
     
    14211412{
    14221413        if ( e->Overflows > 0 ) {                                                // report internal clippings
    1423                 if ( XLevel == 0 ) {
    1424                         stderr_printf ( "\n"
    1425                                         "\033[1m\rWARNING:\n"
    1426                                         "\033[0m\r  There occured %u internal clippings due to a restriction of StreamVersion 7.\n"
    1427                                         "  Re-encode with '--scale %.3f', or use option '--xlevel', which normally can\n"
    1428                                         "  handle this situation but don't work well with old decoders.\a\n\n",
    1429                         e->Overflows, ScalingFactorl * 32767. / MaxOverFlow - 0.0005f );
    1430                 }
    1431                 else {
    1432                         stderr_printf ( "\n"
    1433                                         "\033[1m\rWARNING:\n"
    1434                                         "\033[0m\r  There still occured %u SCF clippings due to a restriction of StreamVersion 7.\n"
    1435                                         "  Use the '--scale' method to avoid additional distortions. Note that this\n"
    1436                                         "  file already has annoying distortions due to slovenly CD mastering.\a\n\n", e->Overflows );
    1437                 }
     1414                stderr_printf ( "\n"
     1415                                "\033[1m\rWARNING:\n"
     1416                                "\033[0m\r  There still occured %u SCF clippings.\n"
     1417                                "  Use the '--scale' method to avoid additional distortions. Note that this\n"
     1418                                "  file already has annoying distortions due to slovenly CD mastering.\a\n\n", e->Overflows );
    14381419        }
    14391420}
Note: See TracChangeset for help on using the changeset viewer.