Changeset 362 in 3DVCSoftware for branches/HTM-DEV-0.1-dev/source/Lib/TLibCommon/TComSlice.h
- Timestamp:
- 3 May 2013, 15:34:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.1-dev/source/Lib/TLibCommon/TComSlice.h
r331 r362 905 905 UInt m_picHeightInLumaSamples; 906 906 907 Window m_conformanceWindow;908 907 Int m_log2MinCodingBlockSize; 908 Int m_log2DiffMaxMinCodingBlockSize; 909 909 UInt m_uiMaxCUWidth; 910 910 UInt m_uiMaxCUHeight; 911 911 UInt m_uiMaxCUDepth; 912 UInt m_uiMinTrDepth; 913 UInt m_uiMaxTrDepth; 912 913 Window m_conformanceWindow; 914 914 915 TComRPSList m_RPSList; 915 916 Bool m_bLongTermRefsPresent; … … 927 928 Bool m_useAMP; 928 929 930 #if !L0034_COMBINED_LIST_CLEANUP 929 931 Bool m_bUseLComb; 932 #endif 930 933 931 934 // Parameter … … 1004 1007 Bool getUsedByCurrPicLtSPSFlag(Int i) {return m_usedByCurrPicLtSPSFlag[i];} 1005 1008 Void setUsedByCurrPicLtSPSFlag(Int i, Bool x) { m_usedByCurrPicLtSPSFlag[i] = x;} 1009 1010 Int getLog2MinCodingBlockSize() const { return m_log2MinCodingBlockSize; } 1011 Void setLog2MinCodingBlockSize(Int val) { m_log2MinCodingBlockSize = val; } 1012 Int getLog2DiffMaxMinCodingBlockSize() const { return m_log2DiffMaxMinCodingBlockSize; } 1013 Void setLog2DiffMaxMinCodingBlockSize(Int val) { m_log2DiffMaxMinCodingBlockSize = val; } 1014 1006 1015 Void setMaxCUWidth ( UInt u ) { m_uiMaxCUWidth = u; } 1007 1016 UInt getMaxCUWidth () { return m_uiMaxCUWidth; } … … 1020 1029 Bool getUseAMP() { return m_useAMP; } 1021 1030 Void setUseAMP( Bool b ) { m_useAMP = b; } 1022 Void setMinTrDepth ( UInt u ) { m_uiMinTrDepth = u; }1023 UInt getMinTrDepth () { return m_uiMinTrDepth; }1024 Void setMaxTrDepth ( UInt u ) { m_uiMaxTrDepth = u; }1025 UInt getMaxTrDepth () { return m_uiMaxTrDepth; }1026 1031 Void setQuadtreeTULog2MaxSize( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } 1027 1032 UInt getQuadtreeTULog2MaxSize() { return m_uiQuadtreeTULog2MaxSize; } … … 1045 1050 1046 1051 // Tool list 1052 #if !L0034_COMBINED_LIST_CLEANUP 1047 1053 Void setUseLComb (Bool b) { m_bUseLComb = b; } 1048 1054 Bool getUseLComb () { return m_bUseLComb; } 1055 #endif 1049 1056 1050 1057 Bool getUseLossless () { return m_useLossless; } … … 1130 1137 Void setRefPicSetIdxL1(UInt idx, UInt refPicSetIdx) { m_RefPicSetIdxL1[idx] = refPicSetIdx; } 1131 1138 UInt getRefPicSetIdxL1(UInt idx) { return m_RefPicSetIdxL1[idx]; } 1132 1133 1139 #if H_MV 1134 1140 // Why not an listIdx for all members, would avoid code duplication?? … … 1367 1373 Int m_deblockingFilterBetaOffsetDiv2; //< beta offset for deblocking filter 1368 1374 Int m_deblockingFilterTcOffsetDiv2; //< tc offset for deblocking filter 1369 1375 #if L0034_COMBINED_LIST_CLEANUP 1376 Int m_list1IdxToList0Idx[MAX_NUM_REF]; 1377 Int m_aiNumRefIdx [2]; // for multiple reference of current slice 1378 #else 1370 1379 Int m_aiNumRefIdx [3]; // for multiple reference of current slice 1371 1380 … … 1377 1386 Bool m_bRefPicListModificationFlagLC; 1378 1387 Bool m_bRefPicListCombinationFlag; 1388 #endif 1379 1389 1380 1390 Bool m_bCheckLDC; … … 1417 1427 1418 1428 Bool m_abEqualRef [2][MAX_NUM_REF][MAX_NUM_REF]; 1419 1429 #if !L0034_COMBINED_LIST_CLEANUP 1420 1430 Bool m_bNoBackPredFlag; 1431 #endif 1421 1432 UInt m_uiTLayer; 1422 1433 Bool m_bTLayerSwitchingFlag; … … 1526 1537 Bool getMvdL1ZeroFlag () { return m_bLMvdL1Zero; } 1527 1538 Int getNumRpsCurrTempList(); 1539 #if L0034_COMBINED_LIST_CLEANUP 1540 Int getList1IdxToList0Idx ( Int list1Idx ) { return m_list1IdxToList0Idx[list1Idx]; } 1541 #else 1528 1542 Int getRefIdxOfLC (RefPicList e, Int iRefIdx) { return m_iRefIdxOfLC[e][iRefIdx]; } 1529 1543 Int getListIdFromIdxOfLC(Int iRefIdx) { return m_eListIdFromIdxOfLC[iRefIdx]; } … … 1535 1549 Bool getRefPicListCombinationFlag() {return m_bRefPicListCombinationFlag;} 1536 1550 Void setRefPicListCombinationFlag(Bool bflag) {m_bRefPicListCombinationFlag=bflag;} 1551 #endif 1537 1552 Void setReferenced(Bool b) { m_bRefenced = b; } 1538 1553 Bool isReferenced() { return m_bRefenced; } 1539 1554 Void setPOC ( Int i ) { m_iPOC = i; if(getTLayer()==0) m_prevPOC=i; } 1540 1555 Void setNalUnitType ( NalUnitType e ) { m_eNalUnitType = e; } 1541 NalUnitType getNalUnitType () 1556 NalUnitType getNalUnitType () const { return m_eNalUnitType; } 1542 1557 Bool getRapPicFlag (); 1543 Bool getIdrPicFlag () { return getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP; } 1544 Void checkCRA(TComReferencePictureSet *pReferencePictureSet, Int& pocCRA, Bool& prevRAPisBLA); 1558 Bool getIdrPicFlag () { return getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP; } 1559 Bool isIRAP () const { return (getNalUnitType() >= 16) && (getNalUnitType() <= 23); } 1560 Void checkCRA(TComReferencePictureSet *pReferencePictureSet, Int& pocCRA, Bool& prevRAPisBLA, TComList<TComPic *>& rcListPic); 1545 1561 Void decodingRefreshMarking(Int& pocCRA, Bool& bRefreshPending, TComList<TComPic*>& rcListPic); 1546 1562 Void setSliceType ( SliceType e ) { m_eSliceType = e; } … … 1568 1584 #endif 1569 1585 #if H_MV 1570 Void setRefPicList ( TComList<TComPic*>& rcListPic, std::vector<TComPic*>& interLayerRefPicSet ); 1586 Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false , std::vector<TComPic*>& interLayerRefPicSet ); 1587 #else 1588 #if FIX1071 1589 Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false ); 1571 1590 #else 1572 1591 Void setRefPicList ( TComList<TComPic*>& rcListPic ); 1592 #endif 1593 1573 1594 #endif 1574 1595 Void setRefPOCList (); … … 1604 1625 1605 1626 static Void sortPicList ( TComList<TComPic*>& rcListPic ); 1606 1627 #if L0034_COMBINED_LIST_CLEANUP 1628 Void setList1IdxToList0Idx(); 1629 #else 1607 1630 Bool getNoBackPredFlag() { return m_bNoBackPredFlag; } 1608 1631 Void setNoBackPredFlag( Bool b ) { m_bNoBackPredFlag = b; } 1609 1632 Void generateCombinedList (); 1633 #endif 1610 1634 1611 1635 UInt getTLayer () { return m_uiTLayer; } … … 1665 1689 Void getWpScaling ( RefPicList e, Int iRefIdx, wpScalingParam *&wp); 1666 1690 1667 Void resetWpScaling (wpScalingParam wp[2][MAX_NUM_REF][3]); 1668 Void initWpScaling (wpScalingParam wp[2][MAX_NUM_REF][3]); 1691 Void resetWpScaling (); 1669 1692 Void initWpScaling (); 1670 1693 inline Bool applyWP () { return( (m_eSliceType==P_SLICE && m_pcPPS->getUseWP()) || (m_eSliceType==B_SLICE && m_pcPPS->getWPBiPred()) ); } … … 1712 1735 #endif 1713 1736 #endif 1714 1715 1737 protected: 1716 1738 TComPic* xGetRefPic (TComList<TComPic*>& rcListPic, 1717 1739 Int poc); 1718 TComPic* xGetLongTermRefPic (TComList<TComPic*>& rcListPic, 1719 Int poc); 1740 TComPic* xGetLongTermRefPic(TComList<TComPic*>& rcListPic, Int poc, Bool pocHasMsb); 1720 1741 #if H_MV 1721 1742 TComPic* xGetInterLayerRefPic( std::vector<TComPic*>& rcListIlPic, Int layerId ); … … 1804 1825 //! activate a PPS and depending on isIDR parameter also SPS and VPS 1805 1826 //! \returns true, if activation is successful 1806 Bool activatePPS(Int ppsId, Bool isI DR);1827 Bool activatePPS(Int ppsId, Bool isIRAP); 1807 1828 1808 1829 TComVPS* getActiveVPS(){ return m_vpsMap.getPS(m_activeVPSId); };
Note: See TracChangeset for help on using the changeset viewer.