Changeset 494 in SHVCSoftware for trunk/source/App/TAppDecoder
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/SHM-4.0-dev (added) merged: 444-493
- Property svn:mergeinfo changed
-
trunk/source
- Property svn:mergeinfo changed
/branches/SHM-4.0-dev/source (added) merged: 445-471,473-479,481-486,488-493
- Property svn:mergeinfo changed
-
trunk/source/App/TAppDecoder/TAppDecTop.cpp
r442 r494 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 6 * Copyright (c) 2010-2013, ITU/ISO/IEC … … 80 80 m_pchBitstreamFile = NULL; 81 81 } 82 #if SVC_EXTENSION 82 #if SVC_EXTENSION 83 83 for( Int i = 0; i < m_tgtLayerId; i++ ) 84 84 { … … 88 88 m_pchReconFile[i] = NULL; 89 89 } 90 } 90 } 91 91 #if AVC_BASE 92 92 if( m_pchBLReconFile ) … … 225 225 if (bNewPicture || !bitstreamFile) 226 226 { 227 #if O0194_DIFFERENT_BITDEPTH_EL_BL 228 //Bug fix: The bit depth was not set correctly for each layer when doing DBF 229 g_bitDepthY = g_bitDepthYLayer[curLayerId]; 230 g_bitDepthC = g_bitDepthCLayer[curLayerId]; 231 #endif 227 232 m_acTDecTop[curLayerId].executeLoopFilters(poc, pcListPic); 228 233 #if EARLY_REF_PIC_MARKING … … 235 240 if ( m_pchReconFile[curLayerId] && !openedReconFile[curLayerId] ) 236 241 { 237 if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; } 242 if (!m_outputBitDepthY) { m_outputBitDepthY = g_bitDepthY; } 238 243 if (!m_outputBitDepthC) { m_outputBitDepthC = g_bitDepthC; } 239 244 … … 242 247 openedReconFile[curLayerId] = true; 243 248 } 244 if ( bNewPicture && bNewPOC && 249 if ( bNewPicture && bNewPOC && 245 250 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL 246 251 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP … … 276 281 } 277 282 #endif 278 pcBLPic.destroy(); 283 pcBLPic.destroy(); 279 284 280 285 for(UInt layer = layerIdmin; layer <= m_tgtLayerId; layer++) … … 285 290 m_acTDecTop[layer].deletePicBuffer(); 286 291 } 287 292 288 293 // destroy internal classes 289 294 xDestroyDecLib(); … … 394 399 openedReconFile = true; 395 400 } 396 if ( bNewPicture && 401 if ( bNewPicture && 397 402 ( nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL 398 403 || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP … … 410 415 } 411 416 } 412 417 413 418 #if SYNTAX_OUTPUT 414 419 if( streamSyntaxFile.is_open() ) … … 417 422 } 418 423 #endif 419 424 420 425 xFlushOutput( pcListPic ); 421 426 // delete buffers 422 427 m_cTDecTop.deletePicBuffer(); 423 428 424 429 // destroy internal classes 425 430 xDestroyDecLib(); … … 435 440 #if SVC_EXTENSION 436 441 // initialize global variables 437 initROM(); 442 initROM(); 438 443 439 444 for(UInt layer = 0; layer <= m_tgtLayerId; layer++) … … 445 450 m_acTDecTop[layer].create(); 446 451 447 m_acTDecTop[layer].setLayerDec(m_apcTDecTop); 452 m_acTDecTop[layer].setLayerDec(m_apcTDecTop); 448 453 } 449 454 #else … … 474 479 m_cTVideoIOYuvReconFile. close(); 475 480 } 476 481 477 482 // destroy decoder class 478 483 m_cTDecTop.destroy(); … … 566 571 567 572 #else 573 #if O0194_DIFFERENT_BITDEPTH_EL_BL 574 // Compile time bug-fix 575 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 576 #else 568 577 m_cTVideoIOYuvReconFile.write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 578 #endif 569 579 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), 570 580 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(), … … 723 733 { 724 734 return; 725 } 735 } 726 736 TComList<TComPic*>::iterator iterPic = pcListPic->begin(); 727 737 … … 759 769 760 770 #else 771 #if O0194_DIFFERENT_BITDEPTH_EL_BL 772 // Compile time bug-fix 773 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 774 #else 761 775 m_cTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 776 #endif 762 777 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), 763 778 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(), … … 913 928 pcPic = NULL; 914 929 } 915 #endif 930 #endif 916 931 #endif 917 932 iterPic++;
Note: See TracChangeset for help on using the changeset viewer.