Changeset 289 in SHVCSoftware for branches/SHM-2.1-dev/source/Lib/TLibDecoder
- Timestamp:
- 17 Jun 2013, 03:02:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r288 r289 920 920 vps->setNumScalabilityTypes(numScalabilityTypes); 921 921 922 #if VPS_SPLIT_FLAG 923 for(j = 0; j < numScalabilityTypes - vps->getSplittingFlag(); j++) 924 #else 922 925 for(j = 0; j < numScalabilityTypes; j++) 926 #endif 923 927 { 924 928 READ_CODE( 3, uiCode, "dimension_id_len_minus1[j]" ); vps->setDimensionIdLen(j, uiCode + 1); 925 929 } 930 #if VPS_SPLIT_FLAG 931 if(vps->getSplittingFlag()) 932 { 933 UInt numBits = 0; 934 for(j = 0; j < numScalabilityTypes - 1; j++) 935 { 936 numBits += vps->getDimensionIdLen(j); 937 } 938 assert( numBits < 6 ); 939 vps->setDimensionIdLen(numScalabilityTypes-1, 6 - numBits); 940 numBits = 6; 941 } 942 #else 926 943 if(vps->getSplittingFlag()) 927 944 { … … 933 950 assert( numBits <= 6 ); 934 951 } 952 #endif 935 953 936 954 READ_FLAG( uiCode, "vps_nuh_layer_id_present_flag" ); vps->setNuhLayerIdPresentFlag(uiCode ? true : false); … … 950 968 vps->setLayerIdInVps(vps->getLayerIdInNuh(i), i); 951 969 970 #if VPS_SPLIT_FLAG 971 if(!vps->getSplittingFlag()) 972 #endif 952 973 for(j = 0; j < numScalabilityTypes; j++) 953 974 { … … 1193 1214 if(!rpcSlice->getDependentSliceSegmentFlag()) 1194 1215 { 1216 1217 #if SH_DISCARDABLE_FLAG 1218 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits()>0) 1219 { 1220 READ_FLAG(uiCode, "discardable_flag"); // ignored 1221 } 1222 for (Int i = 1; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++) 1223 { 1224 READ_FLAG(uiCode, "slice_reserved_undetermined_flag[]"); // ignored 1225 } 1226 #else 1195 1227 for (Int i = 0; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++) 1196 1228 { 1197 1229 READ_FLAG(uiCode, "slice_reserved_undetermined_flag[]"); // ignored 1198 1230 } 1231 #endif 1199 1232 1200 1233 READ_UVLC ( uiCode, "slice_type" ); rpcSlice->setSliceType((SliceType)uiCode);
Note: See TracChangeset for help on using the changeset viewer.