Changeset 1364 in 3DVCSoftware


Ignore:
Timestamp:
28 Oct 2015, 19:40:16 (8 years ago)
Author:
tech
Message:

Align macros

Location:
branches/HTM-15.2-dev/source/Lib/TLibCommon
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComInterpolationFilter.h

    r1363 r1364  
    8888#endif
    8989
    90   Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth
    9190#if NH_3D_ARP
    92   Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth , Bool filterType = false );
     91  Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac,               Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth , Bool filterType = false );
    9392#else
    94   Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth );
     93  Void filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac,               Bool isFirst, Bool isLast, const ChromaFormat fmt, const Int bitDepth );
    9594#endif
    9695};
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.cpp

    r1362 r1364  
    19121912    const Int vFilterSize = isLuma(compID) ? NTAPS_LUMA : NTAPS_CHROMA;
    19131913
    1914     m_if.filterHor(compID, ref - ((vFilterSize>>1) -1)*refStride, refStride, tmp, tmpStride, cxWidth, cxHeight+vFilterSize-1, xFrac, false,      chFmt, bitDepth
    19151914#if NH_3D_ARP
    1916     , filterType
     1915    m_if.filterHor(compID, ref - ((vFilterSize>>1) -1)*refStride, refStride, tmp, tmpStride, cxWidth, cxHeight+vFilterSize-1, xFrac, false,      chFmt, bitDepth, filterType );
     1916#else
     1917    m_if.filterHor(compID, ref - ((vFilterSize>>1) -1)*refStride, refStride, tmp, tmpStride, cxWidth, cxHeight+vFilterSize-1, xFrac, false,      chFmt, bitDepth );
    19171918#endif
    1918 );
     1919
     1920#if NH_3D
     1921    m_if.filterVer(compID, tmp + ((vFilterSize>>1) -1)*tmpStride, tmpStride, dst, dstStride, cxWidth, cxHeight,               yFrac, false, !bi
    19191922#if NH_3D_IC
    1920     m_if.filterVer(compID, tmp + ((vFilterSize>>1) -1)*tmpStride, tmpStride, dst, dstStride, cxWidth, cxHeight,               yFrac, false, !bi || bICFlag, chFmt, bitDepth
    1921 #else
    1922     m_if.filterVer(compID, tmp + ((vFilterSize>>1) -1)*tmpStride, tmpStride, dst, dstStride, cxWidth, cxHeight,               yFrac, false, !bi, chFmt, bitDepth
    1923 #endif
     1923    || bICFlag
     1924#endif
     1925    , chFmt, bitDepth
    19241926#if NH_3D_ARP
    19251927    , filterType
    19261928#endif
    19271929);
     1930#else
     1931    m_if.filterVer(compID, tmp + ((vFilterSize>>1) -1)*tmpStride, tmpStride, dst, dstStride, cxWidth, cxHeight,               yFrac, false, !bi, chFmt, bitDepth );
     1932#endif
    19281933  }
    19291934
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.h

    r1321 r1364  
    115115#endif
    116116
     117#if NH_3D
    117118  Void xPredInterBlk(const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi, const Int bitDepth
    118119#if NH_3D_ARP
     
    123124#endif
    124125 );
    125 
     126#else
     127  Void xPredInterBlk(const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi, const Int bitDepth );
     128#endif
    126129#if NH_3D_VSP
    127130  Void xPredInterUniSubPU        ( TComDataCU *cu, UInt uiPartAddr, Int iWidth, Int iHeight, RefPicList eRefPicList, TComYuv*& rpcYuvPred, Bool bi, Int widthSubPU=4, Int heightSubPU=4 );
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRdCost.cpp

    r1360 r1364  
    120120    }
    121121  }
    122 }
    123 
    124 #if NH_3D_VSO
    125 Double TComRdCost::calcRdCost64( UInt64 uiBits, Dist64 uiDistortion, Bool bFlag, DFunc eDFunc )
    126 #else
    127 Double TComRdCost::calcRdCost64( UInt64 uiBits, UInt64 uiDistortion, Bool bFlag, DFunc eDFunc )
    128 #endif
    129 {
    130   Double dRdCost = 0.0;
    131   Double dLambda = 0.0;
    132 
    133   switch ( eDFunc )
    134   {
    135     case DF_SSE:
    136       assert(0);
    137       break;
    138     case DF_SAD:
    139       dLambda = m_dLambdaMotionSAD[0]; // 0 is valid, because for lossless blocks, the cost equation is modified to compensate.
    140       break;
    141     case DF_DEFAULT:
    142       dLambda =         m_dLambda;
    143       break;
    144     case DF_SSE_FRAME:
    145       dLambda =         m_dFrameLambda;
    146       break;
    147     default:
    148       assert (0);
    149       break;
    150   }
    151 
    152   if (bFlag) //NOTE: this "bFlag" is never true
    153   {
    154     // Intra8x8, Intra4x4 Block only...
    155     if (m_costMode != COST_STANDARD_LOSSY)
    156     {
    157       dRdCost = (Double(uiDistortion) / dLambda) + Double(uiBits); // all lossless costs would have uiDistortion=0, and therefore this cost function can be used.
    158     }
    159     else
    160     {
    161       dRdCost = (((Double)(Int64)uiDistortion) + ((Double)(Int64)uiBits * dLambda));
    162     }
    163   }
    164   else
    165   {
    166     if (eDFunc == DF_SAD)
    167     {
    168       if (m_costMode != COST_STANDARD_LOSSY)
    169       {
    170         dRdCost = ((Double(uiDistortion) * 65536) / dLambda) + Double(uiBits); // all lossless costs would have uiDistortion=0, and therefore this cost function can be used.
    171       }
    172       else
    173       {
    174         dRdCost = floor(Double(uiDistortion) + (floor((Double(uiBits) * dLambda) + 0.5) / 65536.0));
    175       }
    176     }
    177     else
    178     {
    179       if (m_costMode != COST_STANDARD_LOSSY)
    180       {
    181         dRdCost = (Double(uiDistortion) / dLambda) + Double(uiBits); // all lossless costs would have uiDistortion=0, and therefore this cost function can be used.
    182       }
    183       else
    184       {
    185         dRdCost = floor(Double(uiDistortion) + (Double(uiBits) * dLambda) + 0.5);
    186       }
    187     }
    188   }
    189 
    190   return dRdCost;
    191122}
    192123
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.h

    r1360 r1364  
    22462246  virtual ~TComRefPicListModification();
    22472247
    2248   Void    create();
    2249   Void    destroy();
    22502248
    22512249  Bool    getRefPicListModificationFlagL0() const        { return m_refPicListModificationFlagL0;                                  }
     
    22722270  Void    setListEntryL1( Int i, Int  val )                      { m_RefPicSetIdxL1[i] = val;                                          }
    22732271#endif
    2274 
    22752272};
    22762273
     
    25282525  const TComPPSRExt&     getPpsRangeExtension() const                                     { return m_ppsRangeExtension;                   }
    25292526  TComPPSRExt&           getPpsRangeExtension()                                           { return m_ppsRangeExtension;                   }
    2530 
    25312527#if NH_MV
    25322528  Void    setLayerId( Int  val )                                                     { m_layerId = val;                                           }
  • branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h

    r1360 r1364  
    6464/////////////////////////////////////////////////////////////////////////////////////////
    6565#if NH_MV
     66#define H_MV_HLS_PTL_LIMITS                       0
    6667#define NH_MV_SEI_TBD                             0
    6768#define NH_MV_SEI                                 1
Note: See TracChangeset for help on using the changeset viewer.