Changeset 1135 in SHVCSoftware
- Timestamp:
- 7 Jul 2015, 23:08:44 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1132 r1135 1698 1698 for(i = 1; i < vps->getNumOutputLayerSets(); i++) 1699 1699 { 1700 #if CHANGE_NUMSUBDPB_IDX1701 1700 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 1702 #endif1703 1701 Int layerSetId = vps->getOutputLayerSetIdx(i); 1704 1702 … … 1707 1705 1708 1706 Int maxNumReorderPics = -1; 1709 #if CHANGE_NUMSUBDPB_IDX1710 1707 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1711 #else1712 for(Int k = 0; k < vps->getNumSubDpbs(i); k++)1713 #endif1714 1708 { 1715 1709 Int layerId = vps->getLayerSetLayerIdList(layerSetId, k); // k-th layer in the output layer set -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1132 r1135 3207 3207 { 3208 3208 // Derive number of sub-DPBs 3209 #if CHANGE_NUMSUBDPB_IDX3210 3209 // For layer set 0 3211 3210 m_numSubDpbs[0] = 1; … … 3215 3214 m_numSubDpbs[i] = m_numLayerInIdList[i]; 3216 3215 } 3217 #else3218 // For output layer set 03219 setNumSubDpbs(0, 1);3220 // For other output layer sets3221 for( Int i = 1; i < getNumOutputLayerSets(); i++)3222 {3223 setNumSubDpbs( i, getNumLayersInIdList( getOutputLayerSetIdx(i)) );3224 }3225 #endif3226 3216 } 3227 3217 #endif … … 3439 3429 // then will be continue to be false - i.e. the j-th sub-layer DPB info is not signaled 3440 3430 checkFlagInner[j] |= ( getMaxVpsNumReorderPics(i, j) != getMaxVpsNumReorderPics(i, j - 1) ); 3441 #if CHANGE_NUMSUBDPB_IDX 3431 3442 3432 for(Int subDpbIdx = 0; subDpbIdx < getNumSubDpbs(layerSetIdxForOutputLayerSet) && !checkFlagInner[j]; subDpbIdx++) // If checkFlagInner[j] is true, break and signal the values 3443 #else3444 for(Int k = 0; k < getNumSubDpbs(i) && !checkFlagInner[j]; k++) // If checkFlagInner[j] is true, break and signal the values3445 #endif3446 3433 { 3447 3434 checkFlagInner[j] |= ( getMaxVpsDecPicBufferingMinus1(i, subDpbIdx, j - 1) != getMaxVpsDecPicBufferingMinus1(i, subDpbIdx, j) ); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1132 r1135 787 787 Int m_maxVpsNumReorderPics [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 788 788 Int m_maxVpsLatencyIncreasePlus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 789 #if CHANGE_NUMSUBDPB_IDX790 789 #if Q0078_ADD_LAYER_SETS 791 790 Int m_numSubDpbs [MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS]; 792 791 #else 793 792 Int m_numSubDpbs [MAX_VPS_LAYER_SETS_PLUS1]; 794 #endif795 #else796 Int m_numSubDpbs [MAX_VPS_OP_LAYER_SETS_PLUS1];797 793 #endif 798 794 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1134 r1135 82 82 #define DISCARDABLE_PIC_RPS 1 ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1 83 83 #define VPS_EXTN_UEV_CODING 1 ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour 84 #define CHANGE_NUMSUBDPB_IDX 1 ///< Change index of NumSubDpb from output layer set to layer set, to be more aligned with the Spec85 84 #define ALIGNED_BUMPING 1 ///< JCTVC-P0192: Align bumping of pictures in an AU 86 85 #define FIX_ALIGN_BUMPING 1 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1132 r1135 3536 3536 { 3537 3537 UInt maxSLMinus1 = 0; 3538 #if CHANGE_NUMSUBDPB_IDX3539 3538 Int optLsIdx = vps->getOutputLayerSetIdx( i ); 3540 #else3541 Int optLsIdx = i;3542 #endif3543 3539 #if BITRATE_PICRATE_SIGNALLING 3544 3540 optLsIdx = i; … … 3560 3556 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 3561 3557 { 3562 #if CHANGE_NUMSUBDPB_IDX3563 3558 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 3564 #endif 3559 3565 3560 READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]"); vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false ); 3566 3561 #if SUB_LAYERS_IN_LAYER_SET … … 3595 3590 if( vps->getSubLayerDpbInfoPresentFlag(i, j) ) // If sub-layer DPB information is present 3596 3591 { 3597 #if CHANGE_NUMSUBDPB_IDX3598 3592 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 3599 #else3600 for(Int k = 0; k < vps->getNumSubDpbs(i); k++)3601 #endif3602 3593 { 3603 3594 #if DPB_INTERNAL_BL_SIG -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1132 r1135 2426 2426 { 2427 2427 UInt maxSLMinus1 = 0; 2428 #if CHANGE_NUMSUBDPB_IDX2429 2428 Int optLsIdx = vps->getOutputLayerSetIdx( i ); 2430 #else2431 Int optLsIdx = i;2432 #endif2433 2429 #if BITRATE_PICRATE_SIGNALLING 2434 2430 optLsIdx = i; … … 2449 2445 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 2450 2446 { 2451 #if CHANGE_NUMSUBDPB_IDX2452 2447 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 2453 #endif 2448 2454 2449 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 2455 2450 #if SUB_LAYERS_IN_LAYER_SET … … 2473 2468 if( vps->getSubLayerDpbInfoPresentFlag(i, j) ) 2474 2469 { 2475 #if CHANGE_NUMSUBDPB_IDX2476 2470 for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++) 2477 #else2478 for(Int k = 0; k < vps->getNumSubDpbs(i); k++)2479 #endif2480 2471 { 2481 2472 #if DPB_INTERNAL_BL_SIG
Note: See TracChangeset for help on using the changeset viewer.