Ignore:
Timestamp:
22 May 2015, 05:38:04 (10 years ago)
Author:
sharpjp-htm
Message:

Migration of illumination compensation(NH_3D_IC) and small fix(H_MV_ENC_DEC_TRAC_FIX)

Location:
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1200 r1225  
    27832783    }
    27842784
    2785 #if H_3D_IC
     2785#if NH_3D_IC
    27862786    else if(    pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE )
    27872787             && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0
     
    27962796      if ( uiCodeTmp )
    27972797      {
    2798         READ_FLAG ( uiCodeTmp, "ic_skip_mergeidx0" );
     2798        READ_FLAG ( uiCodeTmp, "slice_ic_disabled_merge_zero_idx_flag" );
    27992799        pcSlice->setIcSkipParseFlag( uiCodeTmp );
    28002800      }
     
    33823382}
    33833383#endif
    3384 #if H_3D_IC
     3384#if NH_3D_IC
    33853385Void TDecCavlc::parseICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
    33863386{
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecCAVLC.h

    r1200 r1225  
    120120  Void parseARPW            ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    121121#endif
    122 #if H_3D_IC
     122#if NH_3D_IC
    123123  Void  parseICFlag         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    124124#endif
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecCu.cpp

    r1200 r1225  
    399399    m_pcEntropyDecoder->decodeARPW( pcCU , uiAbsPartIdx , uiDepth );
    400400#endif
    401 #if H_3D_IC
     401#if NH_3D_IC
    402402    m_pcEntropyDecoder->decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
    403403#endif
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecEntropy.cpp

    r1200 r1225  
    124124#endif
    125125
    126 #if H_3D_IC
     126#if NH_3D_IC
    127127Void TDecEntropy::decodeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
    128128{
    129129  pcCU->setICFlagSubParts( false , uiAbsPartIdx, 0, uiDepth );
    130130
     131#if H_3D_ARP
    131132  if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() || pcCU->getARPW( uiAbsPartIdx ) > 0 )
     133#else
     134  if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() )
     135#endif
    132136  {
    133137    return;
     
    475479        std::cout << " merge index: " << (UInt)pcCU->getMergeIndex(uiSubPartIdx) << std::endl;
    476480      }
     481#endif
     482#if NH_3D_IC
     483      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
    477484#endif
    478485
     
    531538        }
    532539      }
     540#if NH_3D_IC
     541      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
     542#endif
    533543    }
    534544
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecEntropy.h

    r1200 r1225  
    8888  virtual Void parseARPW          ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
    8989#endif
    90 #if H_3D_IC
     90#if NH_3D_IC
    9191  virtual Void parseICFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
    9292#endif
     
    177177  Void decodeARPW              ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    178178#endif
    179 #if H_3D_IC
     179#if NH_3D_IC
    180180  Void decodeICFlag            ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    181181#endif
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecSbac.cpp

    r1200 r1225  
    7676, m_cCUPUARPWSCModel          ( 1,             1,               NUM_ARPW_CTX                  , m_contextModels + m_numContextModels, m_numContextModels)
    7777#endif
    78 #if H_3D_IC
     78#if NH_3D_IC
    7979, m_cCUICFlagSCModel          ( 1,             1,               NUM_IC_FLAG_CTX               , m_contextModels + m_numContextModels, m_numContextModels)
    8080#endif
     
    167167  m_cCUPUARPWSCModel.initBuffer          ( sliceType, qp, (UChar*)INIT_ARPW );
    168168#endif
    169 #if H_3D_IC
     169#if NH_3D_IC
    170170  m_cCUICFlagSCModel.initBuffer          ( sliceType, qp, (UChar*)INIT_IC_FLAG );
    171171#endif
     
    243243#if H_3D_ARP
    244244  m_cCUPUARPWSCModel.initBuffer          ( eSliceType, iQp, (UChar*)INIT_ARPW );
    245 #endif
    246 #if H_3D_IC
    247   m_cCUICFlagSCModel.initBuffer          ( eSliceType, iQp, (UChar*)INIT_IC_FLAG );
    248245#endif
    249246#if H_3D_DIM
     
    24452442#endif
    24462443
    2447 #if H_3D_IC
     2444#if NH_3D_IC
    24482445/** parse illumination compensation flag
    24492446 * \param pcCU
     
    24552452{
    24562453  UInt uiSymbol = 0;
    2457   m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) );
     2454  m_pcTDecBinIf->decodeBin( uiSymbol, m_cCUICFlagSCModel.get( 0, 0, 0 ) RExt__DECODER_DEBUG_BIT_STATISTICS_PASS_OPT_ARG(STATS__CABAC_BITS__3D_IC) );
     2455
    24582456#if !H_MV_ENC_DEC_TRAC
    24592457  DTRACE_CABAC_VL( g_nSymbolCounter++ );
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecSbac.h

    r1200 r1225  
    142142  Void parseARPW          ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    143143#endif
    144 #if H_3D_IC
     144#if NH_3D_IC
    145145  Void parseICFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
    146146#endif
     
    193193  ContextModel3DBuffer m_cCUPUARPWSCModel;
    194194#endif
    195 #if H_3D_IC
     195#if NH_3D_IC
    196196  ContextModel3DBuffer m_cCUICFlagSCModel;
    197197#endif
  • branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecTop.cpp

    r1213 r1225  
    423423{
    424424#if ENC_DEC_TRACE
     425#if H_MV_ENC_DEC_TRAC_FIX
     426  if (g_hTrace != stdout && g_hTrace != NULL)
     427#else
    425428  if (g_hTrace != stdout)
     429#endif
    426430  {
    427431    fclose( g_hTrace );
     432#if H_MV_ENC_DEC_TRAC_FIX
     433    g_hTrace = NULL;
     434#endif
    428435  }
    429436#endif
Note: See TracChangeset for help on using the changeset viewer.