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


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

Clean up for L0366 from Qualcomm, liweig@…

Location:
branches/SHM-1.0-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r25 r27  
    288288  rpcPic->compressMotion();
    289289
    290 #if REF_IDX_MFM
    291   if( rpcPic->getLayerId() == 0 && rpcPic->upsampledMvFieldIsNull() )
    292   {
    293     TComSPS *spsEL = m_ppcTDecTop[1]->getSPS();
    294 
    295     rpcPic->createUpSampledMvField(spsEL->getPicHeightInLumaSamples(), spsEL->getPicWidthInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth);  //create up-sampled mv field
    296   }
    297 
    298   if( rpcPic->getLayerId() == 0 && rpcPic->IsUpsampledMvField() == false )
    299   {
    300     TComSPS *spsBL = m_ppcTDecTop[0]->getSPS();
    301     TComSPS *spsEL = m_ppcTDecTop[1]->getSPS();
    302 
    303     Int iBWidth  = spsBL->getPicWidthInLumaSamples() - spsBL->getPicCropLeftOffset() - spsBL->getPicCropRightOffset();
    304     Int iBHeight = spsBL->getPicHeightInLumaSamples() - spsBL->getPicCropTopOffset() - spsBL->getPicCropBottomOffset();
    305 
    306     Int iEWidth  = spsEL->getPicWidthInLumaSamples() - spsEL->getPicCropLeftOffset() - spsEL->getPicCropRightOffset();
    307     Int iEHeight = spsEL->getPicHeightInLumaSamples() - spsEL->getPicCropTopOffset() - spsEL->getPicCropBottomOffset();
    308 
    309     UInt upSampleRatio;
    310     if(iEWidth == iBWidth && iEHeight == iBHeight)
    311       upSampleRatio = 0;
    312     else if(iEWidth == 2*iBWidth && iEHeight == 2*iBHeight)
    313       upSampleRatio = 1;
    314     else if(2*iEWidth == 3*iBWidth && 2*iEHeight == 3*iBHeight)
    315       upSampleRatio = 2;
    316     else
    317       assert(0);
    318 
    319     rpcPic->doTheUpSampleMvField(upSampleRatio);
    320     rpcPic->setUpsampledMvField(true);
    321   }
    322 #endif
    323290
    324291  Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
  • branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r25 r27  
    271271#endif
    272272
    273 #if REF_IDX_MFM
    274     rpcPic->setUpsampledMvField(false);
    275 #endif
     273
    276274    m_cListPic.pushBack( rpcPic );
    277275   
     
    321319#endif
    322320
    323 #if REF_IDX_MFM
    324   rpcPic->setUpsampledMvField(false);
    325 #endif
     321
    326322}
    327323
Note: See TracChangeset for help on using the changeset viewer.