Ignore:
Timestamp:
23 Jul 2013, 15:19:06 (12 years ago)
Author:
tech
Message:

Further removal of unused macros.

Location:
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/CommonDef.h

    r541 r542  
    6060#define HM_VERSION        "11.0"                ///<
    6161#else
    62 #define NV_VERSION        "10.1"                 ///< Current software version
     62#define NV_VERSION        "11.0"                 ///< Current software version
    6363#endif
    6464
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComDataCU.cpp

    r537 r542  
    30953095#endif
    30963096        //pcMvFieldNeighbours[iCount<<1].setMvField(cMvPred,pcMvFieldNeighbours[iCount<<1].getRefIdx());
    3097 #if H_3D_CLEANUPS //Notes from QC: for BVSP coded blocks, the reference index shall not be equal to -1 due to the adoption of JCT3V-D0191
     3097#if H_3D //Notes from QC: for BVSP coded blocks, the reference index shall not be equal to -1 due to the adoption of JCT3V-D0191
    30983098        pcMvFieldNeighbours[iCount<<1].setMvField(cMvPred,pcMvFieldNeighbours[iCount<<1].getRefIdx());
    3099 #else
    3100         if (pcMvFieldNeighbours[iCount<<1].getRefIdx()<0)
    3101         {
    3102           for (Int i=0; i<getSlice()->getNumRefIdx(REF_PIC_LIST_0); i++)
    3103           {
    3104             if (getSlice()->getRefPOC(REF_PIC_LIST_0, i) == getSlice()->getPOC())
    3105             {
    3106               pcMvFieldNeighbours[iCount<<1].setMvField(cMvPred,i);
    3107               break;
    3108             }
    3109           }
    3110         }
    31113099#endif
    31123100      }
     
    31243112          clipMv(cMvPred);
    31253113#endif
    3126           //pcMvFieldNeighbours[(iCount<<1)+1].setMvField(cMvPred,pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx());
    3127 #if H_3D_CLEANUPS
    31283114          pcMvFieldNeighbours[(iCount<<1)+1].setMvField(cMvPred,pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx());
    3129 #else
    3130           if (pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()<0)
    3131           {
    3132             for (Int i=0; i<getSlice()->getNumRefIdx(REF_PIC_LIST_1); i++)
    3133             {
    3134               if (getSlice()->getRefPOC(REF_PIC_LIST_1, i) == getSlice()->getPOC())
    3135               {
    3136                 pcMvFieldNeighbours[(iCount<<1)+1].setMvField(cMvPred,i);
    3137                 break;
    3138               }
    3139             }
    3140           }
    3141 #endif
    31423115        }
    31433116      }
    3144 #if !H_3D_CLEANUPS
    3145       if (!((pcMvFieldNeighbours[iCount<<1].getRefIdx()<0 && !getSlice()->isInterB())
    3146         || (pcMvFieldNeighbours[iCount<<1].getRefIdx()<0 && pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()<0 && getSlice()->isInterB())))
    3147       {
    3148 #endif
    31493117#if H_3D_NBDV
    31503118      pcMvFieldNeighbours[iCount<<1    ].getMv().setIDVFlag (false);
     
    31563124      }
    31573125      iCount ++;
    3158 #if !H_3D_CLEANUPS
    3159       }
    3160       else
    3161       {
    3162         assert(0);
    3163       }
    3164 #endif
    31653126    }
    31663127  }
     
    31743135   
    31753136  Int iPdmInterDir;
    3176 #if H_3D_CLEANUPS
     3137
    31773138  if( iPdmDir[0] )
    3178 #else
    3179   if( iPdmDir[0] && ivMvPredFlag )
    3180 #endif
    31813139  {
    31823140    abCandIsInter        [ iCount ] = true;
     
    31993157    iCount ++;
    32003158  }
    3201 #if H_3D_CLEANUPS
    32023159  // early termination
    32033160  if (iCount == getSlice()->getMaxNumMergeCand())
     
    32063163  }
    32073164#endif
    3208 #endif
    3209 
    3210 #if !H_3D_IV_MERGE
    3211 #if H_3D_NBDV //Notes from QC: DvMCP related variables. 
    3212   //acPdmMv[0].m_bDvMcp = acPdmMv[1].m_bDvMcp = acPdmMv[2].m_bDvMcp = acPdmMv[3].m_bDvMcp = false;
    3213 #endif
    3214 
    3215 #if H_3D_NBDV //Notes from QC: Some examples to show how to use the NBDV and DoNBDV variables. Remove this comment once it is done
    3216   DisInfo cDisInfo;
    3217   cDisInfo.bDV = false;
    3218   //if(!bNoPdmMerge)
    3219   //{
    3220     //cDisInfo.bDV = getDvInfo(uiAbsPartIdx).bDV;
    3221     //cDisInfo.m_aVIdxCan = getDvInfo(uiAbsPartIdx).m_aVIdxCan;
    3222     //cDisInfo.m_acNBDV = getDvInfo(uiAbsPartIdx).m_acNBDV;
    3223 //#if H_3D_NBDV_REF
    3224     //cDisInfo.m_acDoNBDV = getDvInfo(uiAbsPartIdx).m_acDoNBDV;
    3225 //#endif
    3226   //}
    3227 #endif
    3228 #endif
     3165
    32293166  //left
    32303167  UInt uiLeftPartIdx = 0;
     
    34023339
    34033340#if H_3D_IV_MERGE
    3404 #if H_3D_CLEANUPS
    34053341  if( iPdmDir[1] )
    3406 #else
    3407   if(ivMvPredFlag && iPdmDir[1] )
    3408 #endif
    34093342  {
    34103343    assert(iCount < getSlice()->getMaxNumMergeCand());
     
    50875020          clipMv( cDispVec );
    50885021          pDInfo->m_acNBDV = cDispVec;
    5089 #if H_3D_CLEANUPS
    50905022          pDInfo->m_aVIdxCan = cIDVInfo.m_aVIdxCan[iList][ curPos ];
    50915023          assert(pDInfo->m_aVIdxCan == 0); //Notes from QC: only works for CTC
    5092 #else
    5093           pDInfo->m_aVIdxCan = 0;
    5094 #endif
    50955024#if H_3D_NBDV_REF
    5096 #if H_3D_CLEANUPS
    50975025          TComPic* picDepth = getSlice()->getIvPic( true, pDInfo->m_aVIdxCan );
    5098 #else
    5099           TComPic* picDepth = getSlice()->getIvPic( true, 0 );
    5100 #endif
    51015026          assert(picDepth!=NULL);
    51025027
    51035028          if (picDepth && bDepthRefine)
    5104 #if H_3D_CLEANUPS
     5029          {
    51055030            estimateDVFromDM (pDInfo->m_aVIdxCan, uiPartIdx, picDepth, uiPartAddr, &cDispVec);
    5106 #else
    5107             estimateDVFromDM(0, uiPartIdx, picDepth, uiPartAddr, &cDispVec ); // from base view
    5108 #endif
     5031          }
    51095032          pDInfo->m_acDoNBDV = cDispVec;
    51105033#endif
     
    53385261{
    53395262  TComSlice*    pcSlice         = getSlice (); 
    5340 #if H_3D_CLEANUPS //Notes from QC: to be aligned with the spec.
    53415263  Int iViewIndex = pDInfo->m_aVIdxCan;
    5342 #else
    5343   Bool valid     = false;
    5344 
    5345   Int iViewIndex = 0;
    5346 
    5347   for( UInt uiBIndex = 0; uiBIndex < pcSlice->getViewIndex( ) && !valid; uiBIndex++ )
    5348   {
    5349     UInt        uiBaseIndex = uiBIndex;   
    5350     TComPic*    pcBasePic   = pcSlice->getIvPic( false, uiBaseIndex );
    5351     for( Int iRefListId = 0; iRefListId < 2 && !valid; iRefListId++ )
    5352     {
    5353       RefPicList  eRefPicListTest = RefPicList( iRefListId );
    5354       Int         iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;
    5355       for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
    5356       {
    5357         if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
    5358           && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
    5359         {
    5360           valid = true;
    5361           iViewIndex = uiBaseIndex;
    5362           break;
    5363         }
    5364       }
    5365     }
    5366   }
    5367 
    5368   if (!valid)
    5369     return false;
    5370 #endif
    53715264  //--- get base CU/PU and check prediction mode ---
    53725265  TComPic*    pcBasePic   = pcSlice->getIvPic( false, iViewIndex );
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp

    r540 r542  
    118118, m_icSkipParseFlag               ( false )
    119119#endif
    120 #if H_3D_GEN
     120#if H_3D
    121121, m_depthToDisparityB             ( NULL )
    122122, m_depthToDisparityF             ( NULL )
     
    158158  delete[] m_puiSubstreamSizes;
    159159  m_puiSubstreamSizes = NULL;
    160 #if H_3D_GEN   
     160#if H_3D
    161161  for( UInt i = 0; i < getViewIndex(); i++ )
    162162  {
     
    15291529#endif
    15301530  }
    1531 #if H_3D_GEN
     1531#if H_3D
    15321532  for( Int i = 0; i < MAX_NUM_LAYERS; i++ )
    15331533  {
     
    26362636}
    26372637#endif
    2638 #if H_3D_GEN
     2638#if H_3D
    26392639Void TComSlice::setIvPicLists( TComPicLists* m_ivPicLists )
    26402640{
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.h

    r541 r542  
    15681568  Bool      m_icSkipParseFlag;
    15691569#endif
    1570 #if H_3D_GEN
     1570#if H_3D
    15711571  TComPic*   m_ivPicsCurrPoc [2][MAX_NUM_LAYERS]; 
    15721572  Int**      m_depthToDisparityB;
     
    16301630  TComPic*  getRefPic           ( RefPicList e, Int iRefIdx)    { return  m_apcRefPicList[e][iRefIdx];  }
    16311631  Int       getRefPOC           ( RefPicList e, Int iRefIdx)    { return  m_aiRefPOCList[e][iRefIdx];   }
    1632 #if H_3D_GEN
     1632#if H_3D
    16331633  TComPic*  getIvPic            ( Bool depthFlag, Int viewIndex){ return  m_ivPicsCurrPoc[ depthFlag ? 1 : 0 ][ viewIndex ]; }
    16341634#endif
     
    18491849#endif
    18501850#endif
    1851 #if H_3D_GEN
     1851#if H_3D
    18521852  Void    setIvPicLists( TComPicLists* m_ivPicLists );
    18531853  Void    setDepthToDisparityLUTs();
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TypeDef.h

    r541 r542  
    5555
    5656#ifndef HEVC_EXT
    57 #define HEVC_EXT                    2
     57#define HEVC_EXT                    1
    5858#endif
    5959
     
    7676                                              // HHI_QTLPC_RAU_OFF_C0160     // JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units
    7777
    78 #define H_3D_PDM_CAM_PARAS                0 ///< PDM related parts of camera parameters, should be removed if not used anymore.
    7978#define H_3D_VSO                          1   // VSO, View synthesis optimization, includes:
    8079                                              // HHI_VSO
     
    110109                                              // LG_D0092: Multiple VSP candidate allowed
    111110
    112 #if H_3D_VSP
    113 #define H_3D_VSP_POSITION                 3   // The only supported position
    114 #define H_3D_VSP_BLOCKSIZE                4   // Supported values: 1, 2, and 4
    115 #if H_3D_VSP_BLOCKSIZE == 1
    116 #define H_3D_VSP_CONSTRAINED              1   // Constrained VSP @ 1x1
    117 #else
    118 #define H_3D_VSP_CONSTRAINED              0
    119 #endif
    120 #endif
    121 
    122111#define H_3D_IV_MERGE                     1   // Inter-view motion merge candidate
    123112                                              // HHI_INTER_VIEW_MOTION_PRED
     
    130119#define H_3D_TMVP                         1   // QC_TMVP_C0047
    131120                                              // Sony_M23639
    132 #define H_3D_GEN                          1   // Some general changes can be removed after merge
    133 #define H_3D_CLEANUPS                     1   // Temporary for minor fixes can be removed after merge
    134 #define H_3D_FIX                          1   // Temporary for minor fixes can be removed after merge
    135 #define H_3D_VSO_FIX_BORDRE_EXTENSION     1   // Temporary for minor fixes can be removed after merge
     121
    136122#define H_3D_DIM                          1   // DIM, Depth intra modes, includes:
    137123                                              // HHI_DMM_WEDGE_INTRA
     
    156142/////////////////////////////////////////////////////////////////////////////////////////
    157143
     144
    158145///// ***** VIEW SYNTHESIS OPTIMIZAION *********
    159146#if H_3D_VSO                                 
     
    169156////   ****** Neighbouring block-based Disparity Vector  *********
    170157#if H_3D_NBDV
    171 #if H_3D_CLEANUPS
    172158#define DVFROM_LEFTBELOW                  0
    173159#define DVFROM_LEFT                       1
     
    176162#define DVFROM_ABOVELEFT                  4
    177163#define IDV_CANDS                         5
    178 #else
    179 #define IDV_CANDS                         6
    180 #define DVFROM_LEFTBELOW                  1
    181 #define DVFROM_LEFT                       2
    182 #define DVFROM_ABOVERIGHT                 3
    183 #define DVFROM_ABOVE                      4
    184 #define DVFROM_ABOVELEFT                  5
    185 #endif
    186164#endif
    187165///// ***** ADVANCED INTERVIEW RESIDUAL PREDICTION *********
     
    198176                                              // HHI_DEPTH_INTRA_SEARCH_RAU_C0160
    199177                                              // LG_ZEROINTRADEPTHRESI_A0087
     178#endif
     179
     180///// ***** VIEW SYNTHESIS PREDICTION *********
     181#if H_3D_VSP
     182#define H_3D_VSP_POSITION                 3   // The only supported position
     183#define H_3D_VSP_BLOCKSIZE                4   // Supported values: 1, 2, and 4
     184#if H_3D_VSP_BLOCKSIZE == 1
     185#define H_3D_VSP_CONSTRAINED              1   // Constrained VSP @ 1x1
     186#else
     187#define H_3D_VSP_CONSTRAINED              0
     188#endif
    200189#endif
    201190
Note: See TracChangeset for help on using the changeset viewer.