Ignore:
Timestamp:
1 Feb 2013, 04:38:14 (12 years ago)
Author:
mediatek-htm
Message:

1.Fix a bug related to JCT3V-C0129
2.Fix compiler warnings
3.Add document numbers in the MACRO names:

MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097
MTK_SIMPLIFY_DVTC_C0135
MTK_RELEASE_DV_CONSTRAINT_C0129

From MediaTek
yiwen.chen@…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp

    r247 r249  
    56085608#if QC_SIMPLE_NBDV_B0047
    56095609  const Int iNumofDvMCP = 7;
    5610 #if MTK_RELEASE_DV_CONSTRAINT
     5610#if MTK_RELEASE_DV_CONSTRAINT_C0129
    56115611  Int   aiDvMcpDvCandX[2][iNumofDvMCP] = {{0,},    {0,}}; // dummy, 5 spatial + 1 temporal
    56125612  Int   aiDvMcpDvCandY[2][iNumofDvMCP] = {{0,},    {0,}}; // dummy, 5 spatial + 1 temporal
     
    56365636  deriveLeftBottomIdxGeneral( eCUMode, uiPartAddr, uiPartIdx, uiPartIdxLB );
    56375637
    5638 #if MTK_SAIT_TEMPORAL_FIRST_ORDER
     5638#if MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097
    56395639  // copied from getInterMergeCand()
    56405640  if ( getSlice()->getPPS()->getEnableTMVPFlag() )
     
    58035803    Int iTStartViewIdx = 0;
    58045804    UInt uiPartIdxRB, uiBRIdx;
     5805#if !MTK_SIMPLIFY_DVTC_C0135
    58055806    Int uiViewIdxCurr= getSlice()->getViewId();
     5807#endif
    58065808    UInt uiPartIdxCenter;
    58075809    xDeriveCenterIdx( eCUMode, uiPartIdx, uiPartIdxCenter );
     
    58135815    uiBRIdx = uiPartIdxLT;
    58145816    UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB];
    5815 #if MTK_SIMPLIFY_DVTC
     5817#if MTK_SIMPLIFY_DVTC_C0135
    58165818    if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() )
    58175819    {
     
    58355837      {
    58365838        uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ];
    5837 #if MTK_SIMPLIFY_DVTC
     5839#if MTK_SIMPLIFY_DVTC_C0135
    58385840        uiLCUnew = -1;
    58395841#else
     
    58495851      {
    58505852        uiBRIdx = 0;
    5851 #if MTK_SIMPLIFY_DVTC
     5853#if MTK_SIMPLIFY_DVTC_C0135
    58525854        uiLCUnew = -1;
    58535855#else
     
    58795881      if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() )
    58805882      {
    5881 #if !MTK_SIMPLIFY_DVTC
     5883#if !MTK_SIMPLIFY_DVTC_C0135
    58825884        if (uiViewIdxCurr > 1) 
    58835885        {
     
    59025904            return ;
    59035905          }
    5904 #if !MTK_SIMPLIFY_DVTC
     5906#if !MTK_SIMPLIFY_DVTC_C0135
    59055907        }
    59065908#endif
     
    59235925          return ;
    59245926        }
    5925 #if !MTK_SIMPLIFY_DVTC
     5927#if !MTK_SIMPLIFY_DVTC_C0135
    59265928        if(uiViewIdxCurr == 1) 
    59275929        {
     
    60126014          if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped )
    60136015          {
    6014 #if MTK_RELEASE_DV_CONSTRAINT
     6016#if MTK_RELEASE_DV_CONSTRAINT_C0129
    60156017            aiDvMcpDvCandX[iList][DVFROM_LEFT] = cTmpMvPred.m_iDvMcpDispX;
    60166018            aiDvMcpDvCandY[iList][DVFROM_LEFT] = cTmpMvPred.m_iDvMcpDispY;
     
    61036105          if( cTmpMvPred.m_bDvMcp  && bTmpIsSkipped )
    61046106          {
    6105 #if MTK_RELEASE_DV_CONSTRAINT
     6107#if MTK_RELEASE_DV_CONSTRAINT_C0129
    61066108            aiDvMcpDvCandX[iList][DVFROM_ABOVE] = cTmpMvPred.m_iDvMcpDispX;
    61076109            aiDvMcpDvCandY[iList][DVFROM_ABOVE] = cTmpMvPred.m_iDvMcpDispY;
     
    61886190          if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped )
    61896191          {
    6190 #if MTK_RELEASE_DV_CONSTRAINT
     6192#if MTK_RELEASE_DV_CONSTRAINT_C0129
    61916193            aiDvMcpDvCandX[iList][DVFROM_ABOVERIGHT] = cTmpMvPred.m_iDvMcpDispX;
    61926194            aiDvMcpDvCandY[iList][DVFROM_ABOVERIGHT] = cTmpMvPred.m_iDvMcpDispY;
     
    62656267          if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped )
    62666268          {
    6267 #if MTK_RELEASE_DV_CONSTRAINT
     6269#if MTK_RELEASE_DV_CONSTRAINT_C0129
    62686270            aiDvMcpDvCandX[iList][DVFROM_LEFTBELOW] = cTmpMvPred.m_iDvMcpDispX;
    62696271            aiDvMcpDvCandY[iList][DVFROM_LEFTBELOW] = cTmpMvPred.m_iDvMcpDispY;
     
    63526354          if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped )
    63536355          {
    6354 #if MTK_RELEASE_DV_CONSTRAINT
     6356#if MTK_RELEASE_DV_CONSTRAINT_C0129
    63556357            aiDvMcpDvCandX[iList][DVFROM_ABOVELEFT] = cTmpMvPred.m_iDvMcpDispX;
    63566358            aiDvMcpDvCandY[iList][DVFROM_ABOVELEFT] = cTmpMvPred.m_iDvMcpDispY;
     
    63806382    }
    63816383  }
    6382 #if !MTK_SAIT_TEMPORAL_FIRST_ORDER
     6384#if !MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097
    63836385  // copied from getInterMergeCand()
    63846386  if ( getSlice()->getPPS()->getEnableTMVPFlag() )
     
    65476549    Int iTStartViewIdx = 0;
    65486550    UInt uiPartIdxRB, uiBRIdx;
     6551#if !MTK_SIMPLIFY_DVTC_C0135
    65496552    Int uiViewIdxCurr= getSlice()->getViewId();
     6553#endif
    65506554    UInt uiPartIdxCenter;
    65516555    xDeriveCenterIdx( eCUMode, uiPartIdx, uiPartIdxCenter );
     
    65576561    uiBRIdx = uiPartIdxLT;
    65586562    UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB];
    6559 #if MTK_SIMPLIFY_DVTC
     6563#if MTK_SIMPLIFY_DVTC_C0135
    65606564    if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() )
    65616565    {
     
    65796583      {
    65806584        uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ];
    6581 #if MTK_SIMPLIFY_DVTC
     6585#if MTK_SIMPLIFY_DVTC_C0135
    65826586        uiLCUnew = -1;
    65836587#else
     
    65936597      {
    65946598        uiBRIdx = 0;
    6595 #if MTK_SIMPLIFY_DVTC
     6599#if MTK_SIMPLIFY_DVTC_C0135
    65966600        uiLCUnew = -1;
    65976601#else
     
    66236627      if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() )
    66246628      {
    6625 #if !MTK_SIMPLIFY_DVTC
     6629#if !MTK_SIMPLIFY_DVTC_C0135
    66266630        if (uiViewIdxCurr > 1) 
    66276631        {
     
    66466650            return ;
    66476651          }
    6648 #if !MTK_SIMPLIFY_DVTC
     6652#if !MTK_SIMPLIFY_DVTC_C0135
    66496653        }
    66506654#endif
     
    66676671          return ;
    66686672        }
    6669 #if !MTK_SIMPLIFY_DVTC
     6673#if !MTK_SIMPLIFY_DVTC_C0135
    66706674        if(uiViewIdxCurr == 1) 
    66716675        {
     
    67086712        if( abDvMcpFlag[iList][i]==true )
    67096713        {
    6710 #if MTK_RELEASE_DV_CONSTRAINT
     6714#if MTK_RELEASE_DV_CONSTRAINT_C0129
    67116715          TComMv dv( aiDvMcpDvCandX[iList][ i ], aiDvMcpDvCandY[iList][ i ] );
    67126716#else
     
    88778881  else
    88788882  {
    8879 #if MTK_RELEASE_DV_CONSTRAINT
     8883#if MTK_RELEASE_DV_CONSTRAINT_C0129
    88808884    Bool bAvailable = pcResidualGenerator->getResidualSamples( this, uiPartIdx, pcYuv, cDisInfo.m_acMvCand[0]
    88818885#if QC_SIMPLIFIEDIVRP_M24938
Note: See TracChangeset for help on using the changeset viewer.