Changeset 27 in SHVCSoftware for branches/SHM-1.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
6 Feb 2013, 03:30:58 (12 years ago)
Author:
qualcomm
Message:

Clean up for L0366 from Qualcomm, liweig@…

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  
    15611561
    15621562      pcPic->compressMotion();
    1563 #if REF_IDX_MFM
    1564       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 field
    1569       }
    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         else
    1587           assert(0);
    1588 
    1589         pcPic->doTheUpSampleMvField(upSampleRatio);
    1590         pcPic->setUpsampledMvField(true);
    1591       }
    1592 #endif
    15931563     
    15941564      //-- For time output for each slice
  • branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r25 r27  
    602602  // mark it should be extended
    603603  rpcPic->getPicYuvRec()->setBorderExtension(false);
    604 #if REF_IDX_MFM
    605   rpcPic->setUpsampledMvField(false);
    606 #endif
     604
    607605}
    608606
Note: See TracChangeset for help on using the changeset viewer.