Changeset 1063 in 3DVCSoftware for branches/HTM-12.0-dev1/source/App
- Timestamp:
- 9 Oct 2014, 12:35:18 (11 years ago)
- Location:
- branches/HTM-12.0-dev1/source/App
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.0-dev1/source/App/TAppDecoder/TAppDecTop.cpp
r1060 r1063 1155 1155 Int curLayerId = m_tDecTop[dIdx]->getLayerId(); 1156 1156 Int curLayerIdxInVps = m_vps->getLayerIdInNuh( curLayerId ); 1157 #if H_MV_HLS10_REF_PRED_LAYERS 1158 if ( m_vps->getDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) ) 1159 #else 1157 1160 if ( m_vps->getInDirectDependencyFlag(optLayerIdxInVps, curLayerIdxInVps ) ) 1161 #endif 1158 1162 { 1159 1163 TComPic* curPic = m_ivPicLists.getPic( curLayerId, pocLastPic ); -
branches/HTM-12.0-dev1/source/App/TAppEncoder/TAppEncTop.cpp
r1060 r1063 1591 1591 } 1592 1592 1593 #if H_MV_HLS10_PTL 1594 Void TAppEncTop::xSetProfileTierLevel(TComVPS& vps, Int profileTierLevelIdx, Int subLayer, Profile::Name profile, Level::Name level, Level::Tier tier, Bool progressiveSourceFlag, Bool interlacedSourceFlag, Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag, Bool inbldFlag) 1595 { 1596 TComPTL* ptlStruct = vps.getPTL( profileTierLevelIdx ); 1597 assert( ptlStruct != NULL ); 1598 1599 ProfileTierLevel* ptl; 1600 if ( subLayer == -1 ) 1601 { 1602 ptl = ptlStruct->getGeneralPTL(); 1603 } 1604 else 1605 { 1606 ptl = ptlStruct->getSubLayerPTL( subLayer ); 1607 } 1608 1609 assert( ptl != NULL ); 1610 1611 1612 ptl->setProfileIdc( profile ); 1613 ptl->setTierFlag ( tier ); 1614 ptl->setLevelIdc ( level ); 1615 ptl->setProfileCompatibilityFlag( profile, true ); 1616 1617 switch ( profile ) 1618 { 1619 case Profile::MAIN: 1620 break; 1621 case Profile::MULTIVIEWMAIN: 1622 #if H_3D 1623 case Profile::MAIN3D: 1624 #endif 1625 ptl->setMax12bitConstraintFlag ( true ); 1626 ptl->setMax12bitConstraintFlag ( true ); 1627 ptl->setMax10bitConstraintFlag ( true ); 1628 ptl->setMax8bitConstraintFlag ( true ); 1629 ptl->setMax422chromaConstraintFlag ( true ); 1630 ptl->setMax420chromaConstraintFlag ( true ); 1631 ptl->setMaxMonochromeConstraintFlag ( false ); 1632 ptl->setIntraConstraintFlag ( false ); 1633 ptl->setOnePictureOnlyConstraintFlag( false ); 1634 ptl->setLowerBitRateConstraintFlag ( true ); 1635 break; 1636 default: 1637 assert( 0 ); // other profiles currently not supported 1638 break; 1639 } 1640 } 1641 #endif 1593 1642 1594 1643 Void TAppEncTop::xSetRepFormat( TComVPS& vps ) … … 2072 2121 } 2073 2122 } 2074 #endif 2123 #if H_MV_HLS10_GEN_FIX 2124 Bool TAppEncTop::xLayerIdInTargetEncLayerIdList(Int nuhLayerId) 2125 { 2126 return ( std::find(m_targetEncLayerIdList.begin(), m_targetEncLayerIdList.end(), nuhLayerId) != m_targetEncLayerIdList.end()) ; 2127 } 2128 #endif 2129 2130 2131 #endif 2132 2133 2075 2134 #if H_3D 2076 2135 Void TAppEncTop::xSetVPSExtension2( TComVPS& vps ) -
branches/HTM-12.0-dev1/source/App/TAppEncoder/TAppEncTop.h
r1054 r1063 138 138 Bool progressiveSourceFlag, Bool interlacedSourceFlag, 139 139 Bool nonPackedConstraintFlag, Bool frameOnlyConstraintFlag, 140 Bool inbldFlag ) 141 { 142 TComPTL* ptlStruct = vps.getPTL( profileTierLevelIdx ); 143 assert( ptlStruct != NULL ); 144 145 ProfileTierLevel* ptl; 146 if ( subLayer == -1 ) 147 { 148 ptl = ptlStruct->getGeneralPTL(); 149 } 150 else 151 { 152 ptl = ptlStruct->getSubLayerPTL( subLayer ); 153 } 154 155 assert( ptl != NULL ); 156 157 158 ptl->setProfileIdc( profile ); 159 ptl->setTierFlag ( tier ); 160 ptl->setLevelIdc ( level ); 161 ptl->setProfileCompatibilityFlag( profile, true ); 162 163 switch ( profile ) 164 { 165 case Profile::MAIN: 166 break; 167 case Profile::MULTIVIEWMAIN: 168 #if H_3D 169 case Profile::MAIN3D: 170 #endif 171 ptl->setMax12bitConstraintFlag ( true ); 172 ptl->setMax12bitConstraintFlag ( true ); 173 ptl->setMax10bitConstraintFlag ( true ); 174 ptl->setMax8bitConstraintFlag ( true ); 175 ptl->setMax422chromaConstraintFlag ( true ); 176 ptl->setMax420chromaConstraintFlag ( true ); 177 ptl->setMaxMonochromeConstraintFlag ( false ); 178 ptl->setIntraConstraintFlag ( false ); 179 ptl->setOnePictureOnlyConstraintFlag( false ); 180 ptl->setLowerBitRateConstraintFlag ( true ); 181 break; 182 default: 183 assert( 0 ); // other profiles currently not supported 184 break; 185 } 186 } 187 188 140 Bool inbldFlag ); 189 141 #endif 190 142 Void xSetRepFormat ( TComVPS& vps ); … … 194 146 Int xGetMax( std::vector<Int>& vec); 195 147 #if H_MV_HLS10_GEN_FIX 196 Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId ) 197 { 198 return ( std::find(m_targetEncLayerIdList.begin(), m_targetEncLayerIdList.end(), nuhLayerId) != m_targetEncLayerIdList.end()) ; 199 } 148 Bool xLayerIdInTargetEncLayerIdList( Int nuhLayerId ); 200 149 #endif 201 150 #endif
Note: See TracChangeset for help on using the changeset viewer.