Changeset 1169 in 3DVCSoftware for branches/HTM-13.1-dev0/source/App/TAppEncoder
- Timestamp:
- 5 Apr 2015, 22:37:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-13.1-dev0/source/App/TAppEncoder/TAppEncTop.cpp
r1164 r1169 1681 1681 Void TAppEncTop::xSetRepFormat( TComVPS& vps ) 1682 1682 { 1683 1684 #if H_3D_DISABLE_CHROMA 1685 Bool anyDepth = false; 1686 for ( Int i = 0; i < m_numberOfLayers; i++ ) 1687 { 1688 vps.setVpsRepFormatIdx( i, m_depthFlag[ i ] ? 1 : 0 ); 1689 anyDepth = anyDepth || m_depthFlag[ i ]; 1690 } 1691 1692 vps.setRepFormatIdxPresentFlag( anyDepth ); 1693 vps.setVpsNumRepFormatsMinus1 ( anyDepth ? 1 : 0 ); 1694 1695 for ( Int j = 0; j <= vps.getVpsNumRepFormatsMinus1(); j++ ) 1696 { 1697 TComRepFormat* repFormat = new TComRepFormat; 1698 1699 repFormat->setBitDepthVpsChromaMinus8 ( g_bitDepthC - 8 ); 1700 repFormat->setBitDepthVpsLumaMinus8 ( g_bitDepthY - 8 ); 1701 repFormat->setChromaFormatVpsIdc ( j == 1 ? CHROMA_400 : CHROMA_420 ); 1702 repFormat->setPicHeightVpsInLumaSamples ( m_iSourceHeight ); 1703 repFormat->setPicWidthVpsInLumaSamples ( m_iSourceWidth ); 1704 repFormat->setChromaAndBitDepthVpsPresentFlag( true ); 1705 // ToDo not supported yet. 1706 //repFormat->setSeparateColourPlaneVpsFlag( ); 1707 #if H_MV_FIX_CONF_WINDOW 1708 Bool conformanceWindowVpsFlag = ( m_confWinBottom != 0 ) || ( m_confWinRight != 0 ) || ( m_confWinTop != 0 ) || ( m_confWinBottom != 0 ); 1709 repFormat->setConformanceWindowVpsFlag( conformanceWindowVpsFlag ); 1710 if ( conformanceWindowVpsFlag ) 1711 { 1712 repFormat->setConfWinVpsLeftOffset ( m_confWinLeft / TComSPS::getWinUnitX( repFormat->getChromaFormatVpsIdc() ) ); 1713 repFormat->setConfWinVpsRightOffset ( m_confWinRight / TComSPS::getWinUnitX( repFormat->getChromaFormatVpsIdc() ) ); 1714 repFormat->setConfWinVpsTopOffset ( m_confWinTop / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() ) ); 1715 repFormat->setConfWinVpsBottomOffset ( m_confWinBottom / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() ) ); 1716 } 1717 #else 1718 repFormat->setConformanceWindowVpsFlag( true ); 1719 repFormat->setConfWinVpsLeftOffset ( m_confWinLeft / TComSPS::getWinUnitX( repFormat->getChromaFormatVpsIdc() ) ); 1720 repFormat->setConfWinVpsRightOffset ( m_confWinRight / TComSPS::getWinUnitX( repFormat->getChromaFormatVpsIdc() ) ); 1721 repFormat->setConfWinVpsTopOffset ( m_confWinTop / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() ) ); 1722 repFormat->setConfWinVpsBottomOffset ( m_confWinBottom / TComSPS::getWinUnitY( repFormat->getChromaFormatVpsIdc() ) ); 1723 #endif 1724 assert( vps.getRepFormat( j ) == NULL ); 1725 vps.setRepFormat( j , repFormat ); 1726 }; 1727 1728 1729 #else 1683 1730 vps.setRepFormatIdxPresentFlag( false ); 1684 1731 vps.setVpsNumRepFormatsMinus1 ( 0 ); … … 1709 1756 assert( vps.getRepFormat( 0 ) == NULL ); 1710 1757 vps.setRepFormat( 0 , repFormat ); 1758 #endif 1711 1759 } 1712 1760
Note: See TracChangeset for help on using the changeset viewer.