Changeset 1380 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib/TLibEncoder
- Timestamp:
- 11 Nov 2015, 20:47:01 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1374 r1380 349 349 if ( pcPPS->getPpsRangeExtensionsFlag() ) 350 350 { 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 351 const TComPPSRExt &ppsRangeExtension = pcPPS->getPpsRangeExtension(); 352 if (pcPPS->getUseTransformSkip()) 353 { 354 WRITE_UVLC( ppsRangeExtension.getLog2MaxTransformSkipBlockSize()-2, "log2_max_transform_skip_block_size_minus2"); 355 } 356 357 WRITE_FLAG((ppsRangeExtension.getCrossComponentPredictionEnabledFlag() ? 1 : 0), "cross_component_prediction_enabled_flag" ); 358 359 WRITE_FLAG(UInt(ppsRangeExtension.getChromaQpOffsetListEnabledFlag()), "chroma_qp_offset_list_enabled_flag" ); 360 if (ppsRangeExtension.getChromaQpOffsetListEnabledFlag()) 361 { 362 WRITE_UVLC(ppsRangeExtension.getDiffCuChromaQpOffsetDepth(), "diff_cu_chroma_qp_offset_depth"); 363 WRITE_UVLC(ppsRangeExtension.getChromaQpOffsetListLen() - 1, "chroma_qp_offset_list_len_minus1"); 364 /* skip zero index */ 365 for (Int cuChromaQpOffsetIdx = 0; cuChromaQpOffsetIdx < ppsRangeExtension.getChromaQpOffsetListLen(); cuChromaQpOffsetIdx++) 366 { 367 WRITE_SVLC(ppsRangeExtension.getChromaQpOffsetListEntry(cuChromaQpOffsetIdx+1).u.comp.CbOffset, "cb_qp_offset_list[i]"); 368 WRITE_SVLC(ppsRangeExtension.getChromaQpOffsetListEntry(cuChromaQpOffsetIdx+1).u.comp.CrOffset, "cr_qp_offset_list[i]"); 369 } 370 } 371 372 WRITE_UVLC( ppsRangeExtension.getLog2SaoOffsetScale(CHANNEL_TYPE_LUMA), "log2_sao_offset_scale_luma" ); 373 WRITE_UVLC( ppsRangeExtension.getLog2SaoOffsetScale(CHANNEL_TYPE_CHROMA), "log2_sao_offset_scale_chroma" ); 374 374 } 375 375 … … 990 990 for( Int d = 0; d <= 1; d++ ) 991 991 { 992 WRITE_FLAG( sps3dExt->getIv MvPredFlag( d ) ? 1 : 0 , "iv_mv_pred_flag" );993 WRITE_FLAG( sps3dExt->getIvMvScal ingFlag( d ) ? 1 : 0 , "iv_mv_scaling_flag" );992 WRITE_FLAG( sps3dExt->getIvDiMcEnabledFlag( d ) ? 1 : 0 , "iv_di_mc_enabled_flag" ); 993 WRITE_FLAG( sps3dExt->getIvMvScalEnabledFlag( d ) ? 1 : 0 , "iv_mv_scal_enabled_flag" ); 994 994 if( d == 0 ) 995 995 { 996 WRITE_UVLC( sps3dExt->getLog2 SubPbSizeMinus3( d ), "log2_sub_pb_size_minus3" );997 WRITE_FLAG( sps3dExt->getIvResPred Flag( d ) ? 1 : 0 , "iv_res_pred_flag" );998 WRITE_FLAG( sps3dExt->getDepthRef inementFlag( d ) ? 1 : 0 , "depth_refinement_flag" );999 WRITE_FLAG( sps3dExt->getV iewSynthesisPredFlag( d ) ? 1 : 0 , "view_synthesis_pred_flag" );1000 WRITE_FLAG( sps3dExt->getD epthBasedBlkPartFlag( d ) ? 1 : 0 , "depth_based_blk_part_flag" );996 WRITE_UVLC( sps3dExt->getLog2IvmcSubPbSizeMinus3( d ), "log2_sub_pb_size_minus3" ); 997 WRITE_FLAG( sps3dExt->getIvResPredEnabledFlag( d ) ? 1 : 0 , "iv_res_pred_enabled_flag" ); 998 WRITE_FLAG( sps3dExt->getDepthRefEnabledFlag( d ) ? 1 : 0 , "depth_ref_enabled_flag" ); 999 WRITE_FLAG( sps3dExt->getVspMcEnabledFlag( d ) ? 1 : 0 , "vsp_mc_enabled_flag" ); 1000 WRITE_FLAG( sps3dExt->getDbbpEnabledFlag( d ) ? 1 : 0 , "dbbp_enabled_flag" ); 1001 1001 } 1002 1002 else 1003 1003 { 1004 WRITE_FLAG( sps3dExt->get MpiFlag( d ) ? 1 : 0 , "mpi_flag" );1005 WRITE_UVLC( sps3dExt->getLog2 MpiSubPbSizeMinus3( d ), "log2_mpi_sub_pb_size_minus3" );1006 WRITE_FLAG( sps3dExt->getIntraContour Flag( d ) ? 1 : 0 , "intra_contour_flag" );1007 WRITE_FLAG( sps3dExt->getIntra SdcWedgeFlag( d ) ? 1 : 0 , "intra_sdc_wedge_flag" );1008 WRITE_FLAG( sps3dExt->get QtPredFlag( d ) ? 1 : 0 , "qt_pred_flag" );1009 WRITE_FLAG( sps3dExt->getInter SdcFlag( d ) ? 1 : 0 , "inter_sdc_flag" );1010 WRITE_FLAG( sps3dExt->get DepthIntraSkipFlag( d ) ? 1 : 0 , "intra_skip_flag" );1004 WRITE_FLAG( sps3dExt->getTexMcEnabledFlag( d ) ? 1 : 0 , "tex_mc_enabled_flag" ); 1005 WRITE_UVLC( sps3dExt->getLog2TexmcSubPbSizeMinus3( d ), "log2_texmc_sub_pb_size_minus3" ); 1006 WRITE_FLAG( sps3dExt->getIntraContourEnabledFlag( d ) ? 1 : 0 , "intra_contour_enabled_flag" ); 1007 WRITE_FLAG( sps3dExt->getIntraDcOnlyWedgeEnabledFlag( d ) ? 1 : 0 , "intra_dc_only_wedge_enabled_flag" ); 1008 WRITE_FLAG( sps3dExt->getCqtCuPartPredEnabledFlag( d ) ? 1 : 0 , "cqt_cu_part_pred_enabled_flag" ); 1009 WRITE_FLAG( sps3dExt->getInterDcOnlyEnabledFlag( d ) ? 1 : 0 , "inter_dc_only_enabled_flag" ); 1010 WRITE_FLAG( sps3dExt->getSkipIntraEnabledFlag( d ) ? 1 : 0 , "skip_intra_enabled_flag" ); 1011 1011 } 1012 1012 }
Note: See TracChangeset for help on using the changeset viewer.