39 #ifndef __TCOMINTERPOLATIONFILTER__
40 #define __TCOMINTERPOLATIONFILTER__
48 #define NTAPS_CHROMA 4
49 #define IF_INTERNAL_PREC 14
50 #define IF_FILTER_PREC 6
51 #define IF_INTERNAL_OFFS (1<<(IF_INTERNAL_PREC-1))
63 template<Int N, Bool isVertical, Bool isFirst, Bool isLast>
75 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 );
76 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 );
static Void filterCopy(Int bitDepth, const Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast)
Apply unit FIR filter to a block of samples.
~TComInterpolationFilter()
Short TFilterCoeff
filter coefficient
static const Int LUMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS
Defines version information, constants and small in-line functions.
static const TFilterCoeff m_lumaFilter[LUMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS][8]
Luma filter taps.
Interpolation filter class.
static const Int CHROMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS
TComInterpolationFilter()
ChromaFormat
chroma formats (according to semantics of chroma_format_idc)
static Void filterVer(Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast, TFilterCoeff const *coeff)
Filter a block of samples (vertical)
static Void filter(Int bitDepth, Pel const *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, TFilterCoeff const *coeff)
Apply FIR filter to a block of samples.
#define NTAPS_LUMA
Number of taps for luma.
#define NTAPS_CHROMA
Number of taps for chroma.
static Void filterHor(Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isLast, TFilterCoeff const *coeff)
Filter a block of samples (horizontal)
static const TFilterCoeff m_chromaFilter[CHROMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS][4]
Chroma filter taps.