Changeset 1292 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 18 Jul 2015, 04:14:13 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1290 r1292 66 66 #endif 67 67 { 68 memset( m_apcTDecTop, NULL, sizeof(m_apcTDecTop) ); 69 68 70 for(UInt layer=0; layer < MAX_LAYERS; layer++) 69 71 { -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.h
r1289 r1292 95 95 Void destroy (); ///< destroy internal members 96 96 Void decode (); ///< main decoding function 97 #if SVC_EXTENSION 98 UInt getNumberOfChecksumErrorsDetected() const 99 { 100 UInt sum = 0; 101 102 for( UInt layerId = 0; layerId < MAX_NUM_LAYER_IDS; layerId++ ) 103 { 104 if( m_apcTDecTop[layerId] ) 105 { 106 sum += m_apcTDecTop[layerId]->getNumberOfChecksumErrorsDetected(); 107 } 108 } 109 110 return sum; 111 } 112 #else 113 UInt getNumberOfChecksumErrorsDetected() const { return m_cTDecTop.getNumberOfChecksumErrorsDetected(); } 114 #endif 97 115 98 116 protected: -
branches/SHM-dev/source/App/TAppDecoder/decmain.cpp
r1259 r1292 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 … … 73 72 { 74 73 cTAppDecTop.destroy(); 75 return 1; 74 returnCode = EXIT_FAILURE; 75 return returnCode; 76 76 } 77 77 … … 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 … … 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.