Changeset 229 in SHVCSoftware for trunk


Ignore:
Timestamp:
23 May 2013, 20:46:20 (11 years ago)
Author:
seregin
Message:

merge with SHM-2.0avc-dev branch

Location:
trunk/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source

  • trunk/source/Lib/TLibCommon/CommonDef.h

    r206 r229  
    5656// ====================================================================================================================
    5757
    58 #define NV_VERSION        "2.0"                 ///< Current software version
     58#define NV_VERSION        "trunk"                 ///< Current software version
    5959
    6060// ====================================================================================================================
  • trunk/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r191 r229  
    209209 
    210210#endif
    211  
     211
     212  if( widthEL == widthBL && heightEL == heightBL )
     213  {
     214    piSrcY = piSrcBufY - scalEL.getWindowLeftOffset() - scalEL.getWindowTopOffset() * strideEL;
     215    piDstY = piDstBufY;
     216    for( i = 0; i < heightEL; i++ )
     217    {
     218      memcpy( piDstY, piSrcY, sizeof(Pel) * widthBL );
     219      piSrcY += strideBL;
     220      piDstY += strideEL;
     221    }
     222
     223    widthEL  >>= 1;
     224    heightEL >>= 1;
     225
     226    widthBL  >>= 1;
     227    heightBL >>= 1;
     228
     229    strideBL  = pcBasePic->getCStride();
     230    strideEL  = pcUsPic->getCStride();
     231
     232    piSrcU = piSrcBufU - ( scalEL.getWindowLeftOffset() >> 1 ) - ( scalEL.getWindowTopOffset() >> 1 ) * strideEL;
     233    piSrcV = piSrcBufV - ( scalEL.getWindowLeftOffset() >> 1 ) - ( scalEL.getWindowTopOffset() >> 1 ) * strideEL;
     234
     235    piDstU = piDstBufU;
     236    piDstV = piDstBufV;
     237
     238    for( i = 0; i < heightEL; i++ )
     239    {
     240      memcpy( piDstU, piSrcU, sizeof(Pel) * widthBL );
     241      memcpy( piDstV, piSrcV, sizeof(Pel) * widthBL );
     242      piSrcU += strideBL;
     243      piSrcV += strideBL;
     244      piDstU += strideEL;
     245      piDstV += strideEL;
     246    }
     247  }
     248  else
     249  {
    212250#if PHASE_DERIVATION_IN_INTEGER
    213251  Int refPos16 = 0;
     
    245283#endif
    246284
    247   assert ( widthEL == 2*widthBL || 2*widthEL == 3*widthBL );
    248   assert ( heightEL == 2*heightBL || 2*heightEL == 3*heightBL );
     285  assert ( widthEL == widthBL || widthEL == 2*widthBL || 2*widthEL == 3*widthBL );
     286  assert ( heightEL == heightBL || heightEL == 2*heightBL || 2*heightEL == 3*heightBL );
    249287
    250288#if JCTVC_L0178
     
    345383#endif
    346384#if ILP_DECODED_PICTURE
    347   widthBL   = pcBasePic->getWidth ();
    348   heightBL  = pcBasePic->getHeight();
    349 
    350385  widthEL   = pcUsPic->getWidth ();
    351386  heightEL  = pcUsPic->getHeight();
     387
     388  widthBL   = pcBasePic->getWidth ();
     389  heightBL  = min<Int>( pcBasePic->getHeight(), heightEL );
    352390#endif
    353391#if SCALED_REF_LAYER_OFFSETS
     
    503541
    504542#if ILP_DECODED_PICTURE
    505   widthBL   = pcBasePic->getWidth () >> 1;
    506   heightBL  = pcBasePic->getHeight() >> 1;
    507 
    508543  widthEL   = pcUsPic->getWidth () >> 1;
    509544  heightEL  = pcUsPic->getHeight() >> 1;
     545
     546  widthBL   = pcBasePic->getWidth () >> 1;
     547  heightBL  = min<Int>( pcBasePic->getHeight(), heightEL );
    510548#endif
    511549
     
    720758  }
    721759#endif
     760  }
    722761}
    723762#endif //SVC_EXTENSION
  • trunk/source/Lib/TLibDecoder/TDecTop.cpp

    r200 r229  
    787787#if REF_IDX_FRAMEWORK
    788788    if (m_layerId == 0)
     789#elif INTRA_BL
     790    if( m_layerId > 0 )
     791    {
     792      pcSlice->setRefPicList( m_cListPic );
     793    }
     794    else
    789795#endif
    790796#if FIX1071
Note: See TracChangeset for help on using the changeset viewer.