Changeset 296 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComSlice.h


Ignore:
Timestamp:
20 Feb 2013, 22:07:43 (12 years ago)
Author:
tech
Message:

Reintegrated branch 5.1-dev0 rev. 295.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComSlice.h

    r210 r296  
    5454class TComDepthMapGenerator;
    5555#endif
    56 #if HHI_INTER_VIEW_RESIDUAL_PRED
     56#if H3D_IVRP
    5757class TComResidualGenerator;
    5858#endif
     
    6868// ====================================================================================================================
    6969
    70 #if RPS_IN_SPS
    7170/// Reference Picture Set class
    7271class TComReferencePictureSet
     
    142141  Void setNumberOfReferencePictureSets(Int numberOfReferencePictureSets);
    143142};
    144 #endif
    145143
    146144#if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046
     
    179177  UInt        m_uiMaxDecPicBuffering[MAX_TLAYER];
    180178  UInt        m_uiMaxLatencyIncrease[MAX_TLAYER];
    181  
     179#if INTER_VIEW_VECTOR_SCALING_C0115
     180  Bool          m_bIVScalingFlag;
     181#endif
    182182public:
    183183  TComVPS();
     
    213213  Void    setDependentLayer(UInt v, UInt layer)                     { m_uiDependentLayer[layer] = v;    }
    214214  UInt    getDependentLayer(UInt layer)                             { return m_uiDependentLayer[layer]; }
     215#endif
     216#if INTER_VIEW_VECTOR_SCALING_C0115
     217  Bool getIVScalingFlag( )                                   { return m_bIVScalingFlag; }
     218  Void setIVScalingFlag(Bool b)                              { m_bIVScalingFlag = b;    }
    215219#endif
    216220  Void    setNumReorderPics(UInt v, UInt tLayer)                { m_numReorderPics[tLayer] = v;    }
     
    270274  UInt        m_picWidthInLumaSamples;
    271275  UInt        m_picHeightInLumaSamples;
    272 #if PIC_CROPPING
    273276  Bool        m_picCroppingFlag;
    274277  Int         m_picCropLeftOffset;
     
    276279  Int         m_picCropTopOffset;
    277280  Int         m_picCropBottomOffset;
    278 #else
    279   Int         m_aiPad[2];
    280 #endif
    281281  UInt        m_uiMaxCUWidth;
    282282  UInt        m_uiMaxCUHeight;
     
    284284  UInt        m_uiMinTrDepth;
    285285  UInt        m_uiMaxTrDepth;
    286 #if RPS_IN_SPS
    287286  TComRPSList* m_RPSList;
    288287  Bool        m_bLongTermRefsPresent;
    289 #endif
    290 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    291288  Int         m_numReorderPics[MAX_TLAYER];
    292 #else
    293   Int         m_maxNumberOfReferencePictures;
    294   Int         m_numReorderFrames;
    295 #endif
    296289 
    297290  Int         m_iNumberOfUsableInterViewRefs;
     
    309302  Bool        m_useAMP;
    310303  Bool        m_bUseALF;
    311 #if LCU_SYNTAX_ALF
    312304  Bool        m_bALFCoefInSlice;
    313 #endif
    314 #if !PIC_CROPPING
    315   Bool        m_bUsePAD;
    316 #endif
    317305  Bool        m_bUseLMChroma; // JL:
    318306
     
    321309  Bool        m_useNSQT;
    322310 
    323 #if H0412_REF_PIC_LIST_RESTRICTION
    324311  Bool        m_restrictedRefPicListsFlag;
    325312  Bool        m_listsModificationPresentFlag;
    326 #endif
    327313
    328314  // Parameter
     
    330316  UInt        m_uiBitDepth;
    331317  UInt        m_uiBitIncrement;
    332 #if H0736_AVC_STYLE_QP_RANGE
    333318  Int         m_qpBDOffsetY;
    334319  Int         m_qpBDOffsetC;
    335 #endif
    336320
    337321#if LOSSLESS_CODING
     
    375359
    376360  Bool        m_scalingListEnabledFlag;
    377 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    378361  UInt        m_uiMaxDecPicBuffering[MAX_TLAYER];
    379362  UInt        m_uiMaxLatencyIncrease[MAX_TLAYER];
    380 #else
    381   UInt        m_uiMaxDecFrameBuffering;
    382   UInt        m_uiMaxLatencyIncrease;
    383 #endif
    384363
    385364  Bool        m_useDF;
    386365
    387 #if TILES_WPP_ENTRY_POINT_SIGNALLING
    388366  UInt        m_tilesOrEntropyCodingSyncIdc;
    389367  Int         m_numSubstreams;
    390 #endif
    391368
    392369#if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX
     
    409386#endif
    410387
    411 #if HHI_INTER_VIEW_MOTION_PRED
     388#if H3D_IVMP
    412389  UInt  m_uiMultiviewMvPredMode;
    413390#endif
    414 #if HHI_INTER_VIEW_RESIDUAL_PRED
     391#if H3D_IVRP
    415392  UInt  m_uiMultiviewResPredMode;
    416393#endif
     
    419396  TComDepthMapGenerator* m_pcDepthMapGenerator;
    420397#endif
    421 #if HHI_INTER_VIEW_RESIDUAL_PRED
     398#if H3D_IVRP
    422399  TComResidualGenerator* m_pcResidualGenerator;
    423400#endif
     
    446423  UInt getPicHeightInLumaSamples      ()         { return  m_picHeightInLumaSamples;   }
    447424
    448 #if PIC_CROPPING
    449425  Bool getPicCroppingFlag() const          { return m_picCroppingFlag; }
    450426  Void setPicCroppingFlag(Bool val)        { m_picCroppingFlag = val; }
     
    457433  Int  getPicCropBottomOffset() const      { return m_picCropBottomOffset; }
    458434  Void setPicCropBottomOffset(Int val)     { m_picCropBottomOffset = val; }
    459 #endif
    460435
    461436  Void setMaxCUWidth  ( UInt u ) { m_uiMaxCUWidth = u;      }
     
    489464  UInt getQuadtreeTUMaxDepthInter()         { return m_uiQuadtreeTUMaxDepthInter; }
    490465  UInt getQuadtreeTUMaxDepthIntra()         { return m_uiQuadtreeTUMaxDepthIntra; }
    491 #if !PIC_CROPPING
    492   Void setPad         (Int iPad[2]) { m_aiPad[0] = iPad[0]; m_aiPad[1] = iPad[1]; }
    493 #endif
    494 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    495466  Void setNumReorderPics(Int i, UInt tlayer)              { m_numReorderPics[tlayer] = i;    }
    496467  Int  getNumReorderPics(UInt tlayer)                     { return m_numReorderPics[tlayer]; }
    497 #else
    498   Void setMaxNumberOfReferencePictures( Int u )  { m_maxNumberOfReferencePictures = u;    }
    499   Int  getMaxNumberOfReferencePictures()         { return m_maxNumberOfReferencePictures; }
    500   Void setNumReorderFrames( Int i )              { m_numReorderFrames = i;    }
    501   Int  getNumReorderFrames()                     { return m_numReorderFrames; }
    502 #endif
    503 #if RPS_IN_SPS
    504468  Void      setRPSList( TComRPSList* RPSList )   { m_RPSList = RPSList;       }
    505469  TComRPSList* getRPSList()                      { return m_RPSList;          }
    506470  Bool      getLongTermRefsPresent()         { return m_bLongTermRefsPresent; }
    507471  Void      setLongTermRefsPresent(Bool b)   { m_bLongTermRefsPresent=b;      }
    508 #endif
    509472
    510473  Void setNumberOfUsableInterViewRefs( Int number )      { m_iNumberOfUsableInterViewRefs = number;    }
     
    513476  Int  getUsableInterViewRef( Int pos )                  { return m_aiUsableInterViewRefs[pos];        }
    514477
    515 #if !PIC_CROPPING
    516   Void setPadX        ( Int  u ) { m_aiPad[0] = u; }
    517   Void setPadY        ( Int  u ) { m_aiPad[1] = u; }
    518   Int  getPad         ( Int  u ) { assert(u < 2); return m_aiPad[u];}
    519   Int* getPad         ( )        { return m_aiPad; }
    520 #endif
    521478 
    522479  // physical transform
     
    526483  // Tool list
    527484  Bool getUseALF      ()         { return m_bUseALF;        }
    528 #if LCU_SYNTAX_ALF
    529485  Void setUseALFCoefInSlice(Bool b) {m_bALFCoefInSlice = b;}
    530486  Bool getUseALFCoefInSlice()    {return m_bALFCoefInSlice;}
    531 #endif
    532 
    533 #if !PIC_CROPPING
    534   Bool getUsePAD      ()         { return m_bUsePAD;        }
    535   Void setUsePAD      ( Bool b ) { m_bUsePAD   = b;         }
    536 #endif
     487
    537488  Void setUseALF      ( Bool b ) { m_bUseALF  = b;          }
    538489  Void setUseLComb    (Bool b)   { m_bUseLComb = b;         }
     
    551502  Void setUseNSQT( Bool b ) { m_useNSQT = b; }
    552503 
    553 #if H0412_REF_PIC_LIST_RESTRICTION
    554504  Bool getRestrictedRefPicListsFlag    ()          { return m_restrictedRefPicListsFlag;   }
    555505  Void setRestrictedRefPicListsFlag    ( Bool b )  { m_restrictedRefPicListsFlag = b;      }
    556506  Bool getListsModificationPresentFlag ()          { return m_listsModificationPresentFlag; }
    557507  Void setListsModificationPresentFlag ( Bool b )  { m_listsModificationPresentFlag = b;    }
    558 #endif
    559508
    560509  // AMVP mode (for each depth)
     
    571520  UInt      getBitIncrement ()         { return m_uiBitIncrement; }
    572521  Void      setBitIncrement ( UInt u ) { m_uiBitIncrement = u;    }
    573 #if H0736_AVC_STYLE_QP_RANGE
    574522  Int       getQpBDOffsetY  ()             { return m_qpBDOffsetY;   }
    575523  Void      setQpBDOffsetY  ( Int value  ) { m_qpBDOffsetY = value;  }
    576524  Int       getQpBDOffsetC  ()             { return m_qpBDOffsetC;   }
    577525  Void      setQpBDOffsetC  ( Int value  ) { m_qpBDOffsetC = value;  }
    578 #endif
    579526
    580527  Void      setLFCrossSliceBoundaryFlag     ( Bool   bValue  )    { m_bLFCrossSliceBoundaryFlag = bValue; }
     
    619566  Void     setUniformSpacingIdr             ( Int i )           { m_iUniformSpacingIdr = i; }
    620567  Int      getUniformSpacingIdr             ()                  { return m_iUniformSpacingIdr; }
    621 #if !REMOVE_TILE_DEPENDENCE
    622   Void     setTileBoundaryIndependenceIdr   ( Int i )           { m_iTileBoundaryIndependenceIdr = i; }
    623   Int      getTileBoundaryIndependenceIdr   ()                  { return m_iTileBoundaryIndependenceIdr; }
    624 #endif
    625568  Void     setNumColumnsMinus1              ( Int i )           { m_iNumColumnsMinus1 = i; }
    626569  Int      getNumColumnsMinus1              ()                  { return m_iNumColumnsMinus1; }
     
    655598  Bool getScalingListFlag       ()         { return m_scalingListEnabledFlag;     }
    656599  Void setScalingListFlag       ( Bool b ) { m_scalingListEnabledFlag  = b;       }
    657 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    658600  UInt getMaxDecPicBuffering  (UInt tlayer)            { return m_uiMaxDecPicBuffering[tlayer]; }
    659601  Void setMaxDecPicBuffering  ( UInt ui, UInt tlayer ) { m_uiMaxDecPicBuffering[tlayer] = ui;   }
    660602  UInt getMaxLatencyIncrease  (UInt tlayer)            { return m_uiMaxLatencyIncrease[tlayer];   }
    661603  Void setMaxLatencyIncrease  ( UInt ui , UInt tlayer) { m_uiMaxLatencyIncrease[tlayer] = ui;      }
    662 #else
    663   UInt getMaxDecFrameBuffering  ()            { return m_uiMaxDecFrameBuffering; }
    664   Void setMaxDecFrameBuffering  ( UInt ui )   { m_uiMaxDecFrameBuffering = ui;   }
    665   UInt getMaxLatencyIncrease    ()            { return m_uiMaxLatencyIncrease;   }
    666   Void setMaxLatencyIncrease    ( UInt ui )   { m_uiMaxLatencyIncrease= ui;      }
    667 #endif
    668 #if TILES_WPP_ENTRY_POINT_SIGNALLING
    669604  UInt getTilesOrEntropyCodingSyncIdc ()                    { return m_tilesOrEntropyCodingSyncIdc;   }
    670605  Void setTilesOrEntropyCodingSyncIdc ( UInt val )          { m_tilesOrEntropyCodingSyncIdc = val;    }
    671606  Int  getNumSubstreams               ()                    { return m_numSubstreams;                 }
    672607  Void setNumSubstreams               ( Int numSubstreams ) { m_numSubstreams = numSubstreams;        }
    673 #endif
    674608
    675609#if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX
     
    705639  Void setPredDepthMapGeneration( UInt uiViewId, Bool bIsDepth, UInt uiPdmGenMode = 0, UInt uiPdmMvPredMode = 0, UInt uiPdmPrec = 0, Int** aaiPdmScaleNomDelta = 0, Int** aaiPdmOffset = 0 );
    706640#endif
    707 #if HHI_INTER_VIEW_RESIDUAL_PRED
     641#if H3D_IVRP
    708642  Void  setMultiviewResPredMode  ( UInt uiResPrdMode ) { m_uiMultiviewResPredMode = uiResPrdMode; }
    709643#endif
     
    716650#endif
    717651
    718 #if HHI_INTER_VIEW_MOTION_PRED
     652#if H3D_IVMP
    719653  UInt  getMultiviewMvPredMode   ()          { return m_uiMultiviewMvPredMode;    }
    720654#endif
    721 #if HHI_INTER_VIEW_RESIDUAL_PRED
     655#if H3D_IVRP
    722656  UInt  getMultiviewResPredMode  ()          { return m_uiMultiviewResPredMode;   }
    723657#endif
     
    727661  TComDepthMapGenerator*  getDepthMapGenerator()                                              { return m_pcDepthMapGenerator; }
    728662#endif
    729 #if HHI_INTER_VIEW_RESIDUAL_PRED
     663#if H3D_IVRP
    730664  Void                    setResidualGenerator( TComResidualGenerator* pcResidualGenerator )  { m_pcResidualGenerator = pcResidualGenerator; }
    731665  TComResidualGenerator*  getResidualGenerator()                                              { return m_pcResidualGenerator; }
     
    733667};
    734668
    735 #if !RPS_IN_SPS
    736 /// Reference Picture Set class
    737 class TComReferencePictureSet
    738 {
    739 private:
    740   Int m_numberOfPictures;
    741   Int m_numberOfNegativePictures;
    742   Int m_numberOfPositivePictures;
    743   Int m_numberOfLongtermPictures;
    744   Int  m_deltaPOC[MAX_NUM_REF_PICS];
    745   Int  m_POC[MAX_NUM_REF_PICS];
    746   Bool m_used[MAX_NUM_REF_PICS];
    747   Bool m_interRPSPrediction;
    748   Int  m_deltaRIdxMinus1;   
    749   Int  m_deltaRPS;
    750   Int  m_numRefIdc;
    751   Int  m_refIdc[MAX_NUM_REF_PICS+1];
    752 
    753 public:
    754   TComReferencePictureSet();
    755   virtual ~TComReferencePictureSet();
    756 
    757   Void setUsed(Int bufferNum, Bool used);
    758   Void setDeltaPOC(Int bufferNum, Int deltaPOC);
    759   Void setPOC(Int bufferNum, Int deltaPOC);
    760   Void setNumberOfPictures(Int numberOfPictures);
    761 
    762   Int  getUsed(Int bufferNum);
    763   Int  getDeltaPOC(Int bufferNum);
    764   Int  getPOC(Int bufferNum);
    765   Int  getNumberOfPictures();
    766 
    767   Void setNumberOfNegativePictures(Int number)  { m_numberOfNegativePictures = number; }
    768   Int  getNumberOfNegativePictures()            { return m_numberOfNegativePictures; }
    769   Void setNumberOfPositivePictures(Int number)  { m_numberOfPositivePictures = number; }
    770   Int  getNumberOfPositivePictures()            { return m_numberOfPositivePictures; }
    771   Void setNumberOfLongtermPictures(Int number)  { m_numberOfLongtermPictures = number; }
    772   Int  getNumberOfLongtermPictures()            { return m_numberOfLongtermPictures; }
    773 
    774   Void setInterRPSPrediction(Bool flag)         { m_interRPSPrediction = flag; }
    775   Bool getInterRPSPrediction()                  { return m_interRPSPrediction; }
    776   Void setDeltaRIdxMinus1(Int x)                { m_deltaRIdxMinus1 = x; }
    777   Int  getDeltaRIdxMinus1()                     { return m_deltaRIdxMinus1; }
    778   Void setDeltaRPS(Int x)                       { m_deltaRPS = x; }
    779   Int  getDeltaRPS()                            { return m_deltaRPS; }
    780   Void setNumRefIdc(Int x)                      { m_numRefIdc = x; }
    781   Int  getNumRefIdc()                           { return m_numRefIdc; }
    782 
    783   Void setRefIdc(Int bufferNum, Int refIdc);
    784   Int  getRefIdc(Int bufferNum);
    785 
    786   Void sortDeltaPOC();
    787   Void printDeltaPOC();
    788 };
    789 
    790 /// Reference Picture Set set class
    791 class TComRPSList
    792 {
    793 private:
    794   Int  m_numberOfReferencePictureSets;
    795   TComReferencePictureSet* m_referencePictureSets;
    796  
    797 public:
    798   TComRPSList();
    799   virtual ~TComRPSList();
    800  
    801   Void  create  (Int numberOfEntries);
    802   Void  destroy ();
    803 
    804 
    805   TComReferencePictureSet* getReferencePictureSet(Int referencePictureSetNum);
    806   Int getNumberOfReferencePictureSets();
    807   Void setNumberOfReferencePictureSets(Int numberOfReferencePictureSets);
    808 };
    809 #endif
    810669
    811670/// Reference Picture Lists class
     
    815674  UInt      m_bRefPicListModificationFlagL0; 
    816675  UInt      m_bRefPicListModificationFlagL1; 
    817 #if !H0137_0138_LIST_MODIFICATION
    818   UInt      m_uiNumberOfRefPicListModificationsL0;
    819   UInt      m_uiNumberOfRefPicListModificationsL1;
    820   UInt      m_ListIdcL0[32];
    821 #endif
    822676  UInt      m_RefPicSetIdxL0[32];
    823 #if !H0137_0138_LIST_MODIFICATION
    824   UInt      m_ListIdcL1[32];
    825 #endif
    826677  UInt      m_RefPicSetIdxL1[32];
    827678   
     
    837688  Bool       getRefPicListModificationFlagL1() { return m_bRefPicListModificationFlagL1; }
    838689  Void       setRefPicListModificationFlagL1(Bool flag) { m_bRefPicListModificationFlagL1 = flag; }
    839 #if !H0137_0138_LIST_MODIFICATION
    840   UInt       getNumberOfRefPicListModificationsL0() { return m_uiNumberOfRefPicListModificationsL0; }
    841   Void       setNumberOfRefPicListModificationsL0(UInt nr) { m_uiNumberOfRefPicListModificationsL0 = nr; }
    842   UInt       getNumberOfRefPicListModificationsL1() { return m_uiNumberOfRefPicListModificationsL1; }
    843   Void       setNumberOfRefPicListModificationsL1(UInt nr) { m_uiNumberOfRefPicListModificationsL1 = nr; }
    844   Void       setListIdcL0(UInt idx, UInt idc) { m_ListIdcL0[idx] = idc; }
    845   UInt       getListIdcL0(UInt idx) { return m_ListIdcL0[idx]; }
    846 #endif
    847690  Void       setRefPicSetIdxL0(UInt idx, UInt refPicSetIdx) { m_RefPicSetIdxL0[idx] = refPicSetIdx; }
    848691  UInt       getRefPicSetIdxL0(UInt idx) { return m_RefPicSetIdxL0[idx]; }
    849 #if !H0137_0138_LIST_MODIFICATION
    850   Void       setListIdcL1(UInt idx, UInt idc) { m_ListIdcL1[idx] = idc; }
    851   UInt       getListIdcL1(UInt idx) { return m_ListIdcL1[idx]; }
    852 #endif
    853692  Void       setRefPicSetIdxL1(UInt idx, UInt refPicSetIdx) { m_RefPicSetIdxL1[idx] = refPicSetIdx; }
    854693  UInt       getRefPicSetIdxL1(UInt idx) { return m_RefPicSetIdxL1[idx]; }
     
    867706  // access channel
    868707  TComSPS*    m_pcSPS;
    869 #if !RPS_IN_SPS
    870   TComRPSList* m_RPSList;
    871 #endif
    872708  UInt        m_uiMaxCuDQPDepth;
    873709  UInt        m_uiMinCuDQPSize;
     
    876712  Int        m_iChromaQpOffset2nd;
    877713
    878 #if !RPS_IN_SPS
    879   Bool        m_bLongTermRefsPresent;
    880 #endif
    881 
    882 #if !H0566_TLA
    883   UInt        m_uiNumTlayerSwitchingFlags;            // num_temporal_layer_switching_point_flags
    884   Bool        m_abTLayerSwitchingFlag[ MAX_TLAYER ];  // temporal_layer_switching_point_flag
    885 #endif
     714
    886715
    887716  Int         m_iSliceGranularity;
     
    890719  UInt        m_uiBiPredIdc;              // Use of Weighting Bi-Prediction (B_SLICE)
    891720
    892 #if H0388
    893721  Bool        m_OutputFlagPresentFlag;   // Indicates the presence of output_flag in slice header
    894 #endif
    895722
    896723  Int      m_iTileBehaviorControlPresentFlag;
     
    898725  Int      m_iColumnRowInfoPresent;
    899726  Int      m_iUniformSpacingIdr;
    900 #if !REMOVE_TILE_DEPENDENCE
    901   Int      m_iTileBoundaryIndependenceIdr;
    902 #endif
    903727  Int      m_iNumColumnsMinus1;
    904728  UInt*    m_puiColumnWidth;
     
    907731 
    908732  Int      m_iEntropyCodingMode; // !!! in PPS now, but also remains in slice header!
    909 #if !WPP_SIMPLIFICATION 
    910   Int      m_iEntropyCodingSynchro;
    911   Bool     m_bCabacIstateReset;
    912 #endif
    913733  Int      m_iNumSubstreams;
    914734
    915735  Bool     m_enableTMVPFlag;
    916736
    917 #if MULTIBITS_DATA_HIDING
    918737  Int      m_signHideFlag;
    919738  Int      m_signHidingThreshold;
    920 #endif
    921739
    922740#if CABAC_INIT_FLAG
     
    927745#endif
    928746#endif
    929 #if DBL_CONTROL
    930747  Bool     m_DeblockingFilterControlPresent;
    931 #endif
    932 #if PARALLEL_MERGE
    933748  UInt m_log2ParallelMergeLevelMinus2;
    934 #endif
    935749public:
    936750  TComPPS();
     
    951765  Void      setConstrainedIntraPred ( Bool b ) { m_bConstrainedIntraPred = b;     }
    952766
    953 #if !H0566_TLA
    954   UInt      getNumTLayerSwitchingFlags()                                  { return m_uiNumTlayerSwitchingFlags; }
    955   Void      setNumTLayerSwitchingFlags( UInt uiNumTlayerSwitchingFlags )  { assert( uiNumTlayerSwitchingFlags < MAX_TLAYER ); m_uiNumTlayerSwitchingFlags = uiNumTlayerSwitchingFlags; }
    956 
    957   Bool      getTLayerSwitchingFlag( UInt uiTLayer )                       { assert( uiTLayer < MAX_TLAYER ); return m_abTLayerSwitchingFlag[ uiTLayer ]; }
    958   Void      setTLayerSwitchingFlag( UInt uiTLayer, Bool bValue )          { m_abTLayerSwitchingFlag[ uiTLayer ] = bValue; }
    959 #endif
    960 
    961 #if !RPS_IN_SPS
    962   Bool      getLongTermRefsPresent()         { return m_bLongTermRefsPresent; }
    963   Void      setLongTermRefsPresent(Bool b)   { m_bLongTermRefsPresent=b;      }
    964 #endif
     767
    965768  Void      setSPS              ( TComSPS* pcSPS ) { m_pcSPS = pcSPS; }
    966769  TComSPS*  getSPS              ()         { return m_pcSPS;          }
    967 #if !RPS_IN_SPS
    968   Void      setRPSList          ( TComRPSList* RPSList ) { m_RPSList = RPSList; }
    969   TComRPSList* getRPSList       ()         { return m_RPSList;        }
    970 #endif
    971770  Void      setMaxCuDQPDepth    ( UInt u ) { m_uiMaxCuDQPDepth = u;   }
    972771  UInt      getMaxCuDQPDepth    ()         { return m_uiMaxCuDQPDepth;}
     
    985784  Void setWPBiPredIdc               ( UInt u )  { m_uiBiPredIdc = u;        }
    986785
    987 #if H0388
    988786  Void      setOutputFlagPresentFlag( Bool b )  { m_OutputFlagPresentFlag = b;    }
    989787  Bool      getOutputFlagPresentFlag()          { return m_OutputFlagPresentFlag; }
    990 #endif
    991788
    992789  Void    setTileBehaviorControlPresentFlag        ( Int i )             { m_iTileBehaviorControlPresentFlag = i;    }
     
    998795  Void     setUniformSpacingIdr             ( Int i )           { m_iUniformSpacingIdr = i; }
    999796  Int      getUniformSpacingIdr             ()                  { return m_iUniformSpacingIdr; }
    1000 #if !REMOVE_TILE_DEPENDENCE
    1001   Void     setTileBoundaryIndependenceIdr   ( Int i )           { m_iTileBoundaryIndependenceIdr = i; }
    1002   Int      getTileBoundaryIndependenceIdr   ()                  { return m_iTileBoundaryIndependenceIdr; }
    1003 #endif
    1004797  Void     setNumColumnsMinus1              ( Int i )           { m_iNumColumnsMinus1 = i; }
    1005798  Int      getNumColumnsMinus1              ()                  { return m_iNumColumnsMinus1; }
     
    1034827  Void     setEntropyCodingMode(Int iEntropyCodingMode)       { m_iEntropyCodingMode = iEntropyCodingMode; }
    1035828  Int      getEntropyCodingMode()                             { return m_iEntropyCodingMode; }
    1036 #if !WPP_SIMPLIFICATION
    1037   Void     setEntropyCodingSynchro(Int iEntropyCodingSynchro) { m_iEntropyCodingSynchro = iEntropyCodingSynchro; }
    1038   Int      getEntropyCodingSynchro()                          { return m_iEntropyCodingSynchro; }
    1039   Void     setCabacIstateReset(Bool bCabacIstateReset)        { m_bCabacIstateReset = bCabacIstateReset; }
    1040   Bool     getCabacIstateReset()                              { return m_bCabacIstateReset; }
    1041 #endif
    1042829  Void     setNumSubstreams(Int iNumSubstreams)               { m_iNumSubstreams = iNumSubstreams; }
    1043830  Int      getNumSubstreams()                                 { return m_iNumSubstreams; }
    1044831
    1045 #if MULTIBITS_DATA_HIDING
    1046832  Void      setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; }
    1047833  Void      setTSIG( Int tsig )                 { m_signHidingThreshold = tsig; }
    1048834  Int       getSignHideFlag()                    { return m_signHideFlag; }
    1049835  Int       getTSIG()                            { return m_signHidingThreshold; }
    1050 #endif
    1051836
    1052837  Void     setEnableTMVPFlag( Bool b )  { m_enableTMVPFlag = b;    }
     
    1063848#endif
    1064849#endif
    1065 #if DBL_CONTROL
    1066850  Void setDeblockingFilterControlPresent    ( Bool bValue )       { m_DeblockingFilterControlPresent = bValue; }
    1067851  Bool getDeblockingFilterControlPresent    ()                    { return m_DeblockingFilterControlPresent; }
    1068 #endif
    1069 #if PARALLEL_MERGE
    1070852  UInt getLog2ParallelMergeLevelMinus2      ()                    { return m_log2ParallelMergeLevelMinus2; }
    1071853  Void setLog2ParallelMergeLevelMinus2      (UInt mrgLevel)       { m_log2ParallelMergeLevelMinus2 = mrgLevel; }
    1072 #endif
    1073854};
    1074855
     
    1087868  Int*     getScalingListDefaultAddress   (UInt sizeId, UInt listId);                                                        //!< get default matrix coefficient
    1088869  Void     processDefaultMarix            (UInt sizeId, UInt listId);
    1089 #if SCALING_LIST
    1090870  Void     setScalingListDC               (UInt sizeId, UInt listId, UInt u)   { m_scalingListDC[sizeId][listId] = u; }      //!< set DC value
    1091871  Int      getScalingListDC               (UInt sizeId, UInt listId)           { return m_scalingListDC[sizeId][listId]; }   //!< get DC value
     
    1093873  Void     setUseDefaultScalingMatrixFlag (UInt sizeId, UInt listId, Bool b)   { m_useDefaultScalingMatrixFlag[sizeId][listId] = b;    } //!< set default matrix enabled/disabled in each matrix
    1094874  Bool     getUseDefaultScalingMatrixFlag (UInt sizeId, UInt listId)           { return m_useDefaultScalingMatrixFlag[sizeId][listId]; } //!< get default matrix enabled/disabled in each matrix
    1095 #endif
    1096875  Void     processRefMatrix               (UInt sizeId, UInt listId , UInt refListId );
    1097876  Bool     xParseScalingList              (char* pchFile);
     
    1100879  Void     init                    ();
    1101880  Void     destroy                 ();
    1102 #if SCALING_LIST
    1103881  Int      m_scalingListDC               [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< the DC value of the matrix coefficient for 16x16
    1104882  Bool     m_useDefaultScalingMatrixFlag [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< UseDefaultScalingMatrixFlag
    1105 #endif
    1106883  UInt     m_refMatrixId                 [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< RefMatrixID
    1107884  Bool     m_scalingListPresentFlag;                                                //!< flag for using default matrix
     
    1124901  Bool      getAlfEnabled ()          {return m_bAlfEnabled;     }  //!< get ALF enabled/disabled in APS
    1125902
    1126 #if LCU_SYNTAX_ALF
    1127903  AlfParamSet* getAlfParam   ()          {return m_alfParamSet;}
    1128 #else
    1129   ALFParam* getAlfParam   ()          {return m_pAlfParam;       }  //!< get ALF parameters in APS
    1130 #endif
    1131904  SAOParam* getSaoParam   ()          {return m_pSaoParam;       }  //!< get SAO parameters in APS
    1132905
     
    1151924  Bool      getScalingListEnabled ()          { return m_scalingListEnabled; }  //!< get ScalingList enabled/disabled in APS
    1152925  TComScalingList* getScalingList ()          { return m_scalingList; }         //!< get ScalingList class pointer in APS
    1153 #if SAO_UNIT_INTERLEAVING
    1154926  Bool     getSaoInterleavingFlag() {return m_saoInterleavingFlag;}             //!< get SAO interleaving flag in APS
    1155927  Void     setSaoInterleavingFlag(Bool bVal) {m_saoInterleavingFlag = bVal;}    //!< set SAO interleaving flag in APS
    1156 #endif
    1157928
    1158929private:
     
    1161932  Bool        m_bAlfEnabled;  //!< ALF enabled/disabled in APS (true for enabled)
    1162933  SAOParam*   m_pSaoParam;    //!< SAO parameter object pointer
    1163 #if LCU_SYNTAX_ALF
    1164934  AlfParamSet*   m_alfParamSet;
    1165 #else
    1166   ALFParam*   m_pAlfParam;    //!< ALF parameter object pointer
    1167 #endif
    1168935  Bool        m_loopFilterOffsetInAPS;       //< offset for deblocking filter in 0 = slice header, 1 = APS
    1169936  Bool        m_loopFilterDisable;           //< Deblocking filter enabled/disabled in APS
     
    1172939  Bool        m_scalingListEnabled;     //!< ScalingList enabled/disabled in APS (true for enabled)
    1173940  TComScalingList*     m_scalingList;   //!< ScalingList class pointer
    1174 #if SAO_UNIT_INTERLEAVING
    1175941  Bool        m_saoInterleavingFlag;    //!< SAO interleaving flag
    1176 #endif
    1177942
    1178943public:
     
    1206971  bool       m_alfEnabledFlag;
    1207972  bool       m_saoEnabledFlag;
    1208 #if SAO_UNIT_INTERLEAVING
    1209973  bool       m_saoInterleavingFlag;   ///< SAO interleaving flag
    1210974  bool       m_saoEnabledFlagCb;      ///< SAO Cb enabled flag
    1211975  bool       m_saoEnabledFlagCr;      ///< SAO Cr enabled flag
    1212 #endif
    1213976  Int         m_iPPSId;               ///< picture parameter set ID
    1214 #if H0388
    1215977  Bool        m_PicOutputFlag;        ///< pic_output_flag
    1216 #endif
    1217978  Int         m_iPOC;
    1218979  Int         m_iLastIDR;
     
    12481009
    12491010  Bool        m_bCheckLDC;
     1011#if QC_TMVP_MRG_REFIDX_C0047
     1012  Int         m_aiNewRefIdx    [2];
     1013#endif
    12501014
    12511015  //  Data
     
    12651029#endif
    12661030#if QC_IV_AS_LT_B0046
    1267   Bool                  m_bWasLongTerm[2][MAX_NUM_REF+1]; //was long-term picture
     1031  Bool        m_bWasLongTerm[2][MAX_NUM_REF+1]; //was long-term picture
    12681032#endif
    12691033  TComSPS*    m_pcSPS;
     
    13281092#endif
    13291093
    1330 #if H0111_MVD_L1_ZERO
    13311094  Bool       m_bLMvdL1Zero;
    1332 #endif
    1333 #if TILES_WPP_ENTRY_POINT_SIGNALLING
    13341095  Int         m_numEntryPointOffsets;
    1335 #endif
    13361096
    13371097  Int        m_viewId;
     
    13401100  Int        m_aaiCodedOffset[2][MAX_VIEW_NUM];
    13411101
    1342 #if SONY_COLPIC_AVAILABILITY|QC_MVHEVC_B0046
    1343   Int         m_iViewOrderIdx;
    1344 #endif
    13451102#if LGE_ILLUCOMP_B0045
    13461103  Bool        m_bApplyIC;
     1104#endif
     1105#if INTER_VIEW_VECTOR_SCALING_C0115|QC_MVHEVC_B0046
     1106  Bool       m_bIVScalingFlag;
     1107  Int        m_iViewOrderIdx;    // will be changed to view_id
     1108#endif
     1109
     1110#if MERL_VSP_C0152
     1111  TComPic*     m_apcRefPicBaseTxt;
     1112  TComPic*     m_apcRefPicBaseDepth;
     1113  Int*         m_aiShiftLUT;
     1114  Int          m_iShiftPrec;
    13471115#endif
    13481116
     
    13801148  Void      setAPSId        ( Int Id)          { m_iAPSId =Id;    } //!< set APS ID
    13811149  Int       getAPSId        ()                 { return m_iAPSId; } //!< get APS ID
    1382 #if H0388
    13831150  Void      setPicOutputFlag( Bool b )         { m_PicOutputFlag = b;    }
    13841151  Bool      getPicOutputFlag()                 { return m_PicOutputFlag; }
    1385 #endif
    13861152  Void      setAlfEnabledFlag(Bool s) {m_alfEnabledFlag =s; }
    13871153  Bool      getAlfEnabledFlag() { return m_alfEnabledFlag; }
    13881154  Void      setSaoEnabledFlag(Bool s) {m_saoEnabledFlag =s; }
    13891155  Bool      getSaoEnabledFlag() { return m_saoEnabledFlag; }
    1390 #if SAO_UNIT_INTERLEAVING
    13911156  Void      setSaoInterleavingFlag(Bool s) {m_saoInterleavingFlag =s; } //!< set SAO interleaving flag
    13921157  Bool      getSaoInterleavingFlag() { return m_saoInterleavingFlag;  } //!< get SAO interleaving flag
     
    13951160  Void      setSaoEnabledFlagCr(Bool s) {m_saoEnabledFlagCr =s; }       //!< set SAO Cr enabled flag
    13961161  Bool      getSaoEnabledFlagCr() { return m_saoEnabledFlagCr; }        //!< get SAO Cr enabled flag
    1397 #endif
    13981162  Void      setRPS          ( TComReferencePictureSet *pcRPS ) { m_pcRPS = pcRPS; }
    13991163  TComReferencePictureSet*  getRPS          () { return m_pcRPS; }
     
    14301194  Int       getRefViewId        ( RefPicList e, Int iRefIdx)    { return  m_aiRefViewIdList[e][iRefIdx]; }
    14311195  TComPic*  getTexturePic       () const                        { return  m_pcTexturePic; }
    1432 #if SONY_COLPIC_AVAILABILITY
    1433   Int       getViewOrderIdx     ()                                  { return  m_iViewOrderIdx;              }
    1434 #endif
    14351196  Int       getDepth            ()                              { return  m_iDepth;                     }
    14361197  UInt      getColDir           ()                              { return  m_uiColDir;                   }
     
    14401201#endif
    14411202  Bool      getCheckLDC     ()                                  { return m_bCheckLDC; }
    1442 #if H0111_MVD_L1_ZERO
    14431203  Bool      getMvdL1ZeroFlag ()                                  { return m_bLMvdL1Zero;    }
    1444 #endif
    14451204  Int       getRefIdxOfLC       (RefPicList e, Int iRefIdx)     { return m_iRefIdxOfLC[e][iRefIdx];           }
    14461205  Int       getListIdFromIdxOfLC(Int iRefIdx)                   { return m_eListIdFromIdxOfLC[iRefIdx];       }
     
    14821241  Void      setRefViewId        ( Int i, RefPicList e, Int iRefIdx ) { m_aiRefViewIdList[e][iRefIdx] = i; }
    14831242  Void      setTexturePic       ( TComPic *pcTexturePic )       { m_pcTexturePic = pcTexturePic; }
    1484 #if SONY_COLPIC_AVAILABILITY
    1485   Void      setViewOrderIdx     ( Int i )                       { m_iViewOrderIdx     = i;      }
    1486 #endif
    14871243  Void      setNumRefIdx        ( RefPicList e, Int i )         { m_aiNumRefIdx[e]    = i;      }
    14881244  Void      setPic              ( TComPic* p )                  { m_pcPic             = p;      }
     
    14991255#endif
    15001256  Void      setCheckLDC         ( Bool b )                      { m_bCheckLDC = b; }
    1501 #if H0111_MVD_L1_ZERO
    15021257  Void      setMvdL1ZeroFlag     ( Bool b)                       { m_bLMvdL1Zero = b; }
    1503 #endif 
    15041258
    15051259  Bool      isIntra         ()                          { return  m_eSliceType == I_SLICE;  }
     
    15391293  Void setTLayer             ( UInt uiTLayer )             { m_uiTLayer = uiTLayer;                  }
    15401294
    1541 #if !H0566_TLA
    1542   Bool getTLayerSwitchingFlag()                            { return m_bTLayerSwitchingFlag;          }
    1543   Void setTLayerSwitchingFlag( Bool bValue )               { m_bTLayerSwitchingFlag = bValue;        }
    1544 #endif
    15451295
    15461296  Void setTLayerInfo( UInt uiTLayer );
    15471297  Void decodingMarking( TComList<TComPic*>& rcListPic, Int iGOPSIze, Int& iMaxRefPicNum );
    15481298  Void applyReferencePictureSet( TComList<TComPic*>& rcListPic, TComReferencePictureSet *RPSList);
    1549 #if H0566_TLA && H0566_TLA_SET_FOR_SWITCHING_POINTS
     1299#if H0566_TLA_SET_FOR_SWITCHING_POINTS
    15501300  Bool isTemporalLayerSwitchingPoint( TComList<TComPic*>& rcListPic, TComReferencePictureSet *RPSList);
    15511301#endif
    1552 #if START_DECODING_AT_CRA
    15531302  Int       checkThatAllRefPicsAreAvailable( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool outputFlag, Int pocRandomAccess = 0);
    1554 #else
    1555   Int       checkThatAllRefPicsAreAvailable( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool outputFlag);
    1556 #endif
    15571303  Void      createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet);
    15581304
     
    16281374  Int       getCABACinitIDC()         {return m_cabacInitIdc;    }  //!< get CABAC initial IDC number
    16291375#endif
    1630 #if TILES_WPP_ENTRY_POINT_SIGNALLING
    16311376  Void      setNumEntryPointOffsets(Int val)  { m_numEntryPointOffsets = val;     }
    16321377  Int       getNumEntryPointOffsets()         { return m_numEntryPointOffsets;    }
    1633 #endif
    16341378
    16351379  Void setViewId( Int viewId )       { m_viewId = viewId;   }
     
    16531397  Bool      getApplyIC            ()  { return m_bApplyIC; }
    16541398  Void      xSetApplyIC           ();
     1399#endif
     1400#if QC_TMVP_MRG_REFIDX_C0047
     1401  Int       getNewRefIdx        ( RefPicList e )                { return  m_aiNewRefIdx[e];     }
     1402  Void      setNewRefIdx        ( RefPicList e, Int i )         { m_aiNewRefIdx[e]    = i;      }
     1403#endif
     1404#if INTER_VIEW_VECTOR_SCALING_C0115
     1405  Void setIVScalingFlag( Bool val )         { m_bIVScalingFlag = val;     }
     1406  Bool getIVScalingFlag()                   { return m_bIVScalingFlag;    }
     1407  Void setViewOrderIdx     ( Int i )        { m_iViewOrderIdx     = i;    }   // will be changed to view_id
     1408  Int  getViewOrderIdx     ()               { return  m_iViewOrderIdx;    }   // will be changed to view_id
     1409#endif
     1410
     1411#if MERL_VSP_C0152
     1412  TComPic*     getRefPicBaseTxt          ()                        { return  m_apcRefPicBaseTxt; }
     1413  Void         setRefPicBaseTxt          ( TComPic* RefPic)        { m_apcRefPicBaseTxt = RefPic; }
     1414  TComPic*     getRefPicBaseDepth        ()                        { return  m_apcRefPicBaseDepth; }
     1415  Void         setRefPicBaseDepth        ( TComPic* RefPic)        { m_apcRefPicBaseDepth = RefPic; }
     1416
     1417  Void setBWVSPLUTParam( Int *pShiftLUT, Int iLoG2LUTPrec) { m_aiShiftLUT = pShiftLUT; m_iShiftPrec = iLoG2LUTPrec; }
     1418  Void getBWVSPLUTParam( Int*&pShiftLUT, Int&iLoG2LUTPrec) { pShiftLUT = m_aiShiftLUT; iLoG2LUTPrec = m_iShiftPrec; }
    16551419#endif
    16561420
Note: See TracChangeset for help on using the changeset viewer.