From d4dbf19f6b0181ee78034bfe4caf189d1c016998 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Thu, 14 Jul 2022 15:56:57 -0400 Subject: New upstream version 0.18.0 --- src/dsp/intra_edge.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/dsp/intra_edge.cc') diff --git a/src/dsp/intra_edge.cc b/src/dsp/intra_edge.cc index fe66db2..9875ef1 100644 --- a/src/dsp/intra_edge.cc +++ b/src/dsp/intra_edge.cc @@ -100,7 +100,26 @@ void Init10bpp() { #endif #endif // LIBGAV1_ENABLE_ALL_DSP_FUNCTIONS } +#endif // LIBGAV1_MAX_BITDEPTH >= 10 + +#if LIBGAV1_MAX_BITDEPTH == 12 +void Init12bpp() { + Dsp* const dsp = dsp_internal::GetWritableDspTable(12); + assert(dsp != nullptr); +#if LIBGAV1_ENABLE_ALL_DSP_FUNCTIONS + dsp->intra_edge_filter = IntraEdgeFilter_C; + dsp->intra_edge_upsampler = IntraEdgeUpsampler_C<12, uint16_t>; +#else // !LIBGAV1_ENABLE_ALL_DSP_FUNCTIONS + static_cast(dsp); +#ifndef LIBGAV1_Dsp12bpp_IntraEdgeFilter + dsp->intra_edge_filter = IntraEdgeFilter_C; +#endif +#ifndef LIBGAV1_Dsp12bpp_IntraEdgeUpsampler + dsp->intra_edge_upsampler = IntraEdgeUpsampler_C<12, uint16_t>; #endif +#endif // LIBGAV1_ENABLE_ALL_DSP_FUNCTIONS +} +#endif // LIBGAV1_MAX_BITDEPTH == 12 } // namespace @@ -109,6 +128,9 @@ void IntraEdgeInit_C() { #if LIBGAV1_MAX_BITDEPTH >= 10 Init10bpp(); #endif +#if LIBGAV1_MAX_BITDEPTH == 12 + Init12bpp(); +#endif } } // namespace dsp -- cgit v1.2.3