Changeset 451 in SHVCSoftware
- Timestamp:
- 8 Nov 2013, 07:09:02 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibCommon/TypeDef.h
r450 r451 79 79 #define VPS_PROFILE_OUTPUT_LAYERS 1 ///< JCTVC-M0268: Signal profile information and output layer information as in Sec. 3 of M0268v2 80 80 #define SPS_SUB_LAYER_INFO 1 ///< JCTVC-M0268: Do not signal sps_max_sub_layers_minus1 and sps_temporal_id_nesting_flag for nuh_layer_id greater than 0 81 #define VPS_SPLIT_FLAG 1 ///< JCTVC-M0163: Do not signal dimension_id and the last dimension_id_len_minus1, when splitting_flag is equal to 1.82 81 #define M0457_PREDICTION_INDICATIONS 1 83 82 #define M0040_ADAPTIVE_RESOLUTION_CHANGE 1 -
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 } -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r448 r451 827 827 } 828 828 829 #if VPS_SPLIT_FLAG830 829 for(j = 0; j < vps->getNumScalabilityTypes() - vps->getSplittingFlag(); j++) 831 #else832 for(j = 0; j < vps->getNumScalabilityTypes(); j++)833 #endif834 830 { 835 831 WRITE_CODE( vps->getDimensionIdLen(j) - 1, 3, "dimension_id_len_minus1[j]" ); … … 855 851 WRITE_CODE( vps->getLayerIdInNuh(i), 6, "layer_id_in_nuh[i]" ); 856 852 } 857 #if VPS_SPLIT_FLAG 858 if(!vps->getSplittingFlag()) 859 #endif 860 for(j = 0; j < vps->getNumScalabilityTypes(); j++) 861 { 862 UInt bits = vps->getDimensionIdLen(j); 863 WRITE_CODE( vps->getDimensionId(i, j), bits, "dimension_id[i][j]" ); 853 854 if( !vps->getSplittingFlag() ) 855 { 856 for(j = 0; j < vps->getNumScalabilityTypes(); j++) 857 { 858 UInt bits = vps->getDimensionIdLen(j); 859 WRITE_CODE( vps->getDimensionId(i, j), bits, "dimension_id[i][j]" ); 860 } 864 861 } 865 862 }
Note: See TracChangeset for help on using the changeset viewer.