Changeset 1148 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 00:10:36 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 4 edited
-
TDecCAVLC.cpp (modified) (4 diffs)
-
TDecGop.cpp (modified) (2 diffs)
-
TDecTop.cpp (modified) (7 diffs)
-
TDecTop.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1146 r1148 2764 2764 #endif 2765 2765 #endif // view id related signaling 2766 #if VPS_EXTN_DIRECT_REF_LAYERS 2766 2767 2767 // For layer 0 2768 2768 vps->setNumDirectRefLayers(0, 0); … … 2783 2783 vps->setNumDirectRefLayers(layerId, numDirectRefLayers); 2784 2784 } 2785 #endif 2785 2786 2786 #if Q0078_ADD_LAYER_SETS 2787 2787 #if O0092_0094_DEPENDENCY_CONSTRAINT // Moved here … … 3244 3244 #endif 3245 3245 3246 #if VPS_EXTN_DIRECT_REF_LAYERS3247 3246 READ_UVLC( uiCode, "direct_dep_type_len_minus2"); vps->setDirectDepTypeLen(uiCode+2); 3248 3247 … … 3274 3273 } 3275 3274 } 3276 #endif 3275 3277 3276 #if !Q0078_ADD_LAYER_SETS 3278 3277 #if O0092_0094_DEPENDENCY_CONSTRAINT // Moved up -
branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp
r1089 r1148 210 210 { 211 211 #if SVC_EXTENSION 212 #if VPS_EXTN_DIRECT_REF_LAYERS213 212 if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR( m_layerId ) ) 214 213 { … … 224 223 printf ("%d", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex)); 225 224 } 226 #endif 225 227 226 if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() ) 228 227 { -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1147 r1148 748 748 749 749 #if SVC_EXTENSION 750 #if VPS_EXTN_DIRECT_REF_LAYERS751 750 setRefLayerParams(m_apcSlicePilot->getVPS()); 752 #endif753 751 m_apcSlicePilot->setNumMotionPredRefLayers(m_numMotionPredRefLayers); 754 752 #endif … … 1723 1721 else 1724 1722 { 1725 #if VPS_EXTN_DIRECT_REF_LAYERS1726 1723 TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc ); 1727 #else1728 TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );1729 #endif1730 1724 TComList<TComPic*> *cListPic = pcTDecTop->getListPic(); 1731 1725 if( !pcSlice->setBaseColPic ( *cListPic, refLayerIdc ) ) … … 1735 1729 } 1736 1730 #else 1737 #if VPS_EXTN_DIRECT_REF_LAYERS1738 1731 TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc ); 1739 #else1740 TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );1741 #endif1742 1732 TComList<TComPic*> *cListPic = pcTDecTop->getListPic(); 1743 1733 pcSlice->setBaseColPic ( *cListPic, refLayerIdc ); … … 1821 1811 else 1822 1812 { 1823 #if VPS_EXTN_DIRECT_REF_LAYERS1824 1813 TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc ); 1825 #else1826 TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );1827 #endif1828 1814 TComList<TComPic*> *cListPic = pcTDecTop->getListPic(); 1829 1815 pcSlice->setBaseColPic ( *cListPic, refLayerIdc ); 1830 1816 } 1831 1817 #else 1832 #if VPS_EXTN_DIRECT_REF_LAYERS1833 1818 TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc ); 1834 #else1835 TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );1836 #endif1837 1819 TComList<TComPic*> *cListPic = pcTDecTop->getListPic(); 1838 1820 pcSlice->setBaseColPic ( *cListPic, refLayerIdc ); … … 2440 2422 } 2441 2423 2442 #if VPS_EXTN_DIRECT_REF_LAYERS2443 2424 TDecTop* TDecTop::getRefLayerDec( UInt refLayerIdx ) 2444 2425 { … … 2451 2432 return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdx ) ); 2452 2433 } 2453 #endif 2454 2455 #if VPS_EXTN_DIRECT_REF_LAYERS 2434 2456 2435 Void TDecTop::setRefLayerParams( TComVPS* vps ) 2457 2436 { … … 2479 2458 } 2480 2459 } 2481 #endif2482 2460 2483 2461 #if OUTPUT_LAYER_SET_INDEX -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1145 r1148 143 143 #endif 144 144 #endif 145 #if VPS_EXTN_DIRECT_REF_LAYERS 145 146 146 Int m_numDirectRefLayers; 147 147 Int m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1]; 148 148 Int m_numSamplePredRefLayers; 149 149 Int m_numMotionPredRefLayers; 150 #endif 150 151 151 TComPic* m_cIlpPic[MAX_NUM_REF]; ///< Inter layer Prediction picture = upsampled picture 152 152 #if OUTPUT_LAYER_SET_INDEX … … 243 243 TDecTop* getLayerDec (UInt layerId) { return m_ppcTDecTop[layerId]; } 244 244 Void xDeriveSmallestLayerId(TComVPS* vps); 245 #if VPS_EXTN_DIRECT_REF_LAYERS 245 246 246 TDecTop* getRefLayerDec (UInt refLayerIdx); 247 247 Int getNumDirectRefLayers () { return m_numDirectRefLayers; } … … 258 258 259 259 Void setRefLayerParams( TComVPS* vps ); 260 #endif 260 261 261 #if AVC_BASE 262 262 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; }
Note: See TracChangeset for help on using the changeset viewer.