Changeset 27 in SHVCSoftware for branches/SHM-1.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 6 Feb 2013, 03:30:58 (12 years ago)
- Location:
- branches/SHM-1.0-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r25 r27 1561 1561 1562 1562 pcPic->compressMotion(); 1563 #if REF_IDX_MFM1564 if( m_layerId == 0 && pcPic->upsampledMvFieldIsNull() )1565 {1566 Int iEHeight = m_ppcTEncTop[m_layerId+1]->getSourceHeight();1567 Int iEWidth = m_ppcTEncTop[m_layerId+1]->getSourceWidth();1568 pcPic->createUpSampledMvField(iEHeight, iEWidth, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth); //create up-sampled mv field1569 }1570 1571 if( m_layerId == 0 && pcPic->IsUpsampledMvField() == false )1572 {1573 Int iBWidth = m_ppcTEncTop[m_layerId]->getSourceWidth() - m_ppcTEncTop[m_layerId]->getCropLeft() - m_ppcTEncTop[m_layerId]->getCropRight();1574 Int iBHeight = m_ppcTEncTop[m_layerId]->getSourceHeight() - m_ppcTEncTop[m_layerId]->getCropTop() - m_ppcTEncTop[m_layerId]->getCropBottom();1575 1576 Int iEWidth = m_ppcTEncTop[m_layerId+1]->getSourceWidth() - m_ppcTEncTop[m_layerId+1]->getCropLeft() - m_ppcTEncTop[m_layerId+1]->getCropRight();1577 Int iEHeight = m_ppcTEncTop[m_layerId+1]->getSourceHeight() - m_ppcTEncTop[m_layerId+1]->getCropTop() - m_ppcTEncTop[m_layerId+1]->getCropBottom();1578 1579 UInt upSampleRatio;1580 if(iEWidth == iBWidth && iEHeight == iBHeight)1581 upSampleRatio = 0;1582 else if(iEWidth == 2*iBWidth && iEHeight == 2*iBHeight)1583 upSampleRatio = 1;1584 else if(2*iEWidth == 3*iBWidth && 2*iEHeight == 3*iBHeight)1585 upSampleRatio = 2;1586 else1587 assert(0);1588 1589 pcPic->doTheUpSampleMvField(upSampleRatio);1590 pcPic->setUpsampledMvField(true);1591 }1592 #endif1593 1563 1594 1564 //-- For time output for each slice -
branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r25 r27 602 602 // mark it should be extended 603 603 rpcPic->getPicYuvRec()->setBorderExtension(false); 604 #if REF_IDX_MFM 605 rpcPic->setUpsampledMvField(false); 606 #endif 604 607 605 } 608 606
Note: See TracChangeset for help on using the changeset viewer.