Changeset 549 in SHVCSoftware for branches/SHM-5.0-dev/source
- Timestamp:
- 21 Jan 2014, 03:57:34 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/App/TAppDecoder/TAppDecTop.cpp
r540 r549 81 81 } 82 82 #if SVC_EXTENSION 83 for( Int i = 0; i < m_tgtLayerId; i++ )83 for( Int i = 0; i <= m_tgtLayerId; i++ ) 84 84 { 85 85 if( m_pchReconFile[i] ) -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComRom.cpp
r540 r549 530 530 Int g_mvScalingFactor [MAX_LAYERS][2] = {{0,0}, {0,0}}; 531 531 Int g_posScalingFactor [MAX_LAYERS][2] = {{0,0}, {0,0}}; 532 533 std::string NaluToStr( NalUnitType nalu ) 534 { 535 switch( nalu ) 536 { 537 case NAL_UNIT_CODED_SLICE_TRAIL_N: 538 case NAL_UNIT_CODED_SLICE_TRAIL_R: 539 return "TRAIL"; 540 541 case NAL_UNIT_CODED_SLICE_TSA_N: 542 case NAL_UNIT_CODED_SLICE_TSA_R: 543 return " TSA"; 544 545 case NAL_UNIT_CODED_SLICE_STSA_N: 546 case NAL_UNIT_CODED_SLICE_STSA_R: 547 return " STSA"; 548 549 case NAL_UNIT_CODED_SLICE_RADL_N: 550 case NAL_UNIT_CODED_SLICE_RADL_R: 551 return " RADL"; 552 553 case NAL_UNIT_CODED_SLICE_RASL_N: 554 case NAL_UNIT_CODED_SLICE_RASL_R: 555 return " RASL"; 556 557 case NAL_UNIT_CODED_SLICE_BLA_W_LP: 558 case NAL_UNIT_CODED_SLICE_BLA_W_RADL: 559 case NAL_UNIT_CODED_SLICE_BLA_N_LP: 560 return " BLA"; 561 562 case NAL_UNIT_CODED_SLICE_IDR_W_RADL: 563 case NAL_UNIT_CODED_SLICE_IDR_N_LP: 564 return " IDR"; 565 566 case NAL_UNIT_CODED_SLICE_CRA: 567 return " CRA"; 568 569 default: 570 return " "; 571 }; 572 } 532 573 #endif 533 574 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComRom.h
r540 r549 288 288 #if SVC_EXTENSION 289 289 extern Int g_mvScalingFactor [MAX_LAYERS][2]; 290 extern Int g_posScalingFactor [MAX_LAYERS][2]; 290 extern Int g_posScalingFactor [MAX_LAYERS][2]; 291 std::string NaluToStr( NalUnitType nalu ); 291 292 #endif 292 293 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r540 r549 45 45 #define RANDOM_ACCESS_SEI_FIX 1 46 46 #if SVC_EXTENSION 47 #define MAX_LAYERS 2///< max number of layers the codec is supposed to handle47 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 48 48 49 49 #define O0194_DIFFERENT_BITDEPTH_EL_BL 1 ///< JCTVC-O0194: Support for different bitdepth values for BL and EL, add required configuration parameters (and Some bugfixes when REPN_FORMAT_IN_VPS (JCTVC-N0092) is enabled) -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecGop.cpp
r540 r549 234 234 //-- For time output for each slice 235 235 #if SVC_EXTENSION 236 printf("\nPOC %4d LId: %1d TId: %1d ( %c-SLICE , QP%3d ) ", pcSlice->getPOC(),236 printf("\nPOC %4d LId: %1d TId: %1d ( %c-SLICE %s, QP%3d ) ", pcSlice->getPOC(), 237 237 rpcPic->getLayerId(), 238 238 pcSlice->getTLayer(), 239 239 c, 240 NaluToStr( pcSlice->getNalUnitType() ).data(), 240 241 pcSlice->getSliceQp() ); 241 242 #else -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r540 r549 196 196 if (m_cIlpPic[0] == NULL) 197 197 { 198 for (Int j=0; j < MAX_LAYERS /*MAX_NUM_REF*/; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]198 for (Int j=0; j < m_numDirectRefLayers; j++) 199 199 { 200 200 … … 2038 2038 { 2039 2039 CommonDecoderParams* params = this->getCommonDecoderParams(); 2040 2041 assert( params->getTargetLayerId() < vps->getMaxLayers() ); 2042 2040 2043 if( params->getValueCheckedFlag() ) 2041 2044 { -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r540 r549 3108 3108 3109 3109 #if SVC_EXTENSION 3110 #if ADAPTIVE_QP_SELECTION 3111 printf("POC %4d LId: %1d TId: %1d ( %c-SLICE , nQP %d QP %d ) %10d bits",3110 #if ADAPTIVE_QP_SELECTION 3111 printf("POC %4d LId: %1d TId: %1d ( %c-SLICE %s, nQP %d QP %d ) %10d bits", 3112 3112 pcSlice->getPOC(), 3113 3113 pcSlice->getLayerId(), 3114 3114 pcSlice->getTLayer(), 3115 3115 c, 3116 NaluToStr( pcSlice->getNalUnitType() ).data(), 3116 3117 pcSlice->getSliceQpBase(), 3117 3118 pcSlice->getSliceQp(), 3118 3119 uibits ); 3119 3120 #else 3120 printf("POC %4d LId: %1d TId: %1d ( %c-SLICE , QP %d ) %10d bits",3121 printf("POC %4d LId: %1d TId: %1d ( %c-SLICE %s, QP %d ) %10d bits", 3121 3122 pcSlice->getPOC()-pcSlice->getLastIDR(), 3122 3123 pcSlice->getLayerId(), 3123 3124 pcSlice->getTLayer(), 3124 3125 c, 3126 NaluToStr( pcSlice->getNalUnitType() ).data(). 3125 3127 pcSlice->getSliceQp(), 3126 3128 uibits ); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r540 r549 1632 1632 if (m_cIlpPic[0] == NULL) 1633 1633 { 1634 for (Int j=0; j < MAX_LAYERS /*MAX_NUM_REF*/; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]1634 for (Int j=0; j < m_numLayer; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]] 1635 1635 { 1636 1636 m_cIlpPic[j] = new TComPic; … … 1699 1699 if (m_cIlpPic[0] == NULL) 1700 1700 { 1701 for (Int j=0; j < MAX_LAYERS /*MAX_NUM_REF*/; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]1701 for (Int j=0; j < m_numDirectRefLayers; j++) 1702 1702 { 1703 1703 m_cIlpPic[j] = new TComPic;
Note: See TracChangeset for help on using the changeset viewer.