Ignore:
Timestamp:
15 Jul 2015, 14:57:32 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev2@1277.

Location:
branches/HTM-14.1-update-dev1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev1

  • branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncSbac.cpp

    r1258 r1279  
    6868, m_cCUMergeFlagExtSCModel             ( 1,             1,                      NUM_MERGE_FLAG_EXT_CTX               , m_contextModels + m_numContextModels, m_numContextModels)
    6969, m_cCUMergeIdxExtSCModel              ( 1,             1,                      NUM_MERGE_IDX_EXT_CTX                , m_contextModels + m_numContextModels, m_numContextModels)
    70 #if H_3D_ARP
     70#if NH_3D_ARP
    7171, m_cCUPUARPWSCModel                   ( 1,             1,                      NUM_ARPW_CTX                         , m_contextModels + m_numContextModels, m_numContextModels)
    7272#endif                                                                                                               
    73 #if H_3D_IC                                                                                                         
     73#if NH_3D_IC                                                                                                         
    7474, m_cCUICFlagSCModel                   ( 1,             1,                      NUM_IC_FLAG_CTX                      , m_contextModels + m_numContextModels, m_numContextModels)
    7575#endif
     
    115115, m_cDdcFlagSCModel                    ( 1,             1,                      NUM_DDC_FLAG_CTX                     , m_contextModels + m_numContextModels, m_numContextModels)
    116116#endif                                                                                                         
    117 #if H_3D_DBBP                                                                                                 
     117#if NH_3D_DBBP
    118118, m_cDBBPFlagSCModel                   ( 1,             1,                       DBBP_NUM_FLAG_CTX                   , m_contextModels + m_numContextModels, m_numContextModels)
    119119#endif
     
    149149  m_cCUMergeFlagExtSCModel.initBuffer             ( eSliceType, iQp, (UChar*)INIT_MERGE_FLAG_EXT);
    150150  m_cCUMergeIdxExtSCModel.initBuffer              ( eSliceType, iQp, (UChar*)INIT_MERGE_IDX_EXT);
    151 #if H_3D_ARP
     151#if NH_3D_ARP
    152152  m_cCUPUARPWSCModel.initBuffer                   ( eSliceType, iQp, (UChar*)INIT_ARPW );
    153153#endif
    154 #if H_3D_IC
     154#if NH_3D_IC
    155155  m_cCUICFlagSCModel.initBuffer                   ( eSliceType, iQp, (UChar*)INIT_IC_FLAG );
    156156#endif
     
    196196  m_cDdcFlagSCModel.initBuffer                    ( eSliceType, iQp, (UChar*)INIT_DDC_FLAG );
    197197#endif                                           
    198 #if H_3D_DBBP                                   
     198#if NH_3D_DBBP
    199199  m_cDBBPFlagSCModel.initBuffer                   ( eSliceType, iQp, (UChar*)INIT_DBBP_FLAG );
    200200#endif
     
    237237      curCost += m_cCUMergeFlagExtSCModel.calcCost             ( curSliceType, qp, (UChar*)INIT_MERGE_FLAG_EXT);
    238238      curCost += m_cCUMergeIdxExtSCModel.calcCost              ( curSliceType, qp, (UChar*)INIT_MERGE_IDX_EXT);
    239 #if H_3D_ARP
     239#if NH_3D_ARP
    240240      curCost += m_cCUPUARPWSCModel.calcCost                   ( curSliceType, qp, (UChar*)INIT_ARPW );
    241241#endif                                                     
    242 #if H_3D_IC                                               
     242#if NH_3D_IC                                               
    243243      curCost += m_cCUICFlagSCModel.calcCost                   ( curSliceType, qp, (UChar*)INIT_IC_FLAG );
    244244#endif                                                     
     
    246246      curCost += m_cSDCFlagSCModel.calcCost                    ( curSliceType, qp, (UChar*)INIT_SDC_FLAG );
    247247#endif                                                     
    248 #if H_3D_DBBP                                             
     248#if NH_3D_DBBP
    249249      curCost += m_cDBBPFlagSCModel.calcCost                   ( curSliceType, qp, (UChar*)INIT_DBBP_FLAG );
    250250#endif
     
    297297  }
    298298}
    299 #if H_3D_ARP
    300   m_cCUPUARPWSCModel.initBuffer          ( eSliceType, iQp, (UChar*)INIT_ARPW );
    301 #endif
    302 #if H_3D_IC
    303   m_cCUICFlagSCModel.initBuffer          ( eSliceType, iQp, (UChar*)INIT_IC_FLAG );
    304 #endif
    305 #if H_3D_DBBP
    306   m_cDBBPFlagSCModel.initBuffer              ( eSliceType, iQp, (UChar*)INIT_DBBP_FLAG );
    307 #endif
    308299
    309300
     
    576567{
    577568  PartSize eSize         = pcCU->getPartitionSize( uiAbsPartIdx );
    578 #if H_3D_QTLPC
     569#if NH_3D_QTLPC
    579570  Bool    bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag();
    580571  TComPic *pcTexture     = pcCU->getSlice()->getTexturePic();
     
    593584#endif
    594585  {
    595     TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr());
    596     UInt uiCUIdx            = (pcCU->getZorderIdxInCU() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();
     586    TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr());
     587    UInt uiCUIdx            = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu();
    597588    assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth);
    598589    if(pcTextureCU->getDepth(uiCUIdx) == uiDepth )
     
    625616  DTRACE_CU("part_mode", eSize )
    626617#endif       
    627 #if H_3D_QTLPC
     618#if NH_3D_QTLPC
    628619    if (depthDependent==false || uiTexturePart == SIZE_NxN|| uiTexturePart == SIZE_2Nx2N)
    629620    {
     
    699690    }
    700691  }
    701 #if H_3D_QTLPC
     692#if NH_3D_QTLPC
    702693    }
    703694    else if(uiTexturePart == SIZE_2NxN || uiTexturePart == SIZE_2NxnU || uiTexturePart == SIZE_2NxnD)
     
    716707        {
    717708          m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) );
    718           if ( pcCU->getSlice()->getSPS()->getAMPAcc( uiDepth ) )
     709          if (  pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize )
    719710          {     
    720711            m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) );
     
    751742        {
    752743          m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) );
    753           if ( pcCU->getSlice()->getSPS()->getAMPAcc( uiDepth ) )
     744          if ( pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize )
    754745          {     
    755746            m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) );
     
    894885}
    895886
    896 #if H_3D_ARP
     887#if NH_3D_ARP
    897888Void TEncSbac::codeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx )
    898889{
     
    914905#endif
    915906
    916 #if H_3D_IC
     907#if NH_3D_IC
    917908/** code Illumination Compensation flag
    918909 * \param pcCU
     
    949940
    950941  assert( uiCtx < 3 );
    951 #if H_3D_QTLPC
     942#if NH_3D_QTLPC
    952943  Bool bCodeSplitFlag    = true;
    953944
     
    966957#endif
    967958  {
    968     TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr());
    969     UInt uiCUIdx            = (pcCU->getZorderIdxInCU() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();
     959    TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr());
     960    UInt uiCUIdx            = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu();
    970961    assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth);
    971962    bCodeSplitFlag          = (pcTextureCU->getDepth(uiCUIdx) > uiDepth);
     
    26352626#endif
    26362627
    2637 #if H_3D_DBBP
     2628#if NH_3D_DBBP
    26382629Void TEncSbac::codeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx )
    26392630{
Note: See TracChangeset for help on using the changeset viewer.