Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 184 184 WRITE_FLAG( pcPPS->getOutputFlagPresentFlag() ? 1 : 0, "output_flag_present_flag" ); 185 185 WRITE_CODE( pcPPS->getNumExtraSliceHeaderBits(), 3, "num_extra_slice_header_bits"); 186 WRITE_FLAG( pcPPS->getSign HideFlag(), "sign_data_hiding_flag" );186 WRITE_FLAG( pcPPS->getSignDataHidingEnabledFlag(), "sign_data_hiding_enabled_flag" ); 187 187 WRITE_FLAG( pcPPS->getCabacInitPresentFlag() ? 1 : 0, "cabac_init_present_flag" ); 188 188 #if H_3D_PPS_FIX_DEPTH … … 216 216 WRITE_FLAG( pcPPS->getUseWP() ? 1 : 0, "weighted_pred_flag" ); // Use of Weighting Prediction (P_SLICE) 217 217 WRITE_FLAG( pcPPS->getWPBiPred() ? 1 : 0, "weighted_bipred_flag" ); // Use of Weighting Bi-Prediction (B_SLICE) 218 WRITE_FLAG( pcPPS->getTransquantBypassEnable Flag() ? 1 : 0, "transquant_bypass_enable_flag" );218 WRITE_FLAG( pcPPS->getTransquantBypassEnabledFlag() ? 1 : 0, "transquant_bypass_enabled_flag" ); 219 219 WRITE_FLAG( pcPPS->getTilesEnabledFlag() ? 1 : 0, "tiles_enabled_flag" ); 220 220 WRITE_FLAG( pcPPS->getEntropyCodingSyncEnabledFlag() ? 1 : 0, "entropy_coding_sync_enabled_flag" ); … … 235 235 } 236 236 } 237 if(pcPPS->getNumTileColumnsMinus1() !=0 || pcPPS->getNumTileRowsMinus1() !=0) 238 { 237 assert ((pcPPS->getNumTileColumnsMinus1() + pcPPS->getNumTileRowsMinus1()) != 0); 239 238 WRITE_FLAG( pcPPS->getLoopFilterAcrossTilesEnabledFlag()?1 : 0, "loop_filter_across_tiles_enabled_flag"); 240 239 } 241 }242 240 WRITE_FLAG( pcPPS->getLoopFilterAcrossSlicesEnabledFlag()?1 : 0, "pps_loop_filter_across_slices_enabled_flag"); 243 241 WRITE_FLAG( pcPPS->getDeblockingFilterControlPresentFlag()?1 : 0, "deblocking_filter_control_present_flag"); … … 245 243 { 246 244 WRITE_FLAG( pcPPS->getDeblockingFilterOverrideEnabledFlag() ? 1 : 0, "deblocking_filter_override_enabled_flag" ); 247 WRITE_FLAG( pcPPS->getP icDisableDeblockingFilterFlag() ? 1 : 0, "pps_disable_deblocking_filter_flag" );248 if(!pcPPS->getP icDisableDeblockingFilterFlag())245 WRITE_FLAG( pcPPS->getPPSDeblockingFilterDisabledFlag() ? 1 : 0, "pps_deblocking_filter_disabled_flag" ); 246 if(!pcPPS->getPPSDeblockingFilterDisabledFlag()) 249 247 { 250 248 WRITE_SVLC( pcPPS->getDeblockingFilterBetaOffsetDiv2(), "pps_beta_offset_div2" ); … … 392 390 Void TEncCavlc::codePps3dExtension ( const TComPPS* pcPPS ) 393 391 { 394 #if NH_3D_DLT395 392 WRITE_FLAG( pcPPS->getDLT()->getDltPresentFlag() ? 1 : 0, "dlts_present_flag" ); 396 393 … … 510 507 } 511 508 } 512 #endif513 509 } 514 510 #endif … … 849 845 } 850 846 } 851 WRITE_FLAG( pcSPS->get TMVPFlagsPresent() ? 1 : 0, "sps_temporal_mvp_enable_flag" );852 853 WRITE_FLAG( pcSPS->getUseStrongIntraSmoothing(), "s ps_strong_intra_smoothing_enable_flag" );847 WRITE_FLAG( pcSPS->getSPSTemporalMVPEnabledFlag() ? 1 : 0, "sps_temporal_mvp_enabled_flag" ); 848 849 WRITE_FLAG( pcSPS->getUseStrongIntraSmoothing(), "strong_intra_smoothing_enable_flag" ); 854 850 855 851 WRITE_FLAG( pcSPS->getVuiParametersPresentFlag(), "vui_parameters_present_flag" ); … … 1428 1424 for( Int j = 0; j <= vps->getMaxSubLayersInLayerSetMinus1( currLsIdx ); j++ ) 1429 1425 { 1430 #if NH_3D_FIX_TICKET_1141431 1426 if( j > 0 && dpbSize->getSubLayerFlagInfoPresentFlag( i ) ) 1432 #else1433 if( j > 0 && dpbSize->getSubLayerDpbInfoPresentFlag( i, j ) )1434 #endif1435 1427 { 1436 1428 WRITE_FLAG( dpbSize->getSubLayerDpbInfoPresentFlag( i, j ) ? 1 : 0 , "sub_layer_dpb_info_present_flag" ); … … 1982 1974 } 1983 1975 } 1984 if (pcSlice->getSPS()->get TMVPFlagsPresent())1976 if (pcSlice->getSPS()->getSPSTemporalMVPEnabledFlag()) 1985 1977 { 1986 1978 #if NH_MV … … 2166 2158 xCodePredWeightTable( pcSlice ); 2167 2159 } 2168 #if NH_3D _IC2160 #if NH_3D 2169 2161 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) 2170 2162 && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 … … 2178 2170 } 2179 2171 } 2180 #endif2181 #if NH_3D_IV_MERGE2182 2172 assert(pcSlice->getMaxNumMergeCand()<=MRG_MAX_NUM_CANDS_MEM); 2183 2173 #else … … 2186 2176 if (!pcSlice->isIntra()) 2187 2177 { 2188 #if NH_3D _IV_MERGE2178 #if NH_3D 2189 2179 WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) || pcSlice->getViewSynthesisPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); 2190 2180 #else … … 2220 2210 if (pcSlice->getDeblockingFilterOverrideFlag()) 2221 2211 { 2222 WRITE_FLAG(pcSlice->getDeblockingFilterDisable(), "slice_d isable_deblocking_filter_flag");2212 WRITE_FLAG(pcSlice->getDeblockingFilterDisable(), "slice_deblocking_filter_disabled_flag"); 2223 2213 if(!pcSlice->getDeblockingFilterDisable()) 2224 2214 { … … 2428 2418 if( ptl->getV2ConstraintsPresentFlag() ) 2429 2419 { 2430 WRITE_FLAG( ptl->getMax12bitConstraintFlag ( ) ? 1 : 0 , "max_12bit_constraint_flag" );2431 WRITE_FLAG( ptl->getMax10bitConstraintFlag ( ) ? 1 : 0 , "max_10bit_constraint_flag" );2432 WRITE_FLAG( ptl->getMax8bitConstraintFlag ( ) ? 1 : 0 , "max_8bit_constraint_flag" );2433 WRITE_FLAG( ptl->getMax422chromaConstraintFlag ( ) ? 1 : 0 , "max_422chroma_constraint_flag" );2434 WRITE_FLAG( ptl->getMax420chromaConstraintFlag ( ) ? 1 : 0 , "max_420chroma_constraint_flag" );2435 WRITE_FLAG( ptl->getMaxMonochromeConstraintFlag ( ) ? 1 : 0 , "max_monochrome_constraint_flag" );2436 WRITE_FLAG( ptl->getIntraConstraintFlag ( ) ? 1 : 0 , "intra_constraint_flag" );2437 WRITE_FLAG( ptl->getOnePictureOnlyConstraintFlag ( ) ? 1 : 0 , "one_picture_only_constraint_flag" );2438 WRITE_FLAG( ptl->getLowerBitRateConstraintFlag ( ) ? 1 : 0 , "lower_bit_rate_constraint_flag" );2420 WRITE_FLAG( ptl->getMax12bitConstraintFlag ( ) ? 1 : 0 , "max_12bit_constraint_flag" ); 2421 WRITE_FLAG( ptl->getMax10bitConstraintFlag ( ) ? 1 : 0 , "max_10bit_constraint_flag" ); 2422 WRITE_FLAG( ptl->getMax8bitConstraintFlag ( ) ? 1 : 0 , "max_8bit_constraint_flag" ); 2423 WRITE_FLAG( ptl->getMax422chromaConstraintFlag ( ) ? 1 : 0 , "max_422chroma_constraint_flag" ); 2424 WRITE_FLAG( ptl->getMax420chromaConstraintFlag ( ) ? 1 : 0 , "max_420chroma_constraint_flag" ); 2425 WRITE_FLAG( ptl->getMaxMonochromeConstraintFlag ( ) ? 1 : 0 , "max_monochrome_constraint_flag" ); 2426 WRITE_FLAG( ptl->getIntraConstraintFlag ( ) ? 1 : 0 , "intra_constraint_flag" ); 2427 WRITE_FLAG( ptl->getOnePictureOnlyConstraintFlag ( ) ? 1 : 0 , "one_picture_only_constraint_flag" ); 2428 WRITE_FLAG( ptl->getLowerBitRateConstraintFlag ( ) ? 1 : 0 , "lower_bit_rate_constraint_flag" ); 2439 2429 WRITE_CODE( 0, 16, "XXX_reserved_zero_34bits[0..15]"); 2440 2430 WRITE_CODE( 0, 16, "XXX_reserved_zero_34bits[16..31]"); … … 2473 2463 WRITE_CODE(0 , 2, PTL_TRACE_TEXT("reserved_zero_34bits[32..33]" )); 2474 2464 } 2465 else if (ptl->getProfileIdc() == Profile::MAIN10) 2466 { 2467 WRITE_CODE(0x00 , 7, PTL_TRACE_TEXT("reserved_zero_7bits" )); 2468 WRITE_FLAG(ptl->getOnePictureOnlyConstraintFlag(), PTL_TRACE_TEXT("one_picture_only_constraint_flag")); 2469 WRITE_CODE(0x0000 , 16, PTL_TRACE_TEXT("reserved_zero_35bits[0..15]" )); 2470 WRITE_CODE(0x0000 , 16, PTL_TRACE_TEXT("reserved_zero_35bits[16..31]" )); 2471 WRITE_CODE(0x0 , 3, PTL_TRACE_TEXT("reserved_zero_35bits[32..34]" )); 2472 } 2475 2473 else 2476 2474 { … … 2558 2556 } 2559 2557 2560 #if NH_3D _ARP2558 #if NH_3D 2561 2559 Void TEncCavlc::codeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2562 2560 { 2563 2561 assert(0); 2564 2562 } 2565 #endif 2566 2567 #if NH_3D_IC 2563 2568 2564 Void TEncCavlc::codeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2569 2565 { … … 2586 2582 assert(0); 2587 2583 } 2588 #if NH_3D _DIS2584 #if NH_3D 2589 2585 Void TEncCavlc::codeDIS( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2590 2586 { … … 2689 2685 } 2690 2686 2691 Void TEncCavlc::estBit( estBitsSbacStruct* /*pcEstBitsCabac*/, Int /*width*/, Int /*height*/, ChannelType /*chType*/ )2687 Void TEncCavlc::estBit( estBitsSbacStruct* /*pcEstBitsCabac*/, Int /*width*/, Int /*height*/, ChannelType /*chType*/, COEFF_SCAN_TYPE /*scanType*/ ) 2692 2688 { 2693 2689 // printf("error : no VLC mode support in this version\n"); … … 2867 2863 assert(0); 2868 2864 } 2869 #if NH_3D _SDC_INTRA || NH_3D_SDC_INTER2865 #if NH_3D 2870 2866 Void TEncCavlc::codeSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2871 2867 { 2872 2868 assert(0); 2873 2869 } 2874 #endif 2875 2876 #if NH_3D_DBBP 2870 2877 2871 Void TEncCavlc::codeDBBPFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2878 2872 {
Note: See TracChangeset for help on using the changeset viewer.