Changeset 1103 in 3DVCSoftware for branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 5 Nov 2014, 11:34:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TComSlice.cpp
r1100 r1103 1947 1947 m_layerIdInNuh [i] = ( i == 0 ) ? 0 : -1; 1948 1948 m_numDirectRefLayers[i] = 0; 1949 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 1950 #if H_3D 1951 m_numRefListLayers[i] = 0; 1952 #endif 1953 #endif 1949 1954 m_vpsRepFormatIdx [i] = 0; 1950 1955 m_pocLsbNotPresentFlag[i] = 0; … … 1965 1970 m_dependencyFlag [i][j] = false; 1966 1971 m_idDirectRefLayer[i][j] = -1; 1972 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 1973 #if H_3D 1974 m_idRefListLayer[i][j] = -1; 1975 #endif 1976 #endif 1967 1977 m_idPredictedLayer[i][j] = -1; 1968 1978 m_idRefLayer [i][j] = -1; … … 2103 2113 Int iNuhLId = getLayerIdInNuh( i ); 2104 2114 Int d = 0; 2115 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 2116 #if H_3D 2117 Int l = 0; 2118 #endif 2119 #endif 2105 2120 Int r = 0; 2106 2121 Int p = 0; 2122 2107 2123 for( Int j = 0; j <= getMaxLayersMinus1(); j++ ) 2108 2124 { … … 2112 2128 m_idDirectRefLayer[iNuhLId][d++] = jNuhLid; 2113 2129 } 2130 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 2131 #if H_3D 2132 if( getDirectDependencyFlag( i , j ) && ( getDepthId( iNuhLId ) == getDepthId( jNuhLid ) )) 2133 { 2134 m_idRefListLayer [iNuhLId][l++] = jNuhLid; 2135 } 2136 #endif 2137 #endif 2138 2114 2139 if( getDependencyFlag( i , j ) ) 2115 2140 { … … 2122 2147 } 2123 2148 m_numDirectRefLayers[ iNuhLId ] = d; 2149 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 2150 #if H_3D 2151 m_numRefListLayers[ iNuhLId ] = l; 2152 #endif 2153 #endif 2154 2124 2155 m_numRefLayers [ iNuhLId ] = r; 2125 2156 m_numPredictedLayers[ iNuhLId ] = p; … … 2566 2597 xPrintArray( "IdRefLayer" , getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefLayers, m_idRefLayer, true ); 2567 2598 xPrintArray( "IdDirectRefLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numDirectRefLayers, m_idDirectRefLayer, true ); 2599 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 2600 #if H_3D 2601 xPrintArray( "IdRefListLayer", getMaxLayersMinus1() + 1, m_layerIdInNuh, m_numRefListLayers, m_idRefListLayer, true ); 2602 #endif 2603 #endif 2604 2568 2605 std::cout << std::endl; 2569 2606 } … … 3584 3621 { 3585 3622 TComVPS* vps = getVPS(); 3623 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 3624 #if H_3D 3625 Int refLayerIdx = vps->getLayerIdInVps( vps->getIdRefListLayer( getLayerId(), i ) ); 3626 #else 3586 3627 Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) ); 3628 #endif 3629 #else 3630 Int refLayerIdx = vps->getLayerIdInVps( vps->getIdDirectRefLayer( getLayerId(), i ) ); 3631 #endif 3587 3632 3588 3633 Bool refLayerPicFlag = ( vps->getSubLayersVpsMaxMinus1( refLayerIdx ) >= getTLayer() ) && ( getTLayer() == 0 ) && … … 3596 3641 Int refLayerPicIdc = -1; 3597 3642 Int curj = 0; 3643 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 3644 #if H_3D 3645 for( Int i = 0; i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ ) 3646 #else 3598 3647 for( Int i = 0; i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ ) 3648 #endif 3649 #else 3650 for( Int i = 0; i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ ) 3651 #endif 3599 3652 { 3600 3653 if( getRefLayerPicFlag( i ) ) … … 3617 3670 { 3618 3671 Int numRefLayerPics = 0; 3672 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 3673 #if H_3D 3674 for( Int i = 0; i < getVPS()->getNumRefListLayers( getLayerId()) ; i++ ) 3675 #else 3619 3676 for( Int i = 0; i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ ) 3677 #endif 3678 #else 3679 for( Int i = 0; i < getVPS()->getNumDirectRefLayers( getLayerId()) ; i++ ) 3680 #endif 3620 3681 { 3621 3682 numRefLayerPics += getRefLayerPicFlag( i ); … … 3642 3703 numActiveRefLayerPics = 0; 3643 3704 } 3705 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 3706 #if H_3D 3707 else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumRefListLayers( getLayerId() ) == 1 ) 3708 #else 3644 3709 else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 ) 3710 #endif 3711 #else 3712 else if( getVPS()->getMaxOneActiveRefLayerFlag() || getVPS()->getNumDirectRefLayers( getLayerId() ) == 1 ) 3713 #endif 3645 3714 { 3646 3715 numActiveRefLayerPics = 1; … … 3655 3724 Int TComSlice::getRefPicLayerId( Int i ) 3656 3725 { 3726 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107 3727 #if H_3D 3728 return getVPS()->getIdRefListLayer( getLayerId(), getInterLayerPredLayerIdc( i ) ); 3729 #else 3657 3730 return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) ); 3731 #endif 3732 #else 3733 return getVPS()->getIdDirectRefLayer( getLayerId(), getInterLayerPredLayerIdc( i ) ); 3734 #endif 3658 3735 } 3659 3736
Note: See TracChangeset for help on using the changeset viewer.