Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComInterpolationFilter.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComInterpolationFilter.h
r1179 r1313 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 37 37 */ 38 38 39 #ifndef __ HM_TCOMINTERPOLATIONFILTER_H__40 #define __ HM_TCOMINTERPOLATIONFILTER_H__39 #ifndef __TCOMINTERPOLATIONFILTER__ 40 #define __TCOMINTERPOLATIONFILTER__ 41 41 42 #include " TypeDef.h"42 #include "CommonDef.h" 43 43 44 44 //! \ingroup TLibCommon 45 45 //! \{ 46 46 47 #if H_3D_ARP47 #if NH_3D_ARP 48 48 #define NTAPS_LUMA_ARP 2 ///< Number of taps for luma 49 49 #define NTAPS_CHROMA_ARP 2 ///< Number of taps for chroma … … 61 61 class TComInterpolationFilter 62 62 { 63 static const Short m_lumaFilter[4][NTAPS_LUMA]; ///< Luma filter taps64 static const Short m_chromaFilter[8][NTAPS_CHROMA]; ///< Chroma filter taps65 #if H_3D_ARP63 static const TFilterCoeff m_lumaFilter[LUMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS][NTAPS_LUMA]; ///< Luma filter taps 64 static const TFilterCoeff m_chromaFilter[CHROMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS][NTAPS_CHROMA]; ///< Chroma filter taps 65 #if NH_3D_ARP 66 66 static const Short m_lumaFilterARP [4][NTAPS_LUMA_ARP]; ///< Luma filter taps for ARP 67 67 static const Short m_chromaFilterARP[8][NTAPS_CHROMA_ARP]; ///< Chroma filter taps for ARP 68 68 #endif 69 static Void filterCopy(Int bitDepth, const Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast); 70 69 70 static Void filterCopy(Int bitDepth, const Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast); 71 71 72 template<Int N, Bool isVertical, Bool isFirst, Bool isLast> 72 static Void filter(Int bitDepth, Pel const *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Shortconst *coeff);73 static Void filter(Int bitDepth, Pel const *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, TFilterCoeff const *coeff); 73 74 74 75 template<Int N> 75 static Void filterHor(Int bitDepth, Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Bool isLast, Shortconst *coeff);76 static Void filterHor(Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isLast, TFilterCoeff const *coeff); 76 77 template<Int N> 77 static Void filterVer(Int bitDepth, Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast, Shortconst *coeff);78 static Void filterVer(Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast, TFilterCoeff const *coeff); 78 79 79 80 public: … … 81 82 ~TComInterpolationFilter() {} 82 83 83 Void filterHor Luma (Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast84 #if H_3D_ARP84 Void filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt, const Int bitDepth 85 #if NH_3D_ARP 85 86 , Bool filterType = false 86 87 #endif 87 88 Void filterVer Luma (Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast89 #if H_3D_ARP88 ); 89 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 90 #if NH_3D_ARP 90 91 , Bool filterType = false 91 92 #endif 92 ); 93 Void filterHorChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast 94 #if H_3D_ARP 95 , Bool filterType = false 96 #endif 97 ); 98 Void filterVerChroma(Pel *src, Int srcStride, Short *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast 99 #if H_3D_ARP 100 , Bool filterType = false 101 #endif 102 ); 93 ); 103 94 }; 104 95
Note: See TracChangeset for help on using the changeset viewer.