Changeset 222 in SHVCSoftware


Ignore:
Timestamp:
21 May 2013, 19:33:57 (11 years ago)
Author:
seregin
Message:

use minimum height of BL and EL for upsampling

File:
1 edited

Legend:

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

    r218 r222  
    345345#endif
    346346#if ILP_DECODED_PICTURE
    347   widthBL   = pcBasePic->getWidth ();
    348   heightBL  = pcBasePic->getHeight();
    349 
    350347  widthEL   = pcUsPic->getWidth ();
    351348  heightEL  = pcUsPic->getHeight();
     349
     350  widthBL   = pcBasePic->getWidth ();
     351  heightBL  = min<Int>( pcBasePic->getHeight(), heightEL );
    352352#endif
    353353#if SCALED_REF_LAYER_OFFSETS
     
    503503
    504504#if ILP_DECODED_PICTURE
    505   widthBL   = pcBasePic->getWidth () >> 1;
    506   heightBL  = pcBasePic->getHeight() >> 1;
    507 
    508505  widthEL   = pcUsPic->getWidth () >> 1;
    509506  heightEL  = pcUsPic->getHeight() >> 1;
     507
     508  widthBL   = pcBasePic->getWidth () >> 1;
     509  heightBL  = min<Int>( pcBasePic->getHeight(), heightEL );
    510510#endif
    511511
Note: See TracChangeset for help on using the changeset viewer.