Changeset 1313 in 3DVCSoftware for trunk/source/App/TAppEncoder/encmain.cpp
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppEncoder/encmain.cpp
r1179 r1313 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 41 41 #include "TAppCommon/program_options_lite.h" 42 42 43 using namespace std;44 namespace po = df::program_options_lite;45 46 43 //! \ingroup TAppEncoder 47 44 //! \{ 45 46 #include "../Lib/TLibCommon/Debug.h" 48 47 49 48 // ==================================================================================================================== … … 57 56 // print information 58 57 fprintf( stdout, "\n" ); 59 #if H_MV58 #if NH_MV 60 59 fprintf( stdout, "3D-HTM Software: Encoder Version [%s] based on HM Version [%s]", NV_VERSION, HM_VERSION ); 61 60 #else 62 fprintf( stdout, "HM software: Encoder Version [%s] ", NV_VERSION );61 fprintf( stdout, "HM software: Encoder Version [%s] (including RExt)", NV_VERSION ); 63 62 #endif 64 63 fprintf( stdout, NVM_ONOS ); 65 64 fprintf( stdout, NVM_COMPILEDBY ); 66 65 fprintf( stdout, NVM_BITS ); 67 fprintf( stdout, "\n " );66 fprintf( stdout, "\n\n" ); 68 67 69 68 // create application encoder class … … 76 75 { 77 76 cTAppEncTop.destroy(); 77 #if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST 78 EnvVar::printEnvVar(); 79 #endif 78 80 return 1; 79 81 } 80 82 } 81 catch ( po::ParseFailure&e)83 catch (df::program_options_lite::ParseFailure &e) 82 84 { 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; 84 86 return 1; 85 87 } 86 88 89 #if PRINT_MACRO_VALUES 90 printMacroSettings(); 91 #endif 92 93 #if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST 94 EnvVar::printEnvVarInUse(); 95 #endif 96 87 97 // starting time 88 double dResult;89 longlBefore = clock();98 Double dResult; 99 clock_t lBefore = clock(); 90 100 91 101 // call encoding function … … 93 103 94 104 // ending time 95 dResult = ( double)(clock()-lBefore) / CLOCKS_PER_SEC;105 dResult = (Double)(clock()-lBefore) / CLOCKS_PER_SEC; 96 106 printf("\n Total Time: %12.3f sec.\n", dResult); 97 107
Note: See TracChangeset for help on using the changeset viewer.