Changeset 1313 in 3DVCSoftware for trunk/source/App/TAppEncoder/encmain.cpp


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppEncoder/encmain.cpp

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4141#include "TAppCommon/program_options_lite.h"
    4242
    43 using namespace std;
    44 namespace po = df::program_options_lite;
    45 
    4643//! \ingroup TAppEncoder
    4744//! \{
     45
     46#include "../Lib/TLibCommon/Debug.h"
    4847
    4948// ====================================================================================================================
     
    5756  // print information
    5857  fprintf( stdout, "\n" );
    59 #if H_MV
     58#if NH_MV
    6059  fprintf( stdout, "3D-HTM Software: Encoder Version [%s] based on HM Version [%s]", NV_VERSION, HM_VERSION ); 
    6160#else
    62   fprintf( stdout, "HM software: Encoder Version [%s]", NV_VERSION );
     61  fprintf( stdout, "HM software: Encoder Version [%s] (including RExt)", NV_VERSION );
    6362#endif
    6463  fprintf( stdout, NVM_ONOS );
    6564  fprintf( stdout, NVM_COMPILEDBY );
    6665  fprintf( stdout, NVM_BITS );
    67   fprintf( stdout, "\n" );
     66  fprintf( stdout, "\n\n" );
    6867
    6968  // create application encoder class
     
    7675    {
    7776      cTAppEncTop.destroy();
     77#if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST
     78      EnvVar::printEnvVar();
     79#endif
    7880      return 1;
    7981    }
    8082  }
    81   catch (po::ParseFailure& e)
     83  catch (df::program_options_lite::ParseFailure &e)
    8284  {
    83     cerr << "Error parsing option \""<< e.arg <<"\" with argument \""<< e.val <<"\"." << endl;
     85    std::cerr << "Error parsing option \""<< e.arg <<"\" with argument \""<< e.val <<"\"." << std::endl;
    8486    return 1;
    8587  }
    8688
     89#if PRINT_MACRO_VALUES
     90  printMacroSettings();
     91#endif
     92
     93#if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST
     94  EnvVar::printEnvVarInUse();
     95#endif
     96
    8797  // starting time
    88   double dResult;
    89   long lBefore = clock();
     98  Double dResult;
     99  clock_t lBefore = clock();
    90100
    91101  // call encoding function
     
    93103
    94104  // ending time
    95   dResult = (double)(clock()-lBefore) / CLOCKS_PER_SEC;
     105  dResult = (Double)(clock()-lBefore) / CLOCKS_PER_SEC;
    96106  printf("\n Total Time: %12.3f sec.\n", dResult);
    97107
Note: See TracChangeset for help on using the changeset viewer.