Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Jul 2015, 20:57:55 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1199 r1203 587 587 if (conf.getWindowEnabledFlag()) 588 588 { 589 #if REPN_FORMAT_IN_VPS589 #if SVC_EXTENSION 590 590 WRITE_UVLC( conf.getWindowLeftOffset(), "conf_win_left_offset" ); 591 591 WRITE_UVLC( conf.getWindowRightOffset(), "conf_win_right_offset" ); … … 1606 1606 Int iDQp = pcCU->getQP( uiAbsPartIdx ) - pcCU->getRefQP( uiAbsPartIdx ); 1607 1607 1608 #if REPN_FORMAT_IN_VPS1608 #if SVC_EXTENSION 1609 1609 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 1610 1610 #else … … 2132 2132 } 2133 2133 2134 #if REPN_FORMAT_IN_VPS2135 2134 // The value of vps_num_rep_formats_minus1 shall be in the range of 0 to 255, inclusive. 2136 2135 assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 ); … … 2166 2165 } 2167 2166 } 2168 #endif2169 2167 2170 2168 WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag"); … … 2230 2228 } 2231 2229 2232 #if REPN_FORMAT_IN_VPS2233 2230 Void TEncCavlc::codeRepFormat( RepFormat *repFormat ) 2234 2231 { … … 2263 2260 } 2264 2261 } 2265 #endif 2262 2266 2263 #if VPS_DPB_SIZE_TABLE 2267 2264 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.h
r1185 r1203 160 160 Void codeVPSExtension ( TComVPS* pcVPS ); 161 161 Void codeVPSVUI ( TComVPS *vps ); 162 #if REPN_FORMAT_IN_VPS163 162 Void codeRepFormat ( RepFormat *repFormat ); 164 #endif165 163 #if VPS_DPB_SIZE_TABLE 166 164 Void codeVpsDpbSizeTable (TComVPS *vps); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1150 r1203 1163 1163 1164 1164 #if SVC_EXTENSION 1165 #if REPN_FORMAT_IN_VPS1166 1165 struct RepFormatCfg 1167 1166 { … … 1182 1181 }; 1183 1182 std::istringstream &operator>>(std::istringstream &in, RepFormatCfg &repFormatCfg); 1184 #endif1185 1183 #endif //SVC_EXTENSION 1186 1184 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1029 r1203 410 410 { 411 411 Int idQP = m_pcEncCfg->getMaxDeltaQP(); 412 #if REPN_FORMAT_IN_VPS412 #if SVC_EXTENSION 413 413 iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP ); 414 414 iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP ); … … 446 446 TComSlice * pcSlice = rpcTempCU->getPic()->getSlice(rpcTempCU->getPic()->getCurrSliceIdx()); 447 447 // We need to split, so don't try these modes. 448 #if REPN_FORMAT_IN_VPS448 #if SVC_EXTENSION 449 449 if ( ( uiRPelX < rpcBestCU->getSlice()->getPicWidthInLumaSamples() ) && 450 450 ( uiBPelY < rpcBestCU->getSlice()->getPicHeightInLumaSamples() ) ) … … 808 808 { 809 809 Int idQP = m_pcEncCfg->getMaxDeltaQP(); 810 #if REPN_FORMAT_IN_VPS810 #if SVC_EXTENSION 811 811 iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP ); 812 812 iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP ); … … 858 858 pcSubTempPartCU->initSubCU( rpcTempCU, uiPartUnitIdx, uhNextDepth, iQP ); // clear sub partition datas or init. 859 859 860 #if REPN_FORMAT_IN_VPS860 #if SVC_EXTENSION 861 861 if( ( pcSubBestPartCU->getCUPelX() < pcSlice->getPicWidthInLumaSamples() ) && ( pcSubBestPartCU->getCUPelY() < pcSlice->getPicHeightInLumaSamples() ) ) 862 862 #else … … 1032 1032 iQpOffset = Int(floor( dQpOffset + 0.49999 )); 1033 1033 } 1034 #if REPN_FORMAT_IN_VPS1034 #if SVC_EXTENSION 1035 1035 return Clip3(-pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQp+iQpOffset ); 1036 1036 #else … … 1063 1063 #endif 1064 1064 1065 #if REPN_FORMAT_IN_VPS1065 #if SVC_EXTENSION 1066 1066 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 1067 1067 #else … … 1093 1093 uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; 1094 1094 uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 1095 #if REPN_FORMAT_IN_VPS 1095 1096 #if SVC_EXTENSION 1096 1097 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) ) 1097 1098 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1201 r1203 2237 2237 } 2238 2238 2239 #if REPN_FORMAT_IN_VPS2239 #if SVC_EXTENSION 2240 2240 sliceQP = Clip3( -pcSlice->getQpBDOffsetY(), MAX_QP, sliceQP ); 2241 2241 #else … … 3016 3016 const Int minCuWidth = pcPic->getMinCUWidth(); 3017 3017 const Int minCuHeight = pcPic->getMinCUHeight(); 3018 #if REPN_FORMAT_IN_VPS3018 #if SVC_EXTENSION 3019 3019 const Int paddedWidth = ((pcSlice->getPicWidthInLumaSamples() + minCuWidth - 1) / minCuWidth) * minCuWidth; 3020 3020 const Int paddedHeight= ((pcSlice->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
r1029 r1203 876 876 Int iDQp = pcCU->getQP( uiAbsPartIdx ) - pcCU->getRefQP( uiAbsPartIdx ); 877 877 878 #if REPN_FORMAT_IN_VPS878 #if SVC_EXTENSION 879 879 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 880 880 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1201 r1203 4696 4696 } 4697 4697 4698 #if REPN_FORMAT_IN_VPS4698 #if SVC_EXTENSION 4699 4699 qpMin = bHighPass ? Clip3( -pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, pcCU->getQP(0) - m_iMaxDeltaQP ) : pcCU->getQP( 0 ); 4700 4700 qpMax = bHighPass ? Clip3( -pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, pcCU->getQP(0) + m_iMaxDeltaQP ) : pcCU->getQP( 0 ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1201 r1203 339 339 if(eSliceType!=I_SLICE) 340 340 { 341 #if REPN_FORMAT_IN_VPS341 #if SVC_EXTENSION 342 342 if (!(( m_pcCfg->getMaxDeltaQP() == 0 ) && (dQP == -rpcSlice->getQpBDOffsetY() ) && (rpcSlice->getPPS()->getTransquantBypassEnableFlag()))) 343 343 #else … … 413 413 } 414 414 415 #if REPN_FORMAT_IN_VPS415 #if SVC_EXTENSION 416 416 iQP = max( -rpcSlice->getQpBDOffsetY(), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) ); 417 417 #else … … 474 474 { 475 475 dQP = xGetQPValueAccordingToLambda( dLambda ); 476 #if REPN_FORMAT_IN_VPS476 #if SVC_EXTENSION 477 477 iQP = max( -rpcSlice->getQpBDOffsetY(), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) ); 478 478 #else … … 721 721 pCtu->initCtu( pcPic, ctuRsAddr ); 722 722 723 #if REPN_FORMAT_IN_VPS723 #if SVC_EXTENSION 724 724 Int height = min( pcSlice->getSPS()->getMaxCUHeight(),pcSlice->getPicHeightInLumaSamples() - ctuRsAddr / pcPic->getFrameWidthInCtus() * pcSlice->getSPS()->getMaxCUHeight() ); 725 725 Int width = min( pcSlice->getSPS()->getMaxCUWidth(),pcSlice->getPicWidthInLumaSamples() - ctuRsAddr % pcPic->getFrameWidthInCtus() * pcSlice->getSPS()->getMaxCUWidth() ); … … 897 897 } 898 898 899 #if REPN_FORMAT_IN_VPS899 #if SVC_EXTENSION 900 900 estQP = Clip3( -pcSlice->getQpBDOffsetY(), MAX_QP, estQP ); 901 901 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1200 r1203 813 813 for (UInt channelType = 0; channelType < MAX_NUM_CHANNEL_TYPE; channelType++) 814 814 { 815 #if REPN_FORMAT_IN_VPS815 #if SVC_EXTENSION 816 816 m_cSPS.setBitDepth (ChannelType(channelType), m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) ); 817 817 m_cSPS.setQpBDOffset (ChannelType(channelType), (6 * (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) - 8))); … … 1408 1408 } 1409 1409 1410 #if !REPN_FORMAT_IN_VPS1411 Void TEncTop::xInitILRP()1412 {1413 if(m_layerId>0)1414 {1415 g_bitDepthY = m_cSPS.getBitDepthY();1416 g_bitDepthC = m_cSPS.getBitDepthC();1417 g_uiMaxCUWidth = m_cSPS.getMaxCUWidth();1418 g_uiMaxCUHeight = m_cSPS.getMaxCUHeight();1419 g_uiMaxCUDepth = m_cSPS.getMaxCUDepth();1420 g_uiAddCUDepth = max (0, m_cSPS.getLog2MinCodingBlockSize() - (Int)m_cSPS.getQuadtreeTULog2MinSize() );1421 1422 Int numReorderPics[MAX_TLAYER];1423 Window &conformanceWindow = m_cSPS.getConformanceWindow();1424 Window defaultDisplayWindow = m_cSPS.getVuiParametersPresentFlag() ? m_cSPS.getVuiParameters()->getDefaultDisplayWindow() : Window();1425 1426 if (m_cIlpPic[0] == NULL)1427 {1428 for (Int j=0; j < m_numLayer; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]1429 {1430 m_cIlpPic[j] = new TComPic;1431 #if AUXILIARY_PICTURES1432 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true);1433 #else1434 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true);1435 #endif1436 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)1437 {1438 m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);1439 }1440 }1441 }1442 }1443 }1444 #else1445 1410 Void TEncTop::xInitILRP() 1446 1411 { … … 1510 1475 } 1511 1476 } 1512 #endif1513 1477 1514 1478 Window& TEncTop::getScaledRefLayerWindowForLayer(Int layerId)
Note: See TracChangeset for help on using the changeset viewer.