Changeset 1196 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncCavlc.cpp


Ignore:
Timestamp:
4 May 2015, 17:47:40 (9 years ago)
Author:
tech
Message:

Merged 14.0-dev0@1187.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1179 r1196  
    4040#include "SEIwrite.h"
    4141#include "../TLibCommon/TypeDef.h"
    42 #if H_3D_ANNEX_SELECTION_FIX
     42#if H_3D
    4343#include "TEncTop.h"
    4444#endif
     
    862862  WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag( ) ? 1 : 0 , "poc_reset_info_present_flag" );
    863863  WRITE_FLAG( pcPPS->getPpsInferScalingListFlag( ) ? 1 : 0 , "pps_infer_scaling_list_flag" );
    864 #if FIX_TICKET_95
    865864  if (pcPPS->getPpsInferScalingListFlag())
    866865  {
    867866    WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" );
    868867  }
    869 #else   
    870   WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" );
    871 #endif
    872868  WRITE_UVLC( 0, "num_ref_loc_offsets" );
    873869  WRITE_FLAG( 0 , "colour_mapping_enabled_flag" );
     
    901897      WRITE_FLAG( sps3dExt->getQtPredFlag( d ) ? 1 : 0 , "qt_pred_flag" );
    902898      WRITE_FLAG( sps3dExt->getInterSdcFlag( d ) ? 1 : 0 , "inter_sdc_flag" );
    903 #if SEC_DEPTH_INTRA_SKIP_MODE_K0033
    904899      WRITE_FLAG( sps3dExt->getDepthIntraSkipFlag( d ) ? 1 : 0 , "intra_skip_flag" );
    905 #else
    906       WRITE_FLAG( sps3dExt->getIntraSingleFlag( d ) ? 1 : 0 , "intra_single_flag" );
    907 #endif
    908900    }
    909901  }
     
    16141606Void TEncCavlc::codeVPS3dExtension( TComVPS* pcVPS )
    16151607{
    1616 #if HHI_CAM_PARA_K0052
    16171608  WRITE_UVLC( pcVPS->getCpPrecision( ), "cp_precision" );
    16181609  for (Int n = 1; n < pcVPS->getNumViews(); n++)
     
    16401631    }
    16411632  } 
    1642 #else
    1643   WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" );
    1644   for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++)
    1645   {
    1646     WRITE_FLAG( pcVPS->getCamParPresent(viewIndex) ? 1 : 0, "cp_present_flag[i]" );
    1647     if ( pcVPS->getCamParPresent(viewIndex) )
    1648     {
    1649       WRITE_FLAG( pcVPS->hasCamParInSliceHeader(viewIndex) ? 1 : 0, "cp_in_slice_segment_header_flag[i]" );
    1650       if ( !pcVPS->hasCamParInSliceHeader(viewIndex) )
    1651       {
    1652         for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ )
    1653         {
    1654           WRITE_SVLC( pcVPS->getCodedScale    (viewIndex)[ uiIndex ],                                               "vps_cp_scale" );
    1655           WRITE_SVLC( pcVPS->getCodedOffset   (viewIndex)[ uiIndex ],                                               "vps_cp_off" );
    1656           WRITE_SVLC( pcVPS->getInvCodedScale (viewIndex)[ uiIndex ] + pcVPS->getCodedScale (viewIndex)[ uiIndex ], "vps_cp_inv_scale_plus_scale" );
    1657           WRITE_SVLC( pcVPS->getInvCodedOffset(viewIndex)[ uiIndex ] + pcVPS->getCodedOffset(viewIndex)[ uiIndex ], "vps_cp_inv_off_plus_off" );
    1658         }
    1659       }
    1660     }
    1661   }
    1662 #endif
    16631633}
    16641634#endif
     
    19451915#endif
    19461916
    1947 #if HHI_INTER_COMP_PRED_K0052
    19481917#if H_3D     
    19491918  if( getEncTop()->decProcAnnexI() )
     
    19541923      }
    19551924  }
    1956 #endif
    19571925#endif
    19581926    if(pcSlice->getSPS()->getUseSAO())
     
    20862054    }
    20872055#if H_3D_IC
    2088 #if H_3D_ANNEX_SELECTION_FIX
    20892056    else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE )
    20902057      && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0
    20912058      && getEncTop()->decProcAnnexI()       
    20922059      )
    2093 #else
    2094     else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )
    2095 #endif
    20962060    {
    20972061      WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" );
     
    21482112      WRITE_FLAG(pcSlice->getLFCrossSliceBoundaryFlag()?1:0, "slice_loop_filter_across_slices_enabled_flag");
    21492113    }
    2150 #if HHI_CAM_PARA_K0052
    21512114#if H_3D
    21522115    if (getEncTop()->decProcAnnexI() )
     
    21662129    }
    21672130#endif
    2168 #endif
    2169   }
    2170 
    2171 #if !HHI_CAM_PARA_K0052 
    2172 #if H_3D
    2173 #if H_3D_FCO
    2174   if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && pcSlice->getIsDepth() )
    2175 #else
    2176   if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() )
    2177 #endif
    2178   {
    2179     for( UInt uiId = 0; uiId < pcSlice->getViewIndex(); uiId++ )
    2180     {
    2181       WRITE_SVLC( pcSlice->getCodedScale    ()[ uiId ],                                     "cp_scale" );
    2182       WRITE_SVLC( pcSlice->getCodedOffset   ()[ uiId ],                                     "cp_off" );
    2183       WRITE_SVLC( pcSlice->getInvCodedScale ()[ uiId ] + pcSlice->getCodedScale ()[ uiId ], "cp_inv_scale_plus_scale" );
    2184       WRITE_SVLC( pcSlice->getInvCodedOffset()[ uiId ] + pcSlice->getCodedOffset()[ uiId ], "cp_inv_off_plus_off" );
    2185     }
    2186   }
    2187 #endif
    2188 #endif
     2131  }
     2132
    21892133
    21902134
     
    25322476  assert(0);
    25332477}
    2534 
    2535 #if SEC_DEPTH_INTRA_SKIP_MODE_K0033
     2478#if H_3D
    25362479Void TEncCavlc::codeDIS( TComDataCU* pcCU, UInt uiAbsPartIdx )
    25372480{
    25382481  assert(0);
    25392482}
    2540 #else
    2541 #if H_3D_SINGLE_DEPTH
    2542 Void TEncCavlc::codeSingleDepthMode( TComDataCU* pcCU, UInt uiAbsPartIdx )
    2543 {
    2544   assert(0);
    2545 }
    2546 #endif
    25472483#endif
    25482484
Note: See TracChangeset for help on using the changeset viewer.