Changeset 1090 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 1 Jul 2015, 00:53:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1089 r1090 769 769 if( layer > 0 ) 770 770 { 771 #if REF_REGION_OFFSET772 771 #if AUXILIARY_PICTURES 773 772 Int subWidthC = ( m_acLayerCfg[layer].m_chromaFormatIDC == CHROMA_420 || m_acLayerCfg[layer].m_chromaFormatIDC == CHROMA_422 ) ? 2 : 1; … … 777 776 Int subHeightC = 2; 778 777 #endif 779 #endif780 778 m_acTEncTop[layer].setNumRefLayerLocationOffsets ( m_acLayerCfg[layer].m_numRefLayerLocationOffsets ); 781 779 for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++) … … 784 782 m_acTEncTop[layer].setRefLocationOffsetLayerId (i, m_acLayerCfg[layer].m_refLocationOffsetLayerId[i]); 785 783 #endif 786 #if REF_REGION_OFFSET787 784 m_acTEncTop[layer].setScaledRefLayerOffsetPresentFlag ( i, m_acLayerCfg[layer].m_scaledRefLayerOffsetPresentFlag[i] ); 788 785 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( subWidthC * m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], subWidthC * m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i], 789 786 subHeightC * m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], subHeightC * m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i]); 790 #else 791 #if P0312_VERT_PHASE_ADJ 792 m_acTEncTop[layer].setVertPhasePositionEnableFlag ( i, m_acLayerCfg[layer].m_vertPhasePositionEnableFlag[i] ); 793 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( 2*m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i], 794 2*m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i], m_acLayerCfg[layer].m_vertPhasePositionEnableFlag[i] ); 795 #else 796 m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( 2*m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i], 797 2*m_acLayerCfg[layer].m_scaledRefLayerTopOffset[i], 2*m_acLayerCfg[layer].m_scaledRefLayerBottomOffset[i]); 798 #endif 799 #endif 787 800 788 Int rlSubWidthC = ( m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_420 || m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_422 ) ? 2 : 1; 801 789 Int rlSubHeightC = ( m_acLayerCfg[i].m_chromaFormatIDC == CHROMA_420 ) ? 2 : 1; … … 804 792 m_acTEncTop[layer].getRefLayerWindow(i).setWindow ( rlSubWidthC * m_acLayerCfg[layer].m_refRegionLeftOffset[i], rlSubWidthC * m_acLayerCfg[layer].m_refRegionRightOffset[i], 805 793 rlSubHeightC * m_acLayerCfg[layer].m_refRegionTopOffset[i], rlSubHeightC * m_acLayerCfg[layer].m_refRegionBottomOffset[i]); 806 #if R0209_GENERIC_PHASE807 794 m_acTEncTop[layer].setResamplePhaseSetPresentFlag ( i, m_acLayerCfg[layer].m_resamplePhaseSetPresentFlag[i] ); 808 795 m_acTEncTop[layer].setPhaseHorLuma ( i, m_acLayerCfg[layer].m_phaseHorLuma[i] ); … … 810 797 m_acTEncTop[layer].setPhaseHorChroma ( i, m_acLayerCfg[layer].m_phaseHorChroma[i] ); 811 798 m_acTEncTop[layer].setPhaseVerChroma ( i, m_acLayerCfg[layer].m_phaseVerChroma[i] ); 812 #endif813 799 } 814 800 } … … 1846 1832 #endif 1847 1833 1848 #if O0215_PHASE_ALIGNMENT1849 vps->setPhaseAlignFlag( m_phaseAlignFlag );1850 #endif1851 1852 1834 #if P0300_ALT_OUTPUT_LAYER_FLAG 1853 1835 for (Int k = 0; k < MAX_VPS_LAYER_SETS_PLUS1; k++) … … 1859 1841 vps->setAltOuputLayerFlag( m_altOutputLayerFlag ); 1860 1842 #endif 1861 #endif1862 1863 #if P0312_VERT_PHASE_ADJ1864 Bool vpsVuiVertPhaseInUseFlag = false;1865 for( UInt layerId = 1; layerId < m_numLayers; layerId++ )1866 {1867 for( i = 0; i < m_acLayerCfg[layerId].m_numScaledRefLayerOffsets; i++ )1868 {1869 if( m_acTEncTop[layerId].getVertPhasePositionEnableFlag(i) )1870 {1871 vpsVuiVertPhaseInUseFlag = true;1872 break;1873 }1874 }1875 }1876 vps->setVpsVuiVertPhaseInUseFlag( vpsVuiVertPhaseInUseFlag );1877 1843 #endif 1878 1844
Note: See TracChangeset for help on using the changeset viewer.