Changeset 576 in SHVCSoftware for branches/SHM-5.0-dev/source
- Timestamp:
- 29 Jan 2014, 01:17:30 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r569 r576 1963 1963 #endif 1964 1964 , m_numProfileTierLevel (0) 1965 #if !VPS_EXTN_UEV_CODING 1965 1966 , m_moreOutputLayerSetsThanDefaultFlag (false) 1967 #endif 1966 1968 , m_numAddOutputLayerSets (0) 1967 1969 #if O0109_DEFAULT_ONE_OUT_LAYER_IDC -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r568 r576 540 540 #endif 541 541 UInt m_numProfileTierLevel; 542 #if !VPS_EXTN_UEV_CODING 542 543 Bool m_moreOutputLayerSetsThanDefaultFlag; 544 #endif 543 545 Int m_numAddOutputLayerSets; 544 546 #if O0109_DEFAULT_ONE_OUT_LAYER_IDC … … 824 826 Void setNumProfileTierLevel(Int x) { m_numProfileTierLevel = x; } 825 827 828 #if !VPS_EXTN_UEV_CODING 826 829 Bool getMoreOutputLayerSetsThanDefaultFlag() { return m_moreOutputLayerSetsThanDefaultFlag;} 827 830 Void setMoreOutputLayerSetsThanDefaultFlag(Bool x) { m_moreOutputLayerSetsThanDefaultFlag = x ;} 831 #endif 828 832 829 833 Int getNumAddOutputLayerSets() { return m_numAddOutputLayerSets; } -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r572 r576 55 55 56 56 #define DISCARDABLE_PIC_RPS 1 ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1 57 57 #define VPS_EXTN_UEV_CODING 1 ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour 58 58 #define O0109_O0199_FLAGS_TO_VUI 1 ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui 59 59 #define O0109_VIEW_ID_LEN 1 ///< JCTVC-O0109: view_id_len_minus1 to view_id_len, and add constraint (1<<view_id_len) is greater than or equal to NumViews -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r571 r576 1160 1160 #if VPS_EXTN_PROFILE_INFO 1161 1161 // Profile-tier-level signalling 1162 #if !VPS_EXTN_UEV_CODING 1162 1163 READ_CODE( 10, uiCode, "vps_number_layer_sets_minus1" ); assert( uiCode == (vps->getNumLayerSets() - 1) ); 1163 1164 READ_CODE( 6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1165 #else 1166 READ_UVLC( uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1167 #endif 1164 1168 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 1165 1169 for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) … … 1186 1190 #endif 1187 1191 1192 #if !VPS_EXTN_UEV_CODING 1188 1193 READ_FLAG( uiCode, "more_output_layer_sets_than_default_flag" ); vps->setMoreOutputLayerSetsThanDefaultFlag( uiCode ? true : false ); 1189 1194 Int numOutputLayerSets = 0; … … 1197 1202 numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets(); 1198 1203 } 1204 #else 1205 READ_UVLC( uiCode, "num_add_output_layer_sets" ); vps->setNumAddOutputLayerSets( uiCode ); 1206 Int numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets(); 1207 #endif 1199 1208 if( numOutputLayerSets > 1 ) 1200 1209 { … … 1294 1303 { 1295 1304 #if O0096_REP_FORMAT_INDEX 1305 #if !VPS_EXTN_UEV_CODING 1296 1306 READ_CODE( 8, uiCode, "vps_num_rep_formats_minus1" ); 1307 #else 1308 READ_UVLC( uiCode, "vps_num_rep_formats_minus1" ); 1309 #endif 1297 1310 #else 1298 1311 READ_CODE( 4, uiCode, "vps_num_rep_formats_minus1" ); … … 1321 1334 { 1322 1335 #if O0096_REP_FORMAT_INDEX 1336 #if !VPS_EXTN_UEV_CODING 1323 1337 READ_CODE( 8, uiCode, "vps_rep_format_idx[i]" ); 1338 #else 1339 Int numBits = 1; 1340 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 1341 { 1342 numBits++; 1343 } 1344 READ_CODE( numBits, uiCode, "vps_rep_format_idx[i]" ); 1345 #endif 1324 1346 #else 1325 1347 READ_CODE( 4, uiCode, "vps_rep_format_idx[i]" ); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r570 r576 932 932 #if VPS_EXTN_PROFILE_INFO 933 933 // Profile-tier-level signalling 934 #if !VPS_EXTN_UEV_CODING 934 935 WRITE_CODE( vps->getNumLayerSets() - 1 , 10, "vps_number_layer_sets_minus1" ); 935 936 WRITE_CODE( vps->getNumProfileTierLevel() - 1, 6, "vps_num_profile_tier_level_minus1"); 937 #else 938 WRITE_UVLC( vps->getNumProfileTierLevel() - 1, "vps_num_profile_tier_level_minus1"); 939 #endif 936 940 for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) 937 941 { … … 947 951 #endif 948 952 953 #if !VPS_EXTN_UEV_CODING 949 954 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 950 955 WRITE_FLAG( (numOutputLayerSets > vps->getNumLayerSets()), "more_output_layer_sets_than_default_flag" ); … … 953 958 WRITE_CODE( numOutputLayerSets - vps->getNumLayerSets(), 10, "num_add_output_layer_sets" ); 954 959 } 960 #else 961 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 962 assert( numOutputLayerSets - vps->getNumLayerSets() >= 0 ); 963 WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" ); 964 #endif 955 965 if( numOutputLayerSets > 1 ) 956 966 { … … 999 1009 { 1000 1010 #if O0096_REP_FORMAT_INDEX 1011 #if !VPS_EXTN_UEV_CODING 1001 1012 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); 1013 #else 1014 WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" ); 1015 #endif 1002 1016 #else 1003 1017 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" ); … … 1017 1031 { 1018 1032 #if O0096_REP_FORMAT_INDEX 1033 #if !VPS_EXTN_UEV_CODING 1019 1034 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); 1035 #else 1036 Int numBits = 1; 1037 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 1038 { 1039 numBits++; 1040 } 1041 WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" ); 1042 #endif 1020 1043 #else 1021 1044 WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" );
Note: See TracChangeset for help on using the changeset viewer.