Ignore:
Timestamp:
18 Feb 2015, 17:39:40 (10 years ago)
Author:
tech
Message:

Cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-13.0-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1124 r1131  
    721721}
    722722
    723 #if HHI_TOOL_PARAMETERS_I2_J0107
    724723Void TDecCavlc::parseSPS(TComSPS* pcSPS)
    725 #else
    726 #if H_3D
    727 Void TDecCavlc::parseSPS(TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    728 #else
    729 Void TDecCavlc::parseSPS(TComSPS* pcSPS)
    730 #endif
    731 #endif
    732724{
    733725#if ENC_DEC_TRACE 
     
    997989  if ( pcSPS->getSps3dExtensionFlag() )
    998990  {
    999 #if HHI_TOOL_PARAMETERS_I2_J0107
    1000991    parseSPS3dExtension( pcSPS );
    1001 #else
    1002     parseSPSExtension2( pcSPS, viewIndex, depthFlag  );
    1003 #endif
    1004992  }
    1005993
     
    10281016
    10291017#if H_3D
    1030 #if HHI_TOOL_PARAMETERS_I2_J0107
    10311018Void TDecCavlc::parseSPS3dExtension( TComSPS* pcSPS )
    10321019{
     
    10571044  }
    10581045}
    1059 #else
    1060 Void TDecCavlc::parseSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )
    1061 {
    1062 
    1063 }
    1064 #endif
    10651046#endif
    10661047
     
    10711052  READ_FLAG( uiCode, "pps_infer_scaling_list_flag" ); pcPPS->setPpsInferScalingListFlag( uiCode == 1 );
    10721053  READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" ); pcPPS->setPpsScalingListRefLayerId( uiCode );
    1073 #if H_MV_HLS_FIX
    10741054
    10751055  UInt numRefLocOffsets;;
     
    11121092  // This is required to equal to 0 for Multiview Main profile.
    11131093  assert( uiCode == 0 );
    1114 #else
    1115   READ_UVLC( uiCode, "num_ref_loc_offsets" ); assert( uiCode == 0 );
    1116 #endif
    11171094}
    11181095
     
    12371214    {
    12381215#if H_3D
    1239 #if HHI_VPS_3D_EXTENSION_I3_J0107
    12401216      READ_FLAG( uiCode,  "vps_3d_extension_flag" );
    12411217      if ( uiCode )
     
    12481224      if (uiCode)
    12491225      {     
    1250 #else
    1251       m_pcBitstream->readOutTrailingBits();
    1252       pcVPS->createCamPars(pcVPS->getNumViews());
    1253       parseVPSExtension2( pcVPS );   
    1254       READ_FLAG( uiCode,  "vps_extension3_flag" );
    1255       if (uiCode)
    1256       {     
    1257 #endif
    12581226#endif
    12591227#endif 
     
    13301298  }
    13311299
    1332 #if H_MV_FIX_NUM_VIEWS
    13331300  pcVPS->initNumViews();
    1334 #endif
    13351301
    13361302  READ_CODE( 4, uiCode, "view_id_len" ); pcVPS->setViewIdLen( uiCode );
     
    14411407  for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ )
    14421408  {
    1443 #if H_MV_HLS_FIX
    14441409    if( pcVPS->getNumLayerSets() > 2 && i >= pcVPS->getNumLayerSets( ) )   
    1445 #else
    1446     if( i >= pcVPS->getNumLayerSets( ) )   
    1447 #endif
    14481410    {       
    14491411      READ_CODE( pcVPS->getLayerSetIdxForOlsMinus1Len( i ), uiCode, "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode );
     
    15171479  READ_FLAG( uiCode, "max_one_active_ref_layer_flag" ); pcVPS->setMaxOneActiveRefLayerFlag ( uiCode == 1 );
    15181480
    1519 #if H_MV_HLS7_GEN || H_MV_HLS_FIX
    15201481  READ_FLAG( uiCode, "vps_poc_lsb_aligned_flag" ); pcVPS->setVpsPocLsbAlignedFlag( uiCode == 1 );
    1521 #endif
    15221482  for( Int i = 1; i  <=  pcVPS->getMaxLayersMinus1(); i++ )
    15231483  {
     
    15671527    parseVPSVUI( pcVPS );
    15681528  }     
    1569 #if H_MV_HLS_FIX
    15701529  else
    1571 #endif
    15721530  {
    15731531    TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( );
     
    19451903
    19461904#if H_3D
    1947 #if HHI_VPS_3D_EXTENSION_I3_J0107
    19481905Void TDecCavlc::parseVPS3dExtension( TComVPS* pcVPS )
    1949 #else
    1950 Void TDecCavlc::parseVPSExtension2( TComVPS* pcVPS )
    1951 #endif
    19521906{
    19531907  UInt uiCode;
    19541908
    1955 #if !HHI_TOOL_PARAMETERS_I2_J0107
    1956   for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )
    1957   {
    1958 #if H_3D_ARP
    1959     pcVPS->setUseAdvRP  ( i, 0 );
    1960     pcVPS->setARPStepNum( i, 1 );
    1961 #endif 
    1962 #if H_3D_SPIVMP
    1963     pcVPS->setSubPULog2Size(i, 0);
    1964 #endif
    1965     {
    1966 #if H_3D_IV_MERGE
    1967       READ_FLAG( uiCode, "iv_mv_pred_flag[i]");          pcVPS->setIvMvPredFlag         ( i, uiCode == 1 ? true : false );
    1968       READ_FLAG( uiCode, "iv_mv_scaling_flag[i]");       pcVPS->setIvMvScalingFlag         ( i, uiCode == 1 ? true : false );
    1969 #endif
    1970       if( !( pcVPS->getDepthId( i ) == 1 ) )
    1971       {
    1972 #if H_3D_IV_MERGE
    1973         if( !pcVPS->getNumDirectRefLayers(i) )
    1974         {
    1975           assert( !uiCode );         
    1976         }
    1977 #if H_3D_SPIVMP
    1978         READ_UVLC (uiCode, "log2_sub_PU_size_minus3[i]");     pcVPS->setSubPULog2Size(i, uiCode+3);
    1979 #endif
    1980 #endif
    1981 #if H_3D_ARP
    1982         READ_FLAG( uiCode, "iv_res_pred_flag[i]"  );       pcVPS->setUseAdvRP  ( i, uiCode ); pcVPS->setARPStepNum( i, uiCode ? H_3D_ARP_WFNR : 1 );
    1983         if( !pcVPS->getNumDirectRefLayers(i) )
    1984         {
    1985           assert( !uiCode );         
    1986         }
    1987 #endif
    1988 #if H_3D_NBDV_REF
    1989         READ_FLAG( uiCode, "depth_refinement_flag[i]");    pcVPS->setDepthRefinementFlag  ( i, uiCode == 1 ? true : false );
    1990 #endif
    1991 #if H_3D_VSP
    1992         READ_FLAG( uiCode, "view_synthesis_pred_flag[i]"); pcVPS->setViewSynthesisPredFlag( i, uiCode == 1 ? true : false );
    1993         if( !pcVPS->getNumDirectRefLayers(i) )
    1994         {
    1995           assert( !uiCode );         
    1996         }
    1997 #endif
    1998 #if H_3D_DBBP
    1999           READ_FLAG( uiCode, "use_dbbp_flag[i]" ); pcVPS->setUseDBBP( i, uiCode == 1 ? true : false );
    2000 #endif
    2001       }
    2002       else
    2003       {
    2004 #if H_3D_IV_MERGE
    2005         READ_FLAG( uiCode, "mpi_flag[i]" );             pcVPS->setMPIFlag( i, uiCode == 1 ? true : false );
    2006         READ_UVLC (uiCode, "log2_mpi_sub_PU_size_minus3[i]");     pcVPS->setSubPUMPILog2Size(i, uiCode+3);
    2007 #endif
    2008         READ_FLAG( uiCode, "vps_depth_modes_flag[i]" );             pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false );
    2009 #if H_3D
    2010         READ_FLAG( uiCode, "ivp_flag[i]" );                   pcVPS->setIVPFlag( i, uiCode == 1 ? true : false );
    2011 #endif
    2012 #if H_3D_QTLPC
    2013         READ_FLAG( uiCode, "lim_qt_pred_flag[i]");                  pcVPS->setLimQtPredFlag     ( i, uiCode == 1 ? true : false );
    2014 #endif
    2015 #if H_3D_INTER_SDC
    2016             READ_FLAG( uiCode, "depth_inter_SDC_flag" );              pcVPS->setInterSDCFlag( i, uiCode ? true : false );
    2017 #endif
    2018 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2019         READ_FLAG( uiCode, "single_depth_mode_flag[i]"); pcVPS->setSingleDepthModeFlag( i, uiCode == 1 ? true : false );       
    2020 #endif
    2021       }
    2022     }
    2023   }
    2024 #endif
    20251909
    20261910  UInt uiCamParPrecision = 0;
     
    21312015#endif
    21322016  rpcSlice->setSPS(sps);
    2133 #if HHI_TOOL_PARAMETERS_I2_J0107
    21342017#if H_3D
    21352018  rpcSlice->init3dToolParameters();
    2136 #endif
    21372019#endif
    21382020  rpcSlice->setPPS(pps);
     
    22072089    rpcSlice->checkCrossLayerBlaFlag( );
    22082090
    2209 #if !H_MV_HLS7_GEN && !H_MV_HLS_FIX
    2210     if ( rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > esb )
    2211     {
    2212       esb++;
    2213       READ_FLAG( uiCode, "poc_reset_flag" ); rpcSlice->setPocResetFlag( uiCode == 1 );
    2214     }
    2215 #endif
    22162091
    22172092    for (; esb < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); esb++)   
     
    24922367    Bool interLayerPredLayerIdcPresentFlag = false;
    24932368    Int layerId       = rpcSlice->getLayerId();
    2494 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    24952369#if H_3D
    24962370    if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 )
     
    24982372    if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    24992373#endif
    2500 #else
    2501     if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
    2502 #endif
    25032374    {   
    25042375      READ_FLAG( uiCode, "inter_layer_pred_enabled_flag" ); rpcSlice->setInterLayerPredEnabledFlag( uiCode == 1 );
    2505 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    25062376#if H_3D
    25072377      if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 )
     
    25092379      if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    25102380#endif
    2511 #else
    2512       if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
    2513 #endif
    25142381      {           
    25152382        if( !vps->getMaxOneActiveRefLayerFlag()) 
     
    25172384          READ_CODE( rpcSlice->getNumInterLayerRefPicsMinus1Len( ), uiCode, "num_inter_layer_ref_pics_minus1" ); rpcSlice->setNumInterLayerRefPicsMinus1( uiCode );
    25182385        }
    2519 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    25202386#if H_3D
    25212387        if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) )
    2522 #else
    2523         if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
    2524 #endif
    25252388#else
    25262389        if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
     
    27112574    }
    27122575#if H_3D_IC
    2713 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107
    27142576    else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )
    2715 #else
    2716     else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )
    2717 #endif
    27182577    {
    27192578      UInt uiCodeTmp = 0;
     
    27292588    }
    27302589#endif
    2731 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    2732 #if H_3D_SINGLE_DEPTH
    2733     if(rpcSlice->getIsDepth())
    2734     {
    2735       UInt uiCodeTmp = 0;
    2736       READ_FLAG( uiCodeTmp, "slice_enable_single_depth_mode" );
    2737       rpcSlice->setApplySingleDepthMode(uiCodeTmp);
    2738     }
    2739 #endif
    2740 #endif
    27412590    if (!rpcSlice->isIntra())
    27422591    {
    27432592      READ_UVLC( uiCode, "five_minus_max_num_merge_cand");
    27442593#if H_3D_IV_MERGE
    2745 #if HHI_TOOL_PARAMETERS_I2_J0107
    2746 #if ALGIN_J0107_J0059
    27472594      rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() || rpcSlice->getViewSynthesisPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2748 #else
    2749       rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2750 #endif
    2751 #else
    2752       if(rpcSlice->getIsDepth())
    2753       {
    2754         Bool bMPIFlag = rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) ;
    2755         Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2756         rpcSlice->setMaxNumMergeCand(( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2757       }
    2758       else
    2759       {
    2760         Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2761 #if MTK_MRG_LIST_SIZE_CLEANUP_J0059
    2762         Bool vspFlag = rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ;
    2763         rpcSlice->setMaxNumMergeCand(( ivMvPredFlag || vspFlag? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2764 #else
    2765         rpcSlice->setMaxNumMergeCand(( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
    2766 #endif
    2767       }
    2768 #endif
    27692595#else
    27702596      rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode);
     
    29262752
    29272753    // Derive the value of PocMs8bValRequiredFlag
    2928 #if !H_MV_HLS_FIX
    2929     rpcSlice->setPocMsbValRequiredFlag( rpcSlice->getCraPicFlag() || rpcSlice->getBlaPicFlag()
    2930                                           /* || TODO related to vps_poc_lsb_aligned_flag */
    2931                                           );
    2932 #endif
    2933 
    2934 #if H_MV_HLS_FIX
     2754
    29352755    if( !rpcSlice->getPocMsbValRequiredFlag() && rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() )
    2936 #else
    2937     if( !rpcSlice->getPocMsbValRequiredFlag() /* TODO &&  rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )
    2938 #endif
    29392756    {
    29402757      READ_FLAG( uiCode, "poc_msb_val_present_flag" ); rpcSlice->setPocMsbValPresentFlag( uiCode == 1 );
Note: See TracChangeset for help on using the changeset viewer.