Changeset 882 in 3DVCSoftware for branches/HTM-10.1-dev0/source/Lib/TLibEncoder
- Timestamp:
- 28 Mar 2014, 01:17:13 (11 years ago)
- Location:
- branches/HTM-10.1-dev0/source/Lib/TLibEncoder
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/NALwrite.cpp
r872 r882 91 91 vector<uint8_t>& rbsp = nalu.m_Bitstream.getFIFO(); 92 92 93 #if H_MV _HLS_7_MISC_P0130_EOS// This will handle situation when writing NAL with zero payload93 #if H_MV // This will handle situation when writing NAL with zero payload 94 94 if (rbsp.size() == 0) return; 95 95 #endif -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/SEIwrite.cpp
r872 r882 93 93 fprintf( g_hTrace, "=========== Scalable Nesting SEI message ===========\n"); 94 94 break; 95 #if H_MV _HLS_7_SEI_P0204_2695 #if H_MV 96 96 case SEI::SUB_BITSTREAM_PROPERTY: 97 97 fprintf( g_hTrace, "=========== Sub-bitstream property SEI message ===========\n"); … … 151 151 xWriteSEIScalableNesting(bs, *static_cast<const SEIScalableNesting*>(&sei), sps); 152 152 break; 153 #if H_MV _HLS_7_SEI_P0204_26153 #if H_MV 154 154 case SEI::SUB_BITSTREAM_PROPERTY: 155 155 xWriteSEISubBitstreamProperty(*static_cast<const SEISubBitstreamProperty*>(&sei)); … … 589 589 } 590 590 591 #if H_MV _HLS_7_SEI_P0204_26591 #if H_MV 592 592 Void SEIWriter::xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei) 593 593 { -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/SEIwrite.h
r872 r882 66 66 Void xWriteSEISOPDescription(const SEISOPDescription& sei); 67 67 Void xWriteSEIScalableNesting(TComBitIf& bs, const SEIScalableNesting& sei, TComSPS *sps); 68 #if H_MV _HLS_7_SEI_P0204_2668 #if H_MV 69 69 Void xWriteSEISubBitstreamProperty(const SEISubBitstreamProperty &sei); 70 70 #endif -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r877 r882 272 272 WRITE_FLAG( pcPPS->getSliceHeaderExtensionPresentFlag() ? 1 : 0, "slice_segment_header_extension_present_flag"); 273 273 274 #if H_MV_HLS_7_GEN_P0166_PPS_EXTENSION275 274 #if !H_MV 276 275 WRITE_FLAG( 0, "pps_extension_flag" ); … … 290 289 if( pcPPS->getPpsExtensionTypeFlag( PPS_EX_T_MV ) ) 291 290 { 292 #if H_MV_HLS_7_POC_P0041293 291 WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag( ) ? 1 : 0 , "poc_reset_info_present_flag" ); 294 #endif295 292 } 296 293 … … 303 300 304 301 #endif 305 #else 306 #if !H_3D 307 WRITE_FLAG( 0, "pps_extension_flag" ); 308 #else 309 WRITE_FLAG( 1, "pps_extension_flag" ); 310 codePPSExtension( pcPPS ); 311 WRITE_FLAG( 0, "pps_extension2_flag" ); 312 #endif 313 #endif 302 314 303 } 315 304 … … 725 714 #endif 726 715 WRITE_UVLC( pcSPS->getBitsForPOC()-4, "log2_max_pic_order_cnt_lsb_minus4" ); 727 #if H_MV _HLS_7_SPS_P0155_16_32716 #if H_MV 728 717 if ( pcSPS->getLayerId() == 0 ) 729 718 { … … 741 730 } 742 731 } 743 #if H_MV _HLS_7_SPS_P0155_16_32732 #if H_MV 744 733 } 745 734 #endif … … 871 860 WRITE_SVLC( pcSPS->getScaledRefLayerRightOffset( j ), "scaled_ref_layer_right_offset" ); 872 861 WRITE_SVLC( pcSPS->getScaledRefLayerBottomOffset( j ), "scaled_ref_layer_bottom_offset" ); 873 #if H_MV_HLS_7_RESERVED_FLAGS874 862 WRITE_FLAG( 0, "sps_multilayer_ext_reserved_zero_flag[ j ]" ); 875 #endif876 863 } 877 864 } … … 904 891 WRITE_FLAG( pcVPS->getTemporalNestingFlag(), "vps_temporal_id_nesting_flag" ); 905 892 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 906 #if H_MV_HLS_7_VPS_P0125_24907 893 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" ); 908 #else909 #if H_MV && !H_MV_HLS7_GEN910 WRITE_CODE( 0xffff, 16, "vps_extension_offset" );911 #else912 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" );913 #endif914 #endif915 894 codePTL( pcVPS->getPTL(), true, pcVPS->getMaxTLayers() - 1 ); 916 895 const Bool subLayerOrderingInfoPresentFlag = 1; … … 1010 989 { 1011 990 WRITE_FLAG( pcVPS->getAvcBaseLayerFlag() ? 1 : 0, "avc_base_layer_flag" ); 1012 #if !H_MV_HLS_7_VPS_P0307_231013 WRITE_FLAG( pcVPS->getVpsVuiPresentFlag() ? 1 : 0 , "vps_vui_present_flag" );1014 if ( pcVPS->getVpsVuiPresentFlag() )1015 {1016 WRITE_CODE( pcVPS->getVpsVuiOffset( ), 16, "vps_vui_offset" ); // TBD1017 }1018 #endif1019 1020 991 WRITE_FLAG( pcVPS->getSplittingFlag() ? 1 : 0, "splitting_flag" ); 1021 992 1022 993 for( Int type = 0; type < MAX_NUM_SCALABILITY_TYPES; type++ ) 1023 994 { … … 1042 1013 { 1043 1014 WRITE_CODE( pcVPS->getLayerIdInNuh( i ), 6, "layer_id_in_nuh[i]"); 1044 }1015 } 1045 1016 else 1046 1017 { 1047 1018 assert( pcVPS->getLayerIdInNuh( i ) == i ); 1048 }1019 } 1049 1020 1050 1021 assert( pcVPS->getLayerIdInVps( pcVPS->getLayerIdInNuh( i ) ) == i ); … … 1064 1035 1065 1036 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1037 WRITE_CODE( pcVPS->getViewIdLen( ), 4, "view_id_len" ); 1038 1039 if ( pcVPS->getViewIdLen( ) > 0 ) 1040 { 1041 for( Int i = 0; i < pcVPS->getNumViews(); i++ ) 1042 { 1043 WRITE_CODE( pcVPS->getViewIdVal( i ), pcVPS->getViewIdLen( ), "view_id_val[i]" ); 1044 } 1045 } 1046 else 1047 { 1048 for( Int i = 0; i < pcVPS->getNumViews(); i++ ) 1049 { 1050 assert( pcVPS->getViewIdVal( i ) == 0 ); 1051 } 1052 } 1082 1053 1083 1054 … … 1122 1093 1123 1094 WRITE_FLAG( pcVPS->getAllRefLayersActiveFlag( ) ? 1 : 0 , "all_ref_layers_active_flag" ); 1124 #if !H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271125 WRITE_CODE( pcVPS->getVpsNumberLayerSetsMinus1( ) , 10, "vps_number_layer_sets_minus1" );1126 #endif1127 1128 #if !H_MV_HLS_7_VPS_P0306_221129 WRITE_CODE( pcVPS->getVpsNumProfileTierLevelMinus1( ), 6, "vps_num_profile_tier_level_minus1" );1130 #else1131 1095 WRITE_UVLC( pcVPS->getVpsNumProfileTierLevelMinus1( ), "vps_num_profile_tier_level_minus1" ); 1132 #endif1133 1096 1134 1097 for( Int i = 1; i <= pcVPS->getVpsNumProfileTierLevelMinus1(); i++ ) 1135 1098 { 1136 1099 WRITE_FLAG( pcVPS->getVpsProfilePresentFlag( i ) ? 1 : 0, "vps_profile_present_flag[i]" ); 1137 #if !H_MV_HLS_7_VPS_P0048_141138 if( !pcVPS->getVpsProfilePresentFlag( i ) )1139 {1140 WRITE_CODE( pcVPS->getProfileRefMinus1( i ), 6, "profile_ref_minus1[i]" );1141 pcVPS->checkProfileRefMinus1( i );1142 }1143 #endif1144 1100 codePTL( pcVPS->getPTL( i ), pcVPS->getVpsProfilePresentFlag( i ), pcVPS->getMaxTLayers() - 1 ); 1145 1101 } 1146 1102 1147 1148 1149 1150 1151 1152 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271153 1103 WRITE_UVLC( pcVPS->getNumAddOutputLayerSets( ), "num_add_output_layer_sets" ); 1154 1104 … … 1157 1107 WRITE_CODE( pcVPS->getDefaultTargetOutputLayerIdc( ), 2, "default_target_output_layer_idc" ); 1158 1108 } 1159 #else 1160 Int numOutputLayerSets = pcVPS->getVpsNumberLayerSetsMinus1( ) + 1; 1161 1162 WRITE_FLAG( pcVPS->getMoreOutputLayerSetsThanDefaultFlag( ) ? 1 : 0, "more_output_layer_sets_than_default_flag" ); 1163 1164 if ( pcVPS->getMoreOutputLayerSetsThanDefaultFlag( ) ) 1165 { 1166 WRITE_CODE( pcVPS->getNumAddOutputLayerSetsMinus1( ) , 10, "num_add_output_layer_sets_minus1" ); 1167 numOutputLayerSets += ( pcVPS->getNumAddOutputLayerSetsMinus1( ) + 1 ); 1168 } 1169 1170 if( numOutputLayerSets > 1) 1171 { 1172 WRITE_CODE( pcVPS->getDefaultOneTargetOutputLayerIdc( ), 2, "default_one_target_output_layer_idc" ); 1173 pcVPS->checkDefaultOneTargetOutputLayerIdc(); 1174 } 1175 #endif 1109 1176 1110 1177 1111 assert( pcVPS->getOutputLayerFlag(0, 0) == pcVPS->inferOutputLayerFlag( 0, 0 )); 1178 1112 assert( pcVPS->getOutputLayerSetIdxMinus1( 0 ) == -1 ); 1179 1113 1180 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271181 1182 1114 for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ ) 1183 1115 { 1184 1116 if( i > pcVPS->getVpsNumLayerSetsMinus1( ) ) 1185 #else1186 for( Int i = 1; i < numOutputLayerSets; i++ )1187 {1188 if( i > pcVPS->getVpsNumberLayerSetsMinus1( ) )1189 #endif1190 1117 { 1191 1118 WRITE_UVLC( pcVPS->getOutputLayerSetIdxMinus1( i ), "output_layer_set_idx_minus1[i]" ); 1192 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271193 1119 } 1194 1120 … … 1208 1134 } 1209 1135 1210 #else1211 for( Int j = 0; j < pcVPS->getNumLayersInIdList( j ) - 1 ; j++ )1212 {1213 WRITE_FLAG( pcVPS->getOutputLayerFlag( i, j) ? 1 : 0, "output_layer_flag" );1214 }1215 }1216 else1217 { // These inference rules would also be helpful in spec text1218 assert( pcVPS->getOutputLayerSetIdxMinus1(i ) == i - 1 );1219 for( Int j = 0; j < pcVPS->getNumLayersInIdList( j ) - 1; j++ )1220 {1221 assert( pcVPS->getOutputLayerFlag( i , j ) == pcVPS->inferOutputLayerFlag( i, j ));1222 }1223 }1224 #endif1225 1136 if ( pcVPS->getProfileLevelTierIdxLen() > 0 ) 1226 1137 { 1227 1138 WRITE_CODE( pcVPS->getProfileLevelTierIdx( i ), pcVPS->getProfileLevelTierIdxLen() ,"profile_level_tier_idx[ i ]" ); 1228 1139 } 1229 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271230 1140 if( pcVPS->getNumOutputLayersInOutputLayerSet( i ) == 1 && pcVPS->getNumDirectRefLayers( pcVPS->getOlsHighestOutputLayerId( i ) ) > 0 ) 1231 1141 { … … 1233 1143 } 1234 1144 } 1235 #else1236 }1237 1238 if( pcVPS->getMaxLayersMinus1() > 0 )1239 {1240 WRITE_FLAG( pcVPS->getAltOutputLayerFlag( ) ? 1 : 0 , "alt_output_layer_flag" );1241 }1242 #endif1243 1244 1245 1246 1247 1145 1248 1146 WRITE_FLAG( pcVPS->getRepFormatIdxPresentFlag( ) ? 1 : 0 , "rep_format_idx_present_flag" ); 1249 1147 if ( pcVPS->getRepFormatIdxPresentFlag() ) 1250 1148 { 1251 #if H_MV_HLS_7_VPS_P0306_221252 1149 WRITE_UVLC( pcVPS->getVpsNumRepFormatsMinus1( ), "vps_num_rep_formats_minus1" ); 1253 #else1254 WRITE_CODE( pcVPS->getVpsNumRepFormatsMinus1( ), 4, "vps_num_rep_formats_minus1" );1255 #endif1256 1150 } 1257 1151 … … 1269 1163 if( pcVPS->getVpsNumRepFormatsMinus1() > 0 ) 1270 1164 { 1271 #if H_MV_HLS_7_VPS_P0306_221272 1165 WRITE_CODE( pcVPS->getVpsRepFormatIdx(i), pcVPS->getVpsRepFormatIdxLen(), "vps_rep_format_idx[i]" ); 1273 #else1274 WRITE_CODE( pcVPS->getVpsRepFormatIdx( i ), 8, "vps_rep_format_idx" );1275 #endif1276 1166 } 1277 1167 } … … 1289 1179 } 1290 1180 } 1291 #if H_MV_HLS_7_RESERVED_FLAGS1292 1181 WRITE_FLAG( 0, "vps_reserved_zero_flag" ); 1293 #endif1294 1182 codeDpbSize( pcVPS ); 1295 1183 … … 1321 1209 } 1322 1210 } 1323 #if H_MV_HLS_7_VPS_P0307_231324 1211 WRITE_UVLC( 0, "vps_non_vui_extension_length" ); 1325 1212 WRITE_FLAG( pcVPS->getVpsVuiPresentFlag() ? 1 : 0 , "vps_vui_present_flag" ); 1326 #endif 1327 #if !H_MV_HLS_7_RESERVED_FLAGS 1328 WRITE_FLAG ( 0, "vps_shvc_reserved_zero_flag" ); 1329 #endif 1330 if( pcVPS->getVpsVuiPresentFlag() ) 1331 { 1332 m_pcBitIf->writeAlignOne(); // vps_vui_alignment_bit_equal_to_one 1333 codeVPSVUI( pcVPS ); 1334 } 1335 #if H_MV_HLS_7_FIX_INFER_CROSS_LAYER_IRAP_ALIGNED_FLAG 1336 { 1337 TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( ); 1338 assert( pcVPSVUI ); 1339 pcVPSVUI->inferVpsVui( true ); 1340 } 1341 #endif 1342 } 1213 if( pcVPS->getVpsVuiPresentFlag() ) 1214 { 1215 m_pcBitIf->writeAlignOne(); // vps_vui_alignment_bit_equal_to_one 1216 codeVPSVUI( pcVPS ); 1217 } 1218 { 1219 TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( ); 1220 assert( pcVPSVUI ); 1221 pcVPSVUI->inferVpsVui( true ); 1222 } 1223 } 1224 1343 1225 Void TEncCavlc::codeVideoSignalInfo( TComVideoSignalInfo* pcVideoSignalInfo ) 1344 1226 { … … 1359 1241 { 1360 1242 WRITE_FLAG( dpbSize->getSubLayerFlagInfoPresentFlag( i ) ? 1 : 0 , "sub_layer_flag_info_present_flag" ); 1361 #if H_MV_HLS_7_HRD_P0156_71362 1243 for( Int j = 0; j <= vps->getMaxSubLayersInLayerSetMinus1( i ); j++ ) 1363 #else1364 for( Int j = 0; j <= vps->getMaxTLayers() - 1 ; j++ )1365 #endif1366 1244 { 1367 1245 if( j > 0 && dpbSize->getSubLayerDpbInfoPresentFlag( i, j ) ) … … 1371 1249 if( dpbSize->getSubLayerDpbInfoPresentFlag( i, j ) ) 1372 1250 { 1373 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271374 1251 for( Int k = 0; k < vps->getNumSubDpbs( vps->getLayerSetIdxForOutputLayerSet( i )); k++ ) 1375 #else1376 for( Int k = 0; k < vps->getNumSubDpbs( vps->getOutputLayerSetIdxMinus1( i ) + 1 ); k++ ) // Preliminary fix does not match with spec1377 #endif1378 1252 { 1379 1253 WRITE_UVLC( dpbSize->getMaxVpsDecPicBufferingMinus1( i, k, j ), "max_vps_dec_pic_buffering_minus1" ); … … 1395 1269 if ( j > 0 ) 1396 1270 { 1397 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271398 1271 for( Int k = 0; k < vps->getNumSubDpbs( vps->getLayerSetIdxForOutputLayerSet( i ) ); k++ ) 1399 #else1400 for( Int k = 0; k < vps->getNumSubDpbs( vps->getOutputLayerSetIdxMinus1( i ) + 1 ); k++ )1401 #endif1402 1272 { 1403 1273 assert( dpbSize->getMaxVpsDecPicBufferingMinus1( i, k, j ) == dpbSize->getMaxVpsDecPicBufferingMinus1( i,k, j - 1 ) ); … … 1451 1321 WRITE_FLAG( pcVPSVUI->getCrossLayerIrapAlignedFlag( ) ? 1 : 0 , "cross_layer_irap_aligned_flag" ); 1452 1322 } 1453 #if H_MV_HLS_7_MISC_P0068_211454 1323 if( pcVPSVUI->getCrossLayerIrapAlignedFlag( ) ) 1455 1324 { 1456 1325 WRITE_FLAG( pcVPSVUI->getAllLayersIdrAlignedFlag( ) ? 1 : 0 , "all_layers_idr_aligned_flag" ); 1457 1326 } 1458 #endif1459 1327 WRITE_FLAG( pcVPSVUI->getBitRatePresentVpsFlag( ) ? 1 : 0 , "bit_rate_present_vps_flag" ); 1460 1328 WRITE_FLAG( pcVPSVUI->getPicRatePresentVpsFlag( ) ? 1 : 0 , "pic_rate_present_vps_flag" ); 1461 1329 if( pcVPSVUI->getBitRatePresentVpsFlag( ) || pcVPSVUI->getPicRatePresentVpsFlag( ) ) 1462 1330 { 1463 #if H_MV_HLS_7_OUTPUT_LAYERS_5_10_22_271464 1331 for( Int i = 0; i <= pcVPS->getVpsNumLayerSetsMinus1(); i++ ) 1465 #else1466 for( Int i = 0; i <= pcVPS->getVpsNumberLayerSetsMinus1(); i++ )1467 #endif1468 1332 { 1469 1333 for( Int j = 0; j <= pcVPS->getMaxTLayers(); j++ ) … … 1491 1355 } 1492 1356 1493 #if H_MV_HLS_7_VPS_P0076_151494 1357 WRITE_FLAG( pcVPSVUI->getVideoSignalInfoIdxPresentFlag( ) ? 1 : 0 , "video_signal_info_idx_present_flag" ); 1495 1358 if( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() ) … … 1525 1388 } 1526 1389 } 1527 #endif1528 1390 WRITE_FLAG( pcVPSVUI->getTilesNotInUseFlag( ) ? 1 : 0 , "tiles_not_in_use_flag" ); 1529 1391 if( !pcVPSVUI->getTilesNotInUseFlag() ) … … 1560 1422 } 1561 1423 } 1562 #if H_MV_HLS_7_RESERVED_FLAGS1563 1424 WRITE_CODE( 0, 3, "vps_vui_reserved_zero_3bits" ); 1564 #endif1565 1425 WRITE_FLAG( pcVPSVUI->getIlpRestrictedRefLayersFlag( ) ? 1 : 0 , "ilp_restricted_ref_layers_flag" ); 1566 1426 … … 1584 1444 } 1585 1445 1586 #if !H_MV_HLS_7_VPS_P0076_15 1587 WRITE_FLAG( pcVPSVUI->getVideoSignalInfoIdxPresentFlag( ) ? 1 : 0 , "video_signal_info_idx_present_flag" ); 1588 if( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() ) 1589 { 1590 WRITE_CODE( pcVPSVUI->getVpsNumVideoSignalInfoMinus1( ), 4, "vps_num_video_signal_info_minus1" ); 1591 } 1592 else 1593 { 1594 pcVPSVUI->setVpsNumVideoSignalInfoMinus1( pcVPS->getMaxLayersMinus1() ); 1595 } 1596 1597 for( Int i = 0; i <= pcVPSVUI->getVpsNumVideoSignalInfoMinus1(); i++ ) 1598 { 1599 assert( pcVPSVUI->getVideoSignalInfo( i ) != NULL ); 1600 TComVideoSignalInfo* curVideoSignalInfo = pcVPSVUI->getVideoSignalInfo( i ); 1601 codeVideoSignalInfo( curVideoSignalInfo ); 1602 } 1603 1604 if( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() && pcVPSVUI->getVpsNumVideoSignalInfoMinus1() > 0 ) 1605 { 1606 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1607 { 1608 WRITE_CODE( pcVPSVUI->getVpsVideoSignalInfoIdx( i ), 4, "vps_video_signal_info_idx" ); 1609 assert( pcVPSVUI->getVpsVideoSignalInfoIdx( i ) >= 0 && pcVPSVUI->getVpsVideoSignalInfoIdx( i ) <= pcVPSVUI->getVpsNumVideoSignalInfoMinus1() ); 1610 } 1611 } 1612 else 1613 { 1614 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1615 { 1616 assert( pcVPSVUI->getVpsVideoSignalInfoIdx( i ) == ( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() ? 0 : i ) ); 1617 } 1618 } 1619 #endif 1446 1620 1447 WRITE_FLAG( pcVPSVUI->getVpsVuiBspHrdPresentFlag( ) ? 1 : 0 , "vps_vui_bsp_hrd_present_flag" ); 1621 1448 if ( pcVPSVUI->getVpsVuiBspHrdPresentFlag( ) ) … … 1623 1450 codeVpsVuiBspHrdParameters( pcVPS ); 1624 1451 } 1625 #if H_MV_HLS_7_MISC_P0182_131626 1452 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1627 1453 { … … 1630 1456 WRITE_FLAG( pcVPSVUI->getBaseLayerParameterSetCompatibilityFlag( i ) ? 1 : 0 , "base_layer_parameter_set_compatibility_flag" ); 1631 1457 } 1632 } 1633 #endif 1458 } 1634 1459 } 1635 1460 … … 2225 2050 #endif 2226 2051 2227 #if !H_MV_HLS_7_POC_P0041 2228 #if PPS_FIX_DEPTH 2229 if(pcSlice->getPPS()->getSliceHeaderExtensionPresentFlag() || pcSlice->getIsDepth() ) 2230 #else 2231 if(pcSlice->getPPS()->getSliceHeaderExtensionPresentFlag()) 2232 #endif 2233 { 2234 WRITE_UVLC(0,"slice_header_extension_length"); 2235 } 2236 #endif 2237 2238 #if H_MV_HLS_7_POC_P0041 2052 2239 2053 #if !H_MV 2240 2054 if(pcSlice->getPPS()->getSliceHeaderExtensionPresentFlag()) … … 2344 2158 } 2345 2159 #endif 2346 #endif2347 2160 } 2348 2161 -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncCfg.h
r876 r882 347 347 348 348 Bool m_useStrongIntraSmoothing; ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat. 349 #if H_MV _HLS_7_SEI_P0204_26349 #if H_MV 350 350 Bool m_subBistreamPropSEIEnabled; 351 351 Int m_numAdditionalSubStreams; … … 785 785 Int getScalableNestingSEIEnabled() { return m_scalableNestingSEIEnabled; } 786 786 787 #if H_MV _HLS_7_SEI_P0204_26787 #if H_MV 788 788 Bool getSubBitstreamPropSEIEnabled() { return m_subBistreamPropSEIEnabled;} 789 789 Void setSubBitstreamPropSEIEnabled(Bool x) { m_subBistreamPropSEIEnabled = x;} -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncCu.cpp
r881 r882 1794 1794 memset( mergeCandBuffer, 0, MRG_MAX_NUM_CANDS_MEM*sizeof(Int) ); 1795 1795 rpcTempCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uhDepth ); // interprets depth relative to LCU level 1796 #if !UPDATE_HM131797 rpcTempCU->setCUTransquantBypassSubParts( m_pcEncCfg->getCUTransquantBypassFlagValue(), 0, uhDepth );1798 #endif1799 1796 rpcTempCU->setARPWSubParts( (UChar)nARPW , 0 , uhDepth ); 1800 1797 #if H_3D_IC … … 2085 2082 { 2086 2083 2087 #if UPDATE_HM132088 2084 #if H_3D 2089 2085 const Bool bTransquantBypassFlag = rpcTempCU->getCUTransquantBypass(0); 2090 #endif2091 2086 #endif 2092 2087 #if H_3D_FAST_TEXTURE_ENCODING … … 2109 2104 if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) ) 2110 2105 { 2111 #if UPDATE_HM132112 2106 rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag ); 2113 #else2114 rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0) );2115 #endif2116 2107 } 2117 2108 #endif … … 2222 2213 { 2223 2214 Int orgQP = rpcBestCU->getQP( 0 ); 2224 #if UPDATE_HM132225 2215 rpcTempCU->initEstData( uhDepth, orgQP ,bTransquantBypassFlag ); 2226 #else2227 rpcTempCU->initEstData( uhDepth, orgQP );2228 #endif2229 2216 rpcTempCU->copyPartFrom( rpcBestCU, 0, uhDepth ); 2230 2217 } -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncGOP.cpp
r872 r882 296 296 } 297 297 298 #if H_MV _HLS_7_SEI_P0204_26298 #if H_MV 299 299 SEISubBitstreamProperty *TEncGOP::xCreateSEISubBitstreamProperty( TComSPS *sps) 300 300 { … … 365 365 delete sei; 366 366 } 367 #if H_MV _HLS_7_SEI_P0204_26367 #if H_MV 368 368 if( m_pcCfg->getSubBitstreamPropSEIEnabled() ) 369 369 { -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncGOP.h
r872 r882 212 212 213 213 SEIToneMappingInfo* xCreateSEIToneMappingInfo(); 214 #if H_MV _HLS_7_SEI_P0204_26214 #if H_MV 215 215 SEISubBitstreamProperty *xCreateSEISubBitstreamProperty( TComSPS *sps); 216 216 #endif -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
r881 r882 4601 4601 } 4602 4602 else 4603 #if H_3D_FIX_G0148_BRACE4604 4603 { 4605 #endif4606 4604 #endif 4607 4605 pcCU->setInterDirSubParts ( uiMRGInterDir, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4608 4606 pcCU->getCUMvField( REF_PIC_LIST_0 )->setAllMvField( cMRGMvField[0], ePartSize, uiPartAddr, 0, iPartIdx ); 4609 4607 pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllMvField( cMRGMvField[1], ePartSize, uiPartAddr, 0, iPartIdx ); 4610 #if H_3D _FIX_G0148_BRACE4608 #if H_3D 4611 4609 } 4612 4610 #endif -
branches/HTM-10.1-dev0/source/Lib/TLibEncoder/TEncTop.cpp
r872 r882 667 667 m_cSPS.setSPSId( getLayerIdInVps() ); 668 668 m_cSPS.setLayerId( getLayerId() ); 669 #endif670 #if H_MV_HLS_7_VPS_P0048_14671 669 // Code below needs to be moved to VPS 672 670 #endif … … 832 830 m_cPPS.setSPSId( getLayerIdInVps() ); 833 831 834 #if H_MV_HLS_7_GEN_P0166_PPS_EXTENSION835 #if H_MV836 832 m_cPPS.setPpsExtensionTypeFlag ( PPS_EX_T_MV ,true ); 837 833 #if H_3D 838 834 m_cPPS.setPpsExtensionTypeFlag ( PPS_EX_T_3D ,true ); 839 #endif840 #endif841 835 #endif 842 836 #endif
Note: See TracChangeset for help on using the changeset viewer.