diff options
author | Boyuan Yang <byang@debian.org> | 2022-07-14 15:56:57 -0400 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2022-07-14 15:56:57 -0400 |
commit | d4dbf19f6b0181ee78034bfe4caf189d1c016998 (patch) | |
tree | 47d5d28d2ab770a10e6c48788725c51dffeb84a9 /src/dsp/convolve.inc | |
parent | 320ef65362608ee1148c299d8d5d7618af34e470 (diff) | |
download | libgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.tar.gz libgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.tar.bz2 libgav1-d4dbf19f6b0181ee78034bfe4caf189d1c016998.zip |
New upstream version 0.18.0
Diffstat (limited to 'src/dsp/convolve.inc')
-rw-r--r-- | src/dsp/convolve.inc | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/dsp/convolve.inc b/src/dsp/convolve.inc index e0f755e..2e0b270 100644 --- a/src/dsp/convolve.inc +++ b/src/dsp/convolve.inc @@ -12,39 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Constants and utility functions used for convolve implementations. +// Constants used for convolve implementations. // This will be included inside an anonymous namespace on files where these are // necessary. -int GetNumTapsInFilter(const int filter_index) { - if (filter_index < 2) { - // Despite the names these only use 6 taps. - // kInterpolationFilterEightTap - // kInterpolationFilterEightTapSmooth - return 6; - } - - if (filter_index == 2) { - // kInterpolationFilterEightTapSharp - return 8; - } - - if (filter_index == 3) { - // kInterpolationFilterBilinear - return 2; - } - - assert(filter_index > 3); - // For small sizes (width/height <= 4) the large filters are replaced with 4 - // tap options. - // If the original filters were |kInterpolationFilterEightTap| or - // |kInterpolationFilterEightTapSharp| then it becomes - // |kInterpolationFilterSwitchable|. - // If it was |kInterpolationFilterEightTapSmooth| then it becomes an unnamed 4 - // tap filter. - return 4; -} - constexpr int kIntermediateAllocWidth = kMaxSuperBlockSizeInPixels; constexpr int kIntermediateStride = 8; constexpr int kHorizontalOffset = 3; |