Changeset 962 in 3DVCSoftware for branches/HTM-11.0-dev0/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 2 Jul 2014, 18:11:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-11.0-dev0/source/App/TAppEncoder/TAppEncTop.cpp
r950 r962 57 57 TAppEncTop::TAppEncTop() 58 58 { 59 60 #if H_MV_HLS_8 61 m_vps = new TComVPS; 62 #endif 59 63 #if !H_MV 60 64 m_iFrameRcvd = 0; … … 66 70 TAppEncTop::~TAppEncTop() 67 71 { 72 #if H_MV_HLS_8 73 if (m_vps) 74 { 75 delete m_vps; 76 }; 77 #endif 78 68 79 } 69 80 … … 71 82 { 72 83 #if H_MV 84 #if H_MV_HLS_8 85 TComVPS& vps = (*m_vps); 86 #else 73 87 TComVPS& vps = m_vps; 88 #endif 74 89 #else 75 90 TComVPS vps; … … 409 424 m_cTEncTop.setTMISEICameraIsoSpeedIdc ( m_cameraIsoSpeedIdc ); 410 425 m_cTEncTop.setTMISEICameraIsoSpeedValue ( m_cameraIsoSpeedValue ); 426 m_cTEncTop.setTMISEIExposureIndexIdc ( m_exposureIndexIdc ); 427 m_cTEncTop.setTMISEIExposureIndexValue ( m_exposureIndexValue ); 411 428 m_cTEncTop.setTMISEIExposureCompensationValueSignFlag ( m_exposureCompensationValueSignFlag ); 412 429 m_cTEncTop.setTMISEIExposureCompensationValueNumerator ( m_exposureCompensationValueNumerator ); … … 691 708 { 692 709 #if H_3D 710 #if H_MV_HLS_8 711 for ( Int viewIndex = 0; viewIndex < m_vps->getNumViews(); viewIndex++ ) 712 { 713 m_vps->initCamParaVPS( viewIndex, true, m_cCameraData.getCamParsCodedPrecision(), 714 m_cCameraData.getVaryingCameraParameters(), m_cCameraData.getCodedScale(), m_cCameraData.getCodedOffset() ); 715 #else 693 716 for ( Int viewIndex = 0; viewIndex < m_vps.getNumViews(); viewIndex++ ) 694 717 { 695 718 m_vps.initCamParaVPS( viewIndex, true, m_cCameraData.getCamParsCodedPrecision(), 696 719 m_cCameraData.getVaryingCameraParameters(), m_cCameraData.getCodedScale(), m_cCameraData.getCodedOffset() ); 720 #endif 697 721 } 698 722 #endif … … 1275 1299 1276 1300 Int defaultDirectDependencyType = -1; 1301 #if MV_FIX_DEP_TYPES 1302 Bool defaultDirectDependencyFlag = false; 1303 #else 1277 1304 Bool defaultDirectDependencyFlag = true; 1305 #endif 1306 1278 1307 for( Int depLayer = 1; depLayer < m_numberOfLayers; depLayer++ ) 1279 1308 { … … 1293 1322 { 1294 1323 defaultDirectDependencyType = curDirectDependencyType; 1324 #if MV_FIX_DEP_TYPES 1325 defaultDirectDependencyFlag = true; 1326 #endif 1295 1327 } 1296 1328 … … 1482 1514 Void TAppEncTop::xSetRepFormat( TComVPS& vps ) 1483 1515 { 1516 #if H_MV_HLS_8_PMS_Q0195_20 1517 vps.setRepFormatIdxPresentFlag( false ); 1518 #else 1484 1519 vps.setRepFormatIdxPresentFlag( true ); 1520 #endif 1485 1521 vps.setVpsNumRepFormatsMinus1 ( 0 ); 1486 1522 … … 1499 1535 vps.setRepFormat( 0 , repFormat ); 1500 1536 1537 #if !H_MV_HLS_8_PMS_Q0195_20 1501 1538 for(Int i = 0; i <= vps.getMaxLayersMinus1(); i++ ) 1502 1539 { 1503 1540 vps.setVpsRepFormatIdx( i , 0 ); 1504 1541 } 1542 #endif 1505 1543 } 1506 1544 … … 1513 1551 assert ( dpbSize != 0 ); 1514 1552 1553 #if H_MV_HLS_8_HRD_Q0102_08 1554 for( Int i = 0; i < vps.getNumOutputLayerSets(); i++ ) 1555 #else 1515 1556 for( Int i = 1; i < vps.getNumOutputLayerSets(); i++ ) 1557 #endif 1516 1558 { 1559 #if H_MV_HLS_8_MIS_Q0102_30 1560 Int currLsIdx = vps.olsIdxToLsIdx( i ); 1561 #endif 1517 1562 std::vector<Int> targetDecLayerIdList = vps.getTargetDecLayerIdList( i ); 1518 1563 Bool subLayerFlagInfoPresentFlag = false; 1519 1564 1565 #if H_MV_HLS_8_MIS_Q0102_30 1566 for( Int j = 0; j <= vps.getMaxSubLayersInLayerSetMinus1( currLsIdx ); j++ ) 1567 #else 1520 1568 for( Int j = 0; j <= vps.getMaxSubLayersInLayerSetMinus1( i ); j++ ) 1569 #endif 1521 1570 { 1522 1571 Bool subLayerDpbInfoPresentFlag = false; 1523 assert( vps.getNumSubDpbs( vps.getLayerSetIdxForOutputLayerSet( i ) ) == targetDecLayerIdList.size() ); 1524 for( Int k = 0; k < vps.getNumSubDpbs( vps.getLayerSetIdxForOutputLayerSet( i )); k++ ) 1572 #if H_MV_HLS_8_MIS_Q0102_30 || H_MV_HLS_8_DBP_NODOC_42 1573 assert( vps.getNumLayersInIdList( currLsIdx ) == targetDecLayerIdList.size() ); 1574 for( Int k = 0; k < vps.getNumLayersInIdList( currLsIdx ); k++ ) 1575 #else 1576 assert( vps.getNumSubDpbs( vps.olsIdxToLsIdx( i ) ) == targetDecLayerIdList.size() ); 1577 for( Int k = 0; k < vps.getNumSubDpbs( vps.olsIdxToLsIdx( i )); k++ ) 1578 #endif 1525 1579 { 1526 1580 Int layerIdInVps = vps.getLayerIdInVps( targetDecLayerIdList[k] ); … … 1587 1641 Int numAddOuputLayerSets = (Int) m_outputLayerSetIdx.size(); 1588 1642 // Additional output layer sets + profileLevelTierIdx 1589 vps.setDefaultTargetOutputLayerIdc ( m_defaultTargetOutputLayerIdc ); 1590 vps.setNumAddOutputLayerSets ( numAddOuputLayerSets ); 1643 vps.setDefaultOutputLayerIdc ( m_defaultOutputLayerIdc ); 1644 #if H_MV_HLS_8_SYN_39_19 1645 vps.setNumAddLayerSets ( 0 ); 1646 vps.setNumAddOlss ( numAddOuputLayerSets ); 1647 #else 1648 vps.setNumAddLayerSets ( numAddOuputLayerSets ); 1649 #endif 1591 1650 vps.initTargetLayerIdLists(); 1592 1651 … … 1595 1654 Int addOutLsIdx = olsIdx - m_vpsNumLayerSets; 1596 1655 1597 vps.set OutputLayerSetIdxMinus1( olsIdx, ( ( addOutLsIdx < 0 ) ? olsIdx : m_outputLayerSetIdx[ addOutLsIdx ] ) - 1 );1598 1599 std::vector<Int>& layerIdList = m_layerIdsInSets[ vps. getLayerSetIdxForOutputLayerSet( olsIdx ) ];1600 1601 if (vps.getDefault TargetOutputLayerIdc() == 2 || addOutLsIdx >= 0 )1656 vps.setLayerSetIdxForOlsMinus1( olsIdx, ( ( addOutLsIdx < 0 ) ? olsIdx : m_outputLayerSetIdx[ addOutLsIdx ] ) - 1 ); 1657 1658 std::vector<Int>& layerIdList = m_layerIdsInSets[ vps.olsIdxToLsIdx( olsIdx ) ]; 1659 1660 if (vps.getDefaultOutputLayerIdc() == 2 || addOutLsIdx >= 0 ) 1602 1661 { 1603 1662 for ( Int i = 0; i < layerIdList.size(); i++) … … 1637 1696 vps.setProfileLevelTierIdx( olsIdx, m_profileLevelTierIdx[ olsIdx ] ); 1638 1697 } 1639 1698 #if H_MV_HLS_7_VPS_P0300_27 1699 if ( vps.getNumOutputLayersInOutputLayerSet( olsIdx ) == 1 && 1700 vps.getNumDirectRefLayers( vps.getOlsHighestOutputLayerId( olsIdx ) ) ) 1701 { 1702 vps.setAltOutputLayerFlag( olsIdx , m_altOutputLayerFlag[ olsIdx ]); 1703 } 1704 else 1705 { 1706 vps.setAltOutputLayerFlag( olsIdx , false ); 1707 if ( m_altOutputLayerFlag[ olsIdx ] ) 1708 { 1709 printf( "\nWarning: Ignoring AltOutputLayerFlag for output layer set %d, since more than one output layer or no dependent layers.\n", olsIdx ); 1710 } 1711 } 1712 #else 1640 1713 vps.setAltOutputLayerFlag( olsIdx , false); 1641 } 1642 1714 #endif 1715 } 1643 1716 } 1644 1717
Note: See TracChangeset for help on using the changeset viewer.