Changeset 166 in SHVCSoftware for branches/SHM-2.0-dev/source


Ignore:
Timestamp:
9 May 2013, 00:22:09 (12 years ago)
Author:
seregin
Message:

use decoded base layer picture for upsampling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r125 r166  
    330330#endif
    331331
     332#if ILP_DECODED_PICTURE
     333  widthBL   = pcBasePic->getWidth ();
     334  heightBL  = pcBasePic->getHeight();
     335
     336  widthEL   = pcUsPic->getWidth ();
     337  heightEL  = pcUsPic->getHeight();
     338#endif
     339
    332340  //========== horizontal upsampling ===========
    333341  for( i = 0; i < widthEL; i++ )
     
    391399  }
    392400
     401#if ILP_DECODED_PICTURE
     402  widthBL   = pcBasePic->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();
     403  heightBL  = pcBasePic->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();
     404
     405  widthEL   = pcUsPic->getWidth () - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
     406  heightEL  = pcUsPic->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
     407#endif
     408
    393409  //========== UV component upsampling ===========
    394410
     
    420436  scaleX     = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL;
    421437  scaleY     = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL;
     438#endif
     439
     440#if ILP_DECODED_PICTURE
     441  widthBL   = pcBasePic->getWidth () >> 1;
     442  heightBL  = pcBasePic->getHeight() >> 1;
     443
     444  widthEL   = pcUsPic->getWidth () >> 1;
     445  heightEL  = pcUsPic->getHeight() >> 1;
    422446#endif
    423447
Note: See TracChangeset for help on using the changeset viewer.