Ignore:
Timestamp:
2 Jan 2014, 07:21:30 (11 years ago)
Author:
seregin
Message:

update to HM-12.1 base

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r531 r532  
    7676, m_colFromL0Flag                 ( 1 )
    7777, m_colRefIdx                     ( 0 )
    78 #if SAO_CHROMA_LAMBDA
    79 , m_dLambdaLuma( 0.0 )
    80 , m_dLambdaChroma( 0.0 )
    81 #else
    82 , m_dLambda                       ( 0.0 )
    83 #endif
    8478, m_uiTLayer                      ( 0 )
    8579, m_bTLayerSwitchingFlag          ( false )
     
    142136  initEqualRef();
    143137 
     138  for (Int component = 0; component < 3; component++)
     139  {
     140    m_lambdas[component] = 0.0;
     141  }
     142 
    144143  for ( Int idx = 0; idx < MAX_NUM_REF; idx++ )
    145144  {
     
    156155  initWpAcDcParam();
    157156  m_saoEnabledFlag = false;
     157#if HM_CLEANUP_SAO
     158  m_saoEnabledFlagChroma = false;
     159#endif
    158160}
    159161
     
    360362}
    361363
    362 #if FIX1071
    363364#if SVC_EXTENSION
    364365Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr, TComPic** ilpPic)
     
    366367Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr )
    367368#endif
    368 #else
    369 Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic )
    370 #endif
    371 {
    372 #if FIX1071
     369{
    373370  if (!checkNumPocTotalCurr)
    374 #endif
    375371  {
    376372    if (m_eSliceType == I_SLICE)
     
    602598  Int numPocTotalCurr = NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr;
    603599#endif //SVC_EXTENSION
    604 #if FIX1071
     600
    605601  if (checkNumPocTotalCurr)
    606602  {
     
    632628    m_aiNumRefIdx[1] = getNumRefIdx(REF_PIC_LIST_1);
    633629  }
    634 #endif
    635630
    636631#if M0457_IL_SAMPLE_PRED_ONLY_FLAG
     
    11921187  m_colFromL0Flag        = pSrc->m_colFromL0Flag;
    11931188  m_colRefIdx            = pSrc->m_colRefIdx;
    1194 #if SAO_CHROMA_LAMBDA
    1195   m_dLambdaLuma          = pSrc->m_dLambdaLuma;
    1196   m_dLambdaChroma        = pSrc->m_dLambdaChroma;
    1197 #else
    1198   m_dLambda              = pSrc->m_dLambda;
    1199 #endif
     1189  setLambdas(pSrc->getLambdas());
    12001190  for (i = 0; i < 2; i++)
    12011191  {
     
    15221512    assert(rpcPic->getSlice( 0 )->isReferenced()==0||rpcPic->getUsedByCurr()==0||rpcPic->getTLayer()<=this->getTLayer());
    15231513    //check that pictures of higher or equal temporal layer are not in the RPS if the current picture is a TSA picture
    1524     if(this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TLA_R || this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_N)
     1514    if(this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_R || this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_N)
    15251515    {
    15261516      assert(rpcPic->getSlice( 0 )->isReferenced()==0||rpcPic->getTLayer()<this->getTLayer());
     
    16811671/** Function for constructing an explicit Reference Picture Set out of the available pictures in a referenced Reference Picture Set
    16821672*/
    1683 #if FIX1071
    16841673Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool isRAP)
    1685 #else
    1686 Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet)
    1687 #endif
    16881674{
    16891675  TComPic* rpcPic;
     
    17101696        // and should be added to the explicit Reference Picture Set
    17111697        pcRPS->setDeltaPOC(k, pReferencePictureSet->getDeltaPOC(i));
    1712 #if FIX1071
    17131698        pcRPS->setUsed(k, pReferencePictureSet->getUsed(i) && (!isRAP));
    1714 #else
    1715         pcRPS->setUsed(k, pReferencePictureSet->getUsed(i));
    1716 #endif
    17171699        if(pcRPS->getDeltaPOC(k) < 0)
    17181700        {
     
    28702852    for(UInt listId=0;listId<g_scalingListNum[sizeId];listId++)
    28712853    {
    2872       getScalingList()->processDefaultMarix(sizeId, listId);
     2854      getScalingList()->processDefaultMatrix(sizeId, listId);
    28732855    }
    28742856  }
     
    30453027 * \param Index of input matrix
    30463028 */
    3047 Void TComScalingList::processDefaultMarix(UInt sizeId, UInt listId)
     3029Void TComScalingList::processDefaultMatrix(UInt sizeId, UInt listId)
    30483030{
    30493031  ::memcpy(getScalingListAddress(sizeId, listId),getScalingListDefaultAddress(sizeId,listId),sizeof(Int)*min(MAX_MATRIX_COEF_NUM,(Int)g_scalingListSize[sizeId]));
     
    30623044      if(getScalingListDC(sizeId,listId) == 0)
    30633045      {
    3064         processDefaultMarix(sizeId, listId);
     3046        processDefaultMatrix(sizeId, listId);
    30653047      }
    30663048    }
     
    32503232#endif
    32513233
    3252 Void TComSlice::setBaseColPic(  TComList<TComPic*>& rcListPic, UInt refLayerIdc )
     3234Bool TComSlice::setBaseColPic(  TComList<TComPic*>& rcListPic, UInt refLayerIdc )
    32533235
    32543236  if(m_layerId == 0)
     
    32583240  }       
    32593241#if POC_RESET_FLAG
    3260   if( this->getPocResetFlag() )
    3261   {
    3262     setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, 0));
     3242  TComPic* pic = xGetRefPic( rcListPic, m_bPocResetFlag ? 0 : m_iPOC );
     3243
     3244  if( pic )
     3245  {
     3246    setBaseColPic(refLayerIdc, pic );
    32633247  }
    32643248  else
    32653249  {
    3266     setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC()));
    3267   }
     3250    return false;
     3251  }
     3252 
     3253  return true;
    32683254#else
    32693255  setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC()));
Note: See TracChangeset for help on using the changeset viewer.