Ignore:
Timestamp:
11 Jun 2013, 20:35:00 (11 years ago)
Author:
zhang
Message:

Implementation of ARP from QC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2a/source/Lib/TLibCommon/TComDataCU.h

    r455 r464  
    4949#include "TComPattern.h"
    5050
     51#if H_3D_ARP
     52#include "TComYuv.h"
     53#endif
     54
    5155#include <algorithm>
    5256#include <vector>
     
    190194  DisInfo*      m_pDvInfo;
    191195#endif
     196#if H_3D_ARP
     197  UChar*        m_puhARPW;
     198#endif
    192199  // -------------------------------------------------------------------------------------------------------------------
    193200  // misc. variables
     
    220227 
    221228  /// compute scaling factor from POC difference
     229#if !H_3D_ARP
    222230  Int           xGetDistScaleFactor   ( Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC );
    223  
     231#endif
     232
    224233  Void xDeriveCenterIdx( UInt uiPartIdx, UInt& ruiPartIdxCenter );
    225234
     
    231240  // create / destroy / initialize / copy
    232241  // -------------------------------------------------------------------------------------------------------------------
    233  
     242#if H_3D_ARP
     243  Int           xGetDistScaleFactor   ( Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC );
     244#endif
    234245  Void          create                ( UInt uiNumPartition, UInt uiWidth, UInt uiHeight, Bool bDecSubCu, Int unitSize
    235246#if ADAPTIVE_QP_SELECTION
     
    434445   
    435446#endif
     447
     448#if H_3D_ARP
     449  UChar*        getARPW            ()                        { return m_puhARPW;               }
     450  UChar         getARPW            ( UInt uiIdx )            { return m_puhARPW[uiIdx];        }
     451  Void          setARPW            ( UInt uiIdx, UChar w )   { m_puhARPW[uiIdx] = w;           }
     452  Void          setARPWSubParts    ( UChar w, UInt uiAbsPartIdx, UInt uiDepth );
     453  Double        getARPWFactor      ( UInt uiIdx );
     454#endif
    436455  // -------------------------------------------------------------------------------------------------------------------
    437456  // member functions for accessing partition information
     
    539558  UInt          getCtxInterDir                  ( UInt   uiAbsPartIdx                                 );
    540559 
     560#if H_3D_ARP
     561  UInt          getCTXARPWFlag                  ( UInt   uiAbsPartIdx                                 );
     562#endif 
     563
    541564  UInt          getSliceStartCU         ( UInt pos )                  { return m_sliceStartCU[pos-m_uiAbsIdxInLCU];                                                                                          }
    542565  UInt          getSliceSegmentStartCU  ( UInt pos )                  { return m_sliceSegmentStartCU[pos-m_uiAbsIdxInLCU];                                                                                   }
Note: See TracChangeset for help on using the changeset viewer.