1 /* 2 * Copyright 2019 The libgav1 Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef LIBGAV1_SRC_DSP_ARM_LOOP_FILTER_NEON_H_ 18 #define LIBGAV1_SRC_DSP_ARM_LOOP_FILTER_NEON_H_ 19 20 #include "src/dsp/dsp.h" 21 #include "src/utils/cpu.h" 22 23 namespace libgav1 { 24 namespace dsp { 25 26 // Initializes Dsp::loop_filters, see the defines below for specifics. This 27 // function is not thread-safe. 28 void LoopFilterInit_NEON(); 29 30 } // namespace dsp 31 } // namespace libgav1 32 33 #if LIBGAV1_ENABLE_NEON 34 35 #define LIBGAV1_Dsp8bpp_LoopFilterSize4_LoopFilterTypeHorizontal \ 36 LIBGAV1_CPU_NEON 37 #define LIBGAV1_Dsp8bpp_LoopFilterSize4_LoopFilterTypeVertical LIBGAV1_CPU_NEON 38 39 #define LIBGAV1_Dsp8bpp_LoopFilterSize6_LoopFilterTypeHorizontal \ 40 LIBGAV1_CPU_NEON 41 #define LIBGAV1_Dsp8bpp_LoopFilterSize6_LoopFilterTypeVertical LIBGAV1_CPU_NEON 42 43 #define LIBGAV1_Dsp8bpp_LoopFilterSize8_LoopFilterTypeHorizontal \ 44 LIBGAV1_CPU_NEON 45 #define LIBGAV1_Dsp8bpp_LoopFilterSize8_LoopFilterTypeVertical LIBGAV1_CPU_NEON 46 47 #define LIBGAV1_Dsp8bpp_LoopFilterSize14_LoopFilterTypeHorizontal \ 48 LIBGAV1_CPU_NEON 49 #define LIBGAV1_Dsp8bpp_LoopFilterSize14_LoopFilterTypeVertical LIBGAV1_CPU_NEON 50 51 #define LIBGAV1_Dsp10bpp_LoopFilterSize4_LoopFilterTypeHorizontal \ 52 LIBGAV1_CPU_NEON 53 #define LIBGAV1_Dsp10bpp_LoopFilterSize4_LoopFilterTypeVertical LIBGAV1_CPU_NEON 54 55 #define LIBGAV1_Dsp10bpp_LoopFilterSize6_LoopFilterTypeHorizontal \ 56 LIBGAV1_CPU_NEON 57 #define LIBGAV1_Dsp10bpp_LoopFilterSize6_LoopFilterTypeVertical LIBGAV1_CPU_NEON 58 59 #define LIBGAV1_Dsp10bpp_LoopFilterSize8_LoopFilterTypeHorizontal \ 60 LIBGAV1_CPU_NEON 61 #define LIBGAV1_Dsp10bpp_LoopFilterSize8_LoopFilterTypeVertical LIBGAV1_CPU_NEON 62 63 #define LIBGAV1_Dsp10bpp_LoopFilterSize14_LoopFilterTypeHorizontal \ 64 LIBGAV1_CPU_NEON 65 #define LIBGAV1_Dsp10bpp_LoopFilterSize14_LoopFilterTypeVertical \ 66 LIBGAV1_CPU_NEON 67 68 #endif // LIBGAV1_ENABLE_NEON 69 70 #endif // LIBGAV1_SRC_DSP_ARM_LOOP_FILTER_NEON_H_ 71