Changeset 133 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibCommon/TComSlice.h
- Timestamp:
- 28 Apr 2013, 08:49:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibCommon/TComSlice.h
r125 r133 908 908 UInt m_picHeightInLumaSamples; 909 909 910 Window m_conformanceWindow;911 910 Int m_log2MinCodingBlockSize; 911 Int m_log2DiffMaxMinCodingBlockSize; 912 912 UInt m_uiMaxCUWidth; 913 913 UInt m_uiMaxCUHeight; 914 914 UInt m_uiMaxCUDepth; 915 UInt m_uiMinTrDepth; 916 UInt m_uiMaxTrDepth; 915 916 Window m_conformanceWindow; 917 917 918 TComRPSList m_RPSList; 918 919 Bool m_bLongTermRefsPresent; … … 930 931 Bool m_useAMP; 931 932 933 #if !L0034_COMBINED_LIST_CLEANUP 932 934 Bool m_bUseLComb; 935 #endif 933 936 934 937 // Parameter … … 1009 1012 Bool getUsedByCurrPicLtSPSFlag(Int i) {return m_usedByCurrPicLtSPSFlag[i];} 1010 1013 Void setUsedByCurrPicLtSPSFlag(Int i, Bool x) { m_usedByCurrPicLtSPSFlag[i] = x;} 1014 1015 Int getLog2MinCodingBlockSize() const { return m_log2MinCodingBlockSize; } 1016 Void setLog2MinCodingBlockSize(Int val) { m_log2MinCodingBlockSize = val; } 1017 Int getLog2DiffMaxMinCodingBlockSize() const { return m_log2DiffMaxMinCodingBlockSize; } 1018 Void setLog2DiffMaxMinCodingBlockSize(Int val) { m_log2DiffMaxMinCodingBlockSize = val; } 1019 1011 1020 Void setMaxCUWidth ( UInt u ) { m_uiMaxCUWidth = u; } 1012 1021 UInt getMaxCUWidth () { return m_uiMaxCUWidth; } … … 1025 1034 Bool getUseAMP() { return m_useAMP; } 1026 1035 Void setUseAMP( Bool b ) { m_useAMP = b; } 1027 Void setMinTrDepth ( UInt u ) { m_uiMinTrDepth = u; }1028 UInt getMinTrDepth () { return m_uiMinTrDepth; }1029 Void setMaxTrDepth ( UInt u ) { m_uiMaxTrDepth = u; }1030 UInt getMaxTrDepth () { return m_uiMaxTrDepth; }1031 1036 Void setQuadtreeTULog2MaxSize( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } 1032 1037 UInt getQuadtreeTULog2MaxSize() { return m_uiQuadtreeTULog2MaxSize; } … … 1050 1055 1051 1056 // Tool list 1057 #if !L0034_COMBINED_LIST_CLEANUP 1052 1058 Void setUseLComb (Bool b) { m_bUseLComb = b; } 1053 1059 Bool getUseLComb () { return m_bUseLComb; } 1060 #endif 1054 1061 1055 1062 Bool getUseLossless () { return m_useLossless; } … … 1370 1377 Int m_deblockingFilterBetaOffsetDiv2; //< beta offset for deblocking filter 1371 1378 Int m_deblockingFilterTcOffsetDiv2; //< tc offset for deblocking filter 1372 1373 Int m_aiNumRefIdx [3]; // for multiple reference of current slice1374 1375 1379 #if REF_LIST_BUGFIX 1376 1380 Int m_aiNumILRRefIdx; //< for inter-layer reference picture ser 1377 1381 #endif 1378 1382 #if L0034_COMBINED_LIST_CLEANUP 1383 Int m_list1IdxToList0Idx[MAX_NUM_REF]; 1384 Int m_aiNumRefIdx [2]; // for multiple reference of current slice 1385 #else 1386 Int m_aiNumRefIdx [3]; // for multiple reference of current slice 1379 1387 Int m_iRefIdxOfLC[2][MAX_NUM_REF_LC]; 1380 1388 Int m_eListIdFromIdxOfLC[MAX_NUM_REF_LC]; … … 1384 1392 Bool m_bRefPicListModificationFlagLC; 1385 1393 Bool m_bRefPicListCombinationFlag; 1394 #endif 1386 1395 1387 1396 Bool m_bCheckLDC; … … 1421 1430 1422 1431 Bool m_abEqualRef [2][MAX_NUM_REF][MAX_NUM_REF]; 1423 1432 #if !L0034_COMBINED_LIST_CLEANUP 1424 1433 Bool m_bNoBackPredFlag; 1434 #endif 1425 1435 UInt m_uiTLayer; 1426 1436 #if SVC_EXTENSION … … 1533 1543 Bool getMvdL1ZeroFlag () { return m_bLMvdL1Zero; } 1534 1544 Int getNumRpsCurrTempList(); 1545 #if L0034_COMBINED_LIST_CLEANUP 1546 Int getList1IdxToList0Idx ( Int list1Idx ) { return m_list1IdxToList0Idx[list1Idx]; } 1547 #else 1535 1548 Int getRefIdxOfLC (RefPicList e, Int iRefIdx) { return m_iRefIdxOfLC[e][iRefIdx]; } 1536 1549 Int getListIdFromIdxOfLC(Int iRefIdx) { return m_eListIdFromIdxOfLC[iRefIdx]; } … … 1542 1555 Bool getRefPicListCombinationFlag() {return m_bRefPicListCombinationFlag;} 1543 1556 Void setRefPicListCombinationFlag(Bool bflag) {m_bRefPicListCombinationFlag=bflag;} 1557 #endif 1544 1558 Void setReferenced(Bool b) { m_bRefenced = b; } 1545 1559 Bool isReferenced() { return m_bRefenced; } 1546 1560 Void setPOC ( Int i ) { m_iPOC = i; if(getTLayer()==0) m_prevPOC=i; } 1547 1561 Void setNalUnitType ( NalUnitType e ) { m_eNalUnitType = e; } 1548 NalUnitType getNalUnitType () 1562 NalUnitType getNalUnitType () const { return m_eNalUnitType; } 1549 1563 Bool getRapPicFlag (); 1550 Bool getIdrPicFlag () { return getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP; } 1551 Void checkCRA(TComReferencePictureSet *pReferencePictureSet, Int& pocCRA, Bool& prevRAPisBLA); 1564 Bool getIdrPicFlag () { return getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP; } 1565 Bool isIRAP () const { return (getNalUnitType() >= 16) && (getNalUnitType() <= 23); } 1566 Void checkCRA(TComReferencePictureSet *pReferencePictureSet, Int& pocCRA, Bool& prevRAPisBLA, TComList<TComPic *>& rcListPic); 1552 1567 Void decodingRefreshMarking(Int& pocCRA, Bool& bRefreshPending, TComList<TComPic*>& rcListPic); 1553 1568 Void setSliceType ( SliceType e ) { m_eSliceType = e; } … … 1590 1605 #endif 1591 1606 1607 #if FIX1071 1608 Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false ); 1609 #else 1592 1610 Void setRefPicList ( TComList<TComPic*>& rcListPic ); 1611 #endif 1593 1612 Void setRefPOCList (); 1594 1613 Void setColFromL0Flag ( UInt colFromL0 ) { m_colFromL0Flag = colFromL0; } … … 1628 1647 1629 1648 static Void sortPicList ( TComList<TComPic*>& rcListPic ); 1630 1649 #if L0034_COMBINED_LIST_CLEANUP 1650 Void setList1IdxToList0Idx(); 1651 #else 1631 1652 Bool getNoBackPredFlag() { return m_bNoBackPredFlag; } 1632 1653 Void setNoBackPredFlag( Bool b ) { m_bNoBackPredFlag = b; } 1633 1654 Void generateCombinedList (); 1655 #endif 1634 1656 1635 1657 UInt getTLayer () { return m_uiTLayer; } … … 1679 1701 Void getWpScaling ( RefPicList e, Int iRefIdx, wpScalingParam *&wp); 1680 1702 1681 Void resetWpScaling (wpScalingParam wp[2][MAX_NUM_REF][3]); 1682 Void initWpScaling (wpScalingParam wp[2][MAX_NUM_REF][3]); 1703 Void resetWpScaling (); 1683 1704 Void initWpScaling (); 1684 1705 inline Bool applyWP () { return( (m_eSliceType==P_SLICE && m_pcPPS->getUseWP()) || (m_eSliceType==B_SLICE && m_pcPPS->getWPBiPred()) ); } … … 1720 1741 TComPic* xGetRefPic (TComList<TComPic*>& rcListPic, 1721 1742 Int poc); 1722 TComPic* xGetLongTermRefPic (TComList<TComPic*>& rcListPic, 1723 Int poc); 1743 TComPic* xGetLongTermRefPic(TComList<TComPic*>& rcListPic, Int poc, Bool pocHasMsb); 1724 1744 };// END CLASS DEFINITION TComSlice 1725 1745 … … 1805 1825 //! activate a PPS and depending on isIDR parameter also SPS and VPS 1806 1826 //! \returns true, if activation is successful 1807 Bool activatePPS(Int ppsId, Bool isI DR);1827 Bool activatePPS(Int ppsId, Bool isIRAP); 1808 1828 1809 1829 TComVPS* getActiveVPS(){ return m_vpsMap.getPS(m_activeVPSId); };
Note: See TracChangeset for help on using the changeset viewer.