Changeset 1200 in 3DVCSoftware for branches/HTM-14.1-update-dev0/source/App/TAppDecoder/decmain.cpp
- Timestamp:
- 4 May 2015, 18:38:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev0/source/App/TAppDecoder/decmain.cpp
r1179 r1200 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 * … … 44 44 //! \{ 45 45 46 bool g_md5_mismatch = false; ///< top level flag that indicates if there has been a decoding mismatch47 48 46 // ==================================================================================================================== 49 47 // Main function … … 52 50 int main(int argc, char* argv[]) 53 51 { 52 Int returnCode = EXIT_SUCCESS; 54 53 TAppDecTop cTAppDecTop; 55 54 56 55 // print information 57 56 fprintf( stdout, "\n" ); 58 #if H_MV57 #if NH_MV 59 58 fprintf( stdout, "3D-HTM Software: Decoder Version [%s] based on HM Version [%s]", NV_VERSION, HM_VERSION ); 60 59 #else 61 fprintf( stdout, "HM software: Decoder Version [%s] ", NV_VERSION );60 fprintf( stdout, "HM software: Decoder Version [%s] (including RExt)", NV_VERSION ); 62 61 #endif 63 62 fprintf( stdout, NVM_ONOS ); … … 73 72 { 74 73 cTAppDecTop.destroy(); 75 return 1; 74 returnCode = EXIT_FAILURE; 75 return returnCode; 76 76 } 77 77 78 78 // starting time 79 double dResult;80 longlBefore = clock();79 Double dResult; 80 clock_t lBefore = clock(); 81 81 82 82 // call decoding function 83 83 cTAppDecTop.decode(); 84 84 85 if ( g_md5_mismatch)85 if (cTAppDecTop.getNumberOfChecksumErrorsDetected() != 0) 86 86 { 87 87 printf("\n\n***ERROR*** A decoding mismatch occured: signalled md5sum does not match\n"); 88 returnCode = EXIT_FAILURE; 88 89 } 89 90 90 91 // ending time 91 dResult = ( double)(clock()-lBefore) / CLOCKS_PER_SEC;92 dResult = (Double)(clock()-lBefore) / CLOCKS_PER_SEC; 92 93 printf("\n Total Time: %12.3f sec.\n", dResult); 93 94 … … 95 96 cTAppDecTop.destroy(); 96 97 97 return g_md5_mismatch ? EXIT_FAILURE : EXIT_SUCCESS;98 return returnCode; 98 99 } 99 100
Note: See TracChangeset for help on using the changeset viewer.