Changeset 99 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibCommon


Ignore:
Timestamp:
25 Mar 2013, 18:29:05 (12 years ago)
Author:
seregin
Message:

check for MFM flag

Location:
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp

    r97 r99  
    736736      }
    737737    }
    738     memset( pcCUDes->getPartitionSize(), SIZE_2Nx2N, sizeof(char)*numPartitions);
     738    memset( pcCUDes->getPartitionSize(), SIZE_2Nx2N, sizeof(Char)*numPartitions);
    739739  }
    740740}
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.cpp

    r97 r99  
    21552155  {
    21562156    RefPicList refPicList = RefPicList( refList );
    2157 
    2158     //initialize reference POC of ILP
    2159     for(Int refIdx = 0; refIdx < MAX_NUM_REF; refIdx++)
     2157   
     2158    //set reference POC of ILP
     2159    ilpPic[0]->getSlice(0)->setNumRefIdx(refPicList, pcRefPicBL->getSlice(0)->getNumRefIdx(refPicList));
     2160    assert(ilpPic[0]->getSlice(0)->getNumRefIdx(refPicList) >= 0);
     2161    assert(ilpPic[0]->getSlice(0)->getNumRefIdx(refPicList) <= MAX_NUM_REF);
     2162
     2163    //initialize reference POC of ILP
     2164    for(Int refIdx = 0; refIdx < pcRefPicBL->getSlice(0)->getNumRefIdx(refPicList); refIdx++)
     2165    {
     2166      ilpPic[0]->getSlice(0)->setRefPOC(pcRefPicBL->getSlice(0)->getRefPOC(refPicList, refIdx), refPicList, refIdx);
     2167      ilpPic[0]->getSlice(0)->setRefPic(pcRefPicBL->getSlice(0)->getRefPic(refPicList, refIdx), refPicList, refIdx);
     2168    }
     2169
     2170    for(Int refIdx = pcRefPicBL->getSlice(0)->getNumRefIdx(refPicList); refIdx < MAX_NUM_REF; refIdx++)
    21602171    {
    21612172      ilpPic[0]->getSlice(0)->setRefPOC(0, refPicList, refIdx);
    21622173      ilpPic[0]->getSlice(0)->setRefPic(NULL, refPicList, refIdx);
    21632174    }
    2164 
    2165     //set reference POC of ILP
    2166     ilpPic[0]->getSlice(0)->setNumRefIdx(refPicList, pcRefPicBL->getSlice(0)->getNumRefIdx(refPicList));
    2167     assert(ilpPic[0]->getSlice(0)->getNumRefIdx(refPicList) <= MAX_NUM_REF);
    2168 
    2169     for(Int refIdx = 0; refIdx < pcRefPicBL->getSlice(0)->getNumRefIdx(refPicList); refIdx++)
    2170     {
    2171       ilpPic[0]->getSlice(0)->setRefPOC(pcRefPicBL->getSlice(0)->getRefPOC(refPicList, refIdx), refPicList, refIdx);
    2172       ilpPic[0]->getSlice(0)->setRefPic(pcRefPicBL->getSlice(0)->getRefPic(refPicList, refIdx), refPicList, refIdx);
    2173     }
    21742175  }
    21752176  return;
Note: See TracChangeset for help on using the changeset viewer.