Changeset 1364 in 3DVCSoftware
- Timestamp:
- 28 Oct 2015, 19:40:16 (9 years ago)
- 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 88 88 #endif 89 89 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 bitDepth91 90 #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 ); 93 92 #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 ); 95 94 #endif 96 95 }; -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.cpp
r1362 r1364 1912 1912 const Int vFilterSize = isLuma(compID) ? NTAPS_LUMA : NTAPS_CHROMA; 1913 1913 1914 m_if.filterHor(compID, ref - ((vFilterSize>>1) -1)*refStride, refStride, tmp, tmpStride, cxWidth, cxHeight+vFilterSize-1, xFrac, false, chFmt, bitDepth1915 1914 #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 ); 1917 1918 #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 1919 1922 #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 1924 1926 #if NH_3D_ARP 1925 1927 , filterType 1926 1928 #endif 1927 1929 ); 1930 #else 1931 m_if.filterVer(compID, tmp + ((vFilterSize>>1) -1)*tmpStride, tmpStride, dst, dstStride, cxWidth, cxHeight, yFrac, false, !bi, chFmt, bitDepth ); 1932 #endif 1928 1933 } 1929 1934 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPrediction.h
r1321 r1364 115 115 #endif 116 116 117 #if NH_3D 117 118 Void xPredInterBlk(const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi, const Int bitDepth 118 119 #if NH_3D_ARP … … 123 124 #endif 124 125 ); 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 126 129 #if NH_3D_VSP 127 130 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 120 120 } 121 121 } 122 }123 124 #if NH_3D_VSO125 Double TComRdCost::calcRdCost64( UInt64 uiBits, Dist64 uiDistortion, Bool bFlag, DFunc eDFunc )126 #else127 Double TComRdCost::calcRdCost64( UInt64 uiBits, UInt64 uiDistortion, Bool bFlag, DFunc eDFunc )128 #endif129 {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 true153 {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 else160 {161 dRdCost = (((Double)(Int64)uiDistortion) + ((Double)(Int64)uiBits * dLambda));162 }163 }164 else165 {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 else173 {174 dRdCost = floor(Double(uiDistortion) + (floor((Double(uiBits) * dLambda) + 0.5) / 65536.0));175 }176 }177 else178 {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 else184 {185 dRdCost = floor(Double(uiDistortion) + (Double(uiBits) * dLambda) + 0.5);186 }187 }188 }189 190 return dRdCost;191 122 } 192 123 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.h
r1360 r1364 2246 2246 virtual ~TComRefPicListModification(); 2247 2247 2248 Void create();2249 Void destroy();2250 2248 2251 2249 Bool getRefPicListModificationFlagL0() const { return m_refPicListModificationFlagL0; } … … 2272 2270 Void setListEntryL1( Int i, Int val ) { m_RefPicSetIdxL1[i] = val; } 2273 2271 #endif 2274 2275 2272 }; 2276 2273 … … 2528 2525 const TComPPSRExt& getPpsRangeExtension() const { return m_ppsRangeExtension; } 2529 2526 TComPPSRExt& getPpsRangeExtension() { return m_ppsRangeExtension; } 2530 2531 2527 #if NH_MV 2532 2528 Void setLayerId( Int val ) { m_layerId = val; } -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h
r1360 r1364 64 64 ///////////////////////////////////////////////////////////////////////////////////////// 65 65 #if NH_MV 66 #define H_MV_HLS_PTL_LIMITS 0 66 67 #define NH_MV_SEI_TBD 0 67 68 #define NH_MV_SEI 1
Note: See TracChangeset for help on using the changeset viewer.