Changeset 509 in SHVCSoftware
- Timestamp:
- 4 Dec 2013, 07:44:21 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibCommon/TypeDef.h
r507 r509 130 130 #define N0120_MAX_TID_REF_CFG 1 ///< set max_tid_il_ref_pics_plus1 and max_tid_ref_present_flag in the config. file (configuration setting) 131 131 #define O0225_MAX_TID_FOR_REF_LAYERS 1 132 #define O0225_TID_BASED_IL_RPS_DERIV 1 132 133 #endif 133 134 #if REF_IDX_MFM -
branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r508 r509 1907 1907 else 1908 1908 { 1909 #if O0225_TID_BASED_IL_RPS_DERIV 1910 if(rpcSlice->getVPS()->getMaxTidIlRefPicsPlus1(0,rpcSlice->getLayerId()) > rpcSlice->getTLayer()) 1911 { 1912 #endif 1909 1913 rpcSlice->setActiveNumILRRefIdx(1); 1910 1914 rpcSlice->setInterLayerPredLayerIdc(0,0); 1915 #if O0225_TID_BASED_IL_RPS_DERIV 1916 } 1917 #endif 1911 1918 } 1912 1919 } … … 1914 1921 #if ILP_SSH_SIG 1915 1922 #if ILP_SSH_SIG_FIX 1916 else if( rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() == true )1923 else if( rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() == true && (rpcSlice->getLayerId() > 0 )) 1917 1924 #else 1918 1925 else if( rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() == false ) … … 1920 1927 { 1921 1928 rpcSlice->setInterLayerPredEnabledFlag(true); 1929 1930 #if O0225_TID_BASED_IL_RPS_DERIV 1931 Int numRefLayerPics = 0; 1932 Int i = 0; 1933 Int refLayerPicIdc [MAX_VPS_LAYER_ID_PLUS1]; 1934 for(i = 0, numRefLayerPics = 0; i < rpcSlice->getNumILRRefIdx(); i++ ) 1935 { 1936 if(rpcSlice->getVPS()->getMaxTidIlRefPicsPlus1(rpcSlice->getVPS()->getLayerIdInVps(i),rpcSlice->getLayerId()) > rpcSlice->getTLayer()) 1937 { 1938 refLayerPicIdc[ numRefLayerPics++ ] = i; 1939 } 1940 } 1941 rpcSlice->setActiveNumILRRefIdx(numRefLayerPics); 1942 for( i = 0; i < rpcSlice->getActiveNumILRRefIdx(); i++ ) 1943 { 1944 rpcSlice->setInterLayerPredLayerIdc(refLayerPicIdc[i],i); 1945 } 1946 #else 1922 1947 rpcSlice->setActiveNumILRRefIdx(rpcSlice->getNumILRRefIdx()); 1923 1948 for( Int i = 0; i < rpcSlice->getActiveNumILRRefIdx(); i++ ) … … 1925 1950 rpcSlice->setInterLayerPredLayerIdc(i,i); 1926 1951 } 1952 #endif 1927 1953 } 1928 1954 #endif -
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r507 r509 836 836 pcSlice->setInterLayerPredLayerIdc( interLayerPredLayerIdcTmp[i], i ); 837 837 } 838 839 #if !O0225_TID_BASED_IL_RPS_DERIV 838 840 pcSlice->setActiveNumILRRefIdx( activeNumILRRefIdxTmp ); 841 #endif 839 842 if ( pcSlice->getActiveNumILRRefIdx() == 0 ) 840 843 {
Note: See TracChangeset for help on using the changeset viewer.