Changeset 494 in SHVCSoftware for trunk/source/Lib/TLibEncoder/TEncTop.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/SHM-4.0-dev (added) merged: 444-493
- Property svn:mergeinfo changed
-
trunk/source
- Property svn:mergeinfo changed
/branches/SHM-4.0-dev/source (added) merged: 445-471,473-479,481-486,488-493
- Property svn:mergeinfo changed
-
trunk/source/Lib/TLibEncoder/TEncTop.cpp
r442 r494 88 88 m_bMFMEnabledFlag = false; 89 89 #endif 90 #if SCALED_REF_LAYER_OFFSETS91 90 m_numScaledRefLayerOffsets = 0; 92 #endif93 #endif94 91 #if POC_RESET_FLAG 95 92 m_pocAdjustmentValue = 0; 96 93 #endif 94 #endif //SVC_EXTENSION 97 95 } 98 96 … … 117 115 m_cGOPEncoder. create(); 118 116 #endif 117 #if AUXILIARY_PICTURES 118 m_cSliceEncoder. create( getSourceWidth(), getSourceHeight(), m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth ); 119 #else 119 120 m_cSliceEncoder. create( getSourceWidth(), getSourceHeight(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth ); 121 #endif 120 122 m_cCuEncoder. create( g_uiMaxCUDepth, g_uiMaxCUWidth, g_uiMaxCUHeight ); 121 123 if (m_bUseSAO) … … 175 177 } 176 178 } 179 180 #if LAYER_CTB 181 memcpy(g_auiLayerZscanToRaster[m_layerId], g_auiZscanToRaster, sizeof( g_auiZscanToRaster ) ); 182 memcpy(g_auiLayerRasterToZscan[m_layerId], g_auiRasterToZscan, sizeof( g_auiRasterToZscan ) ); 183 memcpy(g_auiLayerRasterToPelX[m_layerId], g_auiRasterToPelX, sizeof( g_auiRasterToPelX ) ); 184 memcpy(g_auiLayerRasterToPelY[m_layerId], g_auiRasterToPelY, sizeof( g_auiRasterToPelY ) ); 185 #endif 177 186 } 178 187 … … 601 610 else 602 611 { 612 #if AUXILIARY_PICTURES 613 rpcPicYuvRec->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth ); 614 #else 603 615 rpcPicYuvRec->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth ); 616 #endif 604 617 } 605 618 rcListPicYuvRecOut.pushBack( rpcPicYuvRec ); … … 801 814 #endif 802 815 816 #if AUXILIARY_PICTURES 817 #if SVC_UPSAMPLING 818 pcEPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , 819 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS); 820 #else 821 pcEPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , 822 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 823 #endif 824 #else 803 825 #if SVC_UPSAMPLING 804 826 pcEPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , … … 807 829 pcEPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , 808 830 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 831 #endif 809 832 #endif 810 833 rpcPic = pcEPic; … … 842 865 #endif 843 866 867 #if AUXILIARY_PICTURES 868 #if SVC_UPSAMPLING 869 rpcPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 870 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS); 871 #else 872 rpcPic->create( m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 873 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 874 #endif 875 #else 844 876 #if SVC_UPSAMPLING 845 877 rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, … … 849 881 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 850 882 #endif 883 #endif 851 884 } 852 885 … … 871 904 #if SVC_EXTENSION 872 905 m_cSPS.setLayerId(m_layerId); 873 #endif874 906 #if REF_IDX_MFM 875 907 #if !M0457_COL_PICTURE_SIGNALING … … 877 909 #endif 878 910 #endif 879 #if SCALED_REF_LAYER_OFFSETS880 911 m_cSPS.setNumScaledRefLayerOffsets(m_numScaledRefLayerOffsets); 881 912 for(Int i = 0; i < m_cSPS.getNumScaledRefLayerOffsets(); i++) … … 883 914 m_cSPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; 884 915 } 885 #endif 916 #endif //SVC_EXTENSION 886 917 ProfileTierLevel& profileTierLevel = *m_cSPS.getPTL()->getGeneralPTL(); 887 918 profileTierLevel.setLevelIdc(m_level); … … 914 945 m_cSPS.setMaxCUHeight ( g_uiMaxCUHeight ); 915 946 m_cSPS.setMaxCUDepth ( g_uiMaxCUDepth ); 947 #if AUXILIARY_PICTURES 948 m_cSPS.setChromaFormatIdc( m_chromaFormatIDC); 949 #endif 916 950 917 951 Int minCUSize = m_cSPS.getMaxCUWidth() >> ( m_cSPS.getMaxCUDepth()-g_uiAddCUDepth ); … … 1188 1222 for( Int i = 0; i < getGOPSize()+m_extraRPSs; i++) 1189 1223 { 1190 #if FINAL_RPL_CHANGE_N00821191 GOPEntry ge = m_ppcTEncTop[m_cSPS.getLayerId()]->getGOPEntry(i);1192 #else1193 1224 GOPEntry ge = getGOPEntry(i); 1194 #endif1195 1225 rps = rpsList->getReferencePictureSet(i); 1196 1226 rps->setNumberOfPictures(ge.m_numRefPics); … … 1536 1566 #endif 1537 1567 1538 #if SVC_EXTENSION1539 1568 #if !REPN_FORMAT_IN_VPS 1540 1569 Void TEncTop::xInitILRP() … … 1559 1588 m_cIlpPic[j] = new TComPic; 1560 1589 #if SVC_UPSAMPLING 1590 #if AUXILIARY_PICTURES 1591 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true); 1592 #else 1561 1593 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true); 1594 #endif 1562 1595 #else 1563 1596 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true); … … 1611 1644 m_cIlpPic[j] = new TComPic; 1612 1645 #if SVC_UPSAMPLING 1646 #if AUXILIARY_PICTURES 1647 m_cIlpPic[j]->create(picWidth, picHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true); 1648 #else 1613 1649 m_cIlpPic[j]->create(picWidth, picHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true); 1650 #endif 1614 1651 #else 1615 1652 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true); … … 1624 1661 } 1625 1662 #endif 1626 Void TEncTop::setILRPic(TComPic *pcPic) 1627 { 1628 for( Int i = 0; i < pcPic->getSlice(0)->getActiveNumILRRefIdx(); i++ ) 1629 { 1630 Int refLayerIdc = pcPic->getSlice(0)->getInterLayerPredLayerIdc(i); 1631 1632 if(m_cIlpPic[refLayerIdc]) 1633 { 1634 m_cIlpPic[refLayerIdc]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(refLayerIdc), m_cIlpPic[refLayerIdc]->getPicYuvRec()); 1635 m_cIlpPic[refLayerIdc]->getSlice(0)->setPOC(pcPic->getPOC()); 1636 m_cIlpPic[refLayerIdc]->setLayerId(pcPic->getSlice(0)->getBaseColPic(refLayerIdc)->getLayerId()); //set reference layerId 1637 m_cIlpPic[refLayerIdc]->getPicYuvRec()->setBorderExtension(false); 1638 m_cIlpPic[refLayerIdc]->getPicYuvRec()->extendPicBorder(); 1639 for (Int j=0; j<m_cIlpPic[refLayerIdc]->getPicSym()->getNumberOfCUsInFrame(); j++) // set reference CU layerId 1640 { 1641 m_cIlpPic[refLayerIdc]->getPicSym()->getCU(j)->setLayerId(m_cIlpPic[refLayerIdc]->getLayerId()); 1642 } 1643 } 1644 } 1645 } 1646 #endif 1647 #endif 1663 #endif //SVC_EXTENSION 1648 1664 //! \}
Note: See TracChangeset for help on using the changeset viewer.