Changeset 1104 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 6 Jul 2015, 20:36:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1102 r1104 3041 3041 for(i = 1; i < numOutputLayerSets; i++) 3042 3042 { 3043 #if VPS_FIX_TO_MATCH_SPEC3044 3043 if( vps->getNumLayerSets() > 2 && i >= vps->getNumLayerSets() ) 3045 #else3046 if( i > (vps->getNumLayerSets() - 1) )3047 #endif3048 3044 { 3049 3045 Int numBits = 1; … … 3060 3056 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx(i); 3061 3057 #if Q0078_ADD_LAYER_SETS 3062 #if VPS_FIX_TO_MATCH_SPEC3063 3058 if( i > vps->getVpsNumLayerSetsMinus1() || vps->getDefaultTargetOutputLayerIdc() == 2 ) 3064 3059 #else 3065 if( i > vps->getVpsNumLayerSetsMinus1() || vps->getDefaultTargetOutputLayerIdc() >= 2 )3066 #endif3067 #else3068 #if VPS_FIX_TO_MATCH_SPEC3069 3060 if( i > (vps->getNumLayerSets() - 1) || vps->getDefaultTargetOutputLayerIdc() == 2 ) 3070 #else3071 if( i > (vps->getNumLayerSets() - 1) || vps->getDefaultTargetOutputLayerIdc() >= 2 )3072 #endif3073 3061 #endif 3074 3062 { … … 3113 3101 for(j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet) ; j++) 3114 3102 { 3115 #if VPS_FIX_TO_MATCH_SPEC3116 3103 if( vps->getNecessaryLayerFlag(i, j) && (vps->getNumProfileTierLevel()-1) > 0 ) 3117 #else3118 if( vps->getNecessaryLayerFlag(i, j) )3119 #endif3120 3104 { 3121 3105 READ_CODE( numBitsForPtlIdx, uiCode, "profile_tier_level_idx[i]" ); … … 3317 3301 if( vps->getRepFormatIdxPresentFlag() ) 3318 3302 { 3319 #if VPS_FIX_TO_MATCH_SPEC3320 3303 for( i = vps->getBaseLayerInternalFlag() ? 1 : 0; i < vps->getMaxLayers(); i++ ) 3321 #else3322 for (i = 1; i < vps->getMaxLayers(); i++)3323 #endif3324 3304 { 3325 3305 Int numBits = 1; … … 3452 3432 #endif 3453 3433 3454 #if VPS_FIX_TO_MATCH_SPEC3455 3434 for( i = vps->getBaseLayerInternalFlag() ? 1 : 2; i < vps->getMaxLayers(); i++ ) 3456 #else 3457 for(i = 1; i < vps->getMaxLayers(); i++) 3458 #endif 3459 { 3460 #if VPS_FIX_TO_MATCH_SPEC 3435 { 3461 3436 for( j = vps->getBaseLayerInternalFlag() ? 0 : 1; j < i; j++ ) 3462 #else3463 for(j = 0; j < i; j++)3464 #endif3465 3437 { 3466 3438 if (vps->getDirectDependencyFlag(i, j)) … … 3820 3792 uiCode=0; 3821 3793 3822 #if VPS_FIX_TO_MATCH_SPEC3823 3794 if( vps->getNecessaryLayerFlag(i, k) && ( vps->getBaseLayerInternalFlag() || vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) ) ) 3824 #else3825 if(vps->getBaseLayerInternalFlag() || ( vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) != 0 ) )3826 #endif3827 3795 #endif 3828 3796 READ_UVLC( uiCode, "max_vps_dec_pic_buffering_minus1[i][k][j]" ); vps->setMaxVpsDecPicBufferingMinus1( i, k, j, uiCode ); … … 4070 4038 if (!uiCode) 4071 4039 { 4072 #if VPS_FIX_TO_MATCH_SPEC4073 4040 for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ ) 4074 #else4075 for (i = 0; i < vps->getMaxLayers(); i++)4076 #endif4077 4041 { 4078 4042 READ_FLAG( uiCode, "tiles_in_use_flag[ i ]" ); vps->setTilesInUseFlag(i, (uiCode == 1)); … … 4088 4052 #endif 4089 4053 4090 #if VPS_FIX_TO_MATCH_SPEC4091 4054 for( i = vps->getBaseLayerInternalFlag() ? 1 : 2; i < vps->getMaxLayers(); i++ ) 4092 #else4093 for (i = 1; i < vps->getMaxLayers(); i++)4094 #endif4095 4055 { 4096 4056 for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++) … … 4113 4073 if (!uiCode) 4114 4074 { 4115 #if VPS_FIX_TO_MATCH_SPEC4116 4075 for (i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++) 4117 #else4118 for (i = 0; i < vps->getMaxLayers(); i++)4119 #endif4120 4076 { 4121 4077 READ_FLAG( uiCode, "wpp_in_use_flag[ i ]" ); vps->setWppInUseFlag(i, (uiCode == 1)); … … 4146 4102 for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++) 4147 4103 { 4148 #if VPS_FIX_TO_MATCH_SPEC4149 4104 if( vps->getBaseLayerInternalFlag() || vps->getRefLayerId(vps->getLayerIdInNuh(i), j) ) 4150 4105 { 4151 #endif4152 4106 READ_UVLC( uiCode, "min_spatial_segment_offset_plus1[i][j]" ); vps->setMinSpatialSegmentOffsetPlus1( i, j, uiCode ); 4153 4107 if( vps->getMinSpatialSegmentOffsetPlus1(i,j ) > 0 ) … … 4159 4113 } 4160 4114 } 4161 #if VPS_FIX_TO_MATCH_SPEC 4162 } 4163 #endif 4115 } 4164 4116 } 4165 4117 } … … 4575 4527 } 4576 4528 } 4577 #if VPS_FIX_TO_MATCH_SPEC4578 4529 if( vps->getNumHrdParameters() + vps->getVpsNumAddHrdParams() > 0 ) 4579 4530 { 4580 #endif4581 4531 for (Int h = 1; h < vps->getNumOutputLayerSets(); h++) 4582 4532 { 4583 4533 Int lsIdx = vps->getOutputLayerSetIdx(h); 4584 4534 READ_UVLC(uiCode, "num_signalled_partitioning_schemes[h]"); vps->setNumSignalledPartitioningSchemes(h, uiCode); 4585 #if VPS_FIX_TO_MATCH_SPEC4586 4535 for (Int j = 1; j < vps->getNumSignalledPartitioningSchemes(h) + 1; j++) 4587 #else4588 for (Int j = 0; j < vps->getNumSignalledPartitioningSchemes(h); j++)4589 #endif4590 4536 { 4591 4537 READ_UVLC(uiCode, "num_partitions_in_scheme_minus1[h][j]"); vps->setNumPartitionsInSchemeMinus1(h, j, uiCode); … … 4605 4551 for (Int j = 0; j <= vps->getNumBspSchedulesMinus1(h, i, t); j++) 4606 4552 { 4607 #if VPS_FIX_TO_MATCH_SPEC4608 4553 for( Int k = 0; k <= vps->getNumPartitionsInSchemeMinus1(h, i); k++ ) 4609 #else4610 for (Int k = 0; k < vps->getNumPartitionsInSchemeMinus1(h, i); k++)4611 #endif4612 4554 { 4613 #if VPS_FIX_TO_MATCH_SPEC4614 4555 if( vps->getNumHrdParameters() + vps->getVpsNumAddHrdParams() > 1 ) 4615 4556 { … … 4621 4562 READ_CODE(numBits, uiCode, "bsp_comb_hrd_idx[h][i][t][j][k]"); vps->setBspHrdIdx(h, i, t, j, k, uiCode); 4622 4563 } 4623 #else4624 READ_UVLC(uiCode, "bsp_comb_hrd_idx[h][i][t][j][k]"); vps->setBspHrdIdx(h, i, t, j, k, uiCode);4625 #endif4626 4564 READ_UVLC(uiCode, "bsp_comb_sched_idx[h][i][t][j][k]"); vps->setBspSchedIdx(h, i, t, j, k, uiCode); 4627 4565 } … … 4634 4572 4635 4573 } 4636 #if VPS_FIX_TO_MATCH_SPEC 4637 } 4638 #endif 4574 } 4639 4575 } 4640 4576 #endif
Note: See TracChangeset for help on using the changeset viewer.