Changeset 451 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Nov 2013, 07:09:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r448 r451 1010 1010 vps->setNumScalabilityTypes(numScalabilityTypes); 1011 1011 1012 #if VPS_SPLIT_FLAG1013 1012 for(j = 0; j < numScalabilityTypes - vps->getSplittingFlag(); j++) 1014 #else1015 for(j = 0; j < numScalabilityTypes; j++)1016 #endif1017 1013 { 1018 1014 READ_CODE( 3, uiCode, "dimension_id_len_minus1[j]" ); vps->setDimensionIdLen(j, uiCode + 1); 1019 1015 } 1020 #if VPS_SPLIT_FLAG 1016 1021 1017 if(vps->getSplittingFlag()) 1022 1018 { … … 1030 1026 numBits = 6; 1031 1027 } 1032 #else1033 if(vps->getSplittingFlag())1034 {1035 UInt numBits = 0;1036 for(j = 0; j < numScalabilityTypes; j++)1037 {1038 numBits += vps->getDimensionIdLen(j);1039 }1040 assert( numBits <= 6 );1041 }1042 #endif1043 1028 1044 1029 READ_FLAG( uiCode, "vps_nuh_layer_id_present_flag" ); vps->setNuhLayerIdPresentFlag(uiCode ? true : false); … … 1058 1043 vps->setLayerIdInVps(vps->getLayerIdInNuh(i), i); 1059 1044 1060 #if VPS_SPLIT_FLAG 1061 if(!vps->getSplittingFlag())1062 #endif 1063 for(j = 0; j < numScalabilityTypes; j++)1064 {1065 READ_CODE( vps->getDimensionIdLen(j), uiCode, "dimension_id[i][j]" ); vps->setDimensionId(i, j, uiCode);1066 assert( uiCode <= vps->getMaxLayerId() );1045 if( !vps->getSplittingFlag() ) 1046 { 1047 for(j = 0; j < numScalabilityTypes; j++) 1048 { 1049 READ_CODE( vps->getDimensionIdLen(j), uiCode, "dimension_id[i][j]" ); vps->setDimensionId(i, j, uiCode); 1050 assert( uiCode <= vps->getMaxLayerId() ); 1051 } 1067 1052 } 1068 1053 }
Note: See TracChangeset for help on using the changeset viewer.