• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_WEIGHT_MASK_NEON_H_
18 #define LIBGAV1_SRC_DSP_ARM_WEIGHT_MASK_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::weight_mask. This function is not thread-safe.
27 void WeightMaskInit_NEON();
28 
29 }  // namespace dsp
30 }  // namespace libgav1
31 
32 #if LIBGAV1_ENABLE_NEON
33 #define LIBGAV1_Dsp8bpp_WeightMask_8x8 LIBGAV1_CPU_NEON
34 #define LIBGAV1_Dsp8bpp_WeightMask_8x16 LIBGAV1_CPU_NEON
35 #define LIBGAV1_Dsp8bpp_WeightMask_8x32 LIBGAV1_CPU_NEON
36 #define LIBGAV1_Dsp8bpp_WeightMask_16x8 LIBGAV1_CPU_NEON
37 #define LIBGAV1_Dsp8bpp_WeightMask_16x16 LIBGAV1_CPU_NEON
38 #define LIBGAV1_Dsp8bpp_WeightMask_16x32 LIBGAV1_CPU_NEON
39 #define LIBGAV1_Dsp8bpp_WeightMask_16x64 LIBGAV1_CPU_NEON
40 #define LIBGAV1_Dsp8bpp_WeightMask_32x8 LIBGAV1_CPU_NEON
41 #define LIBGAV1_Dsp8bpp_WeightMask_32x16 LIBGAV1_CPU_NEON
42 #define LIBGAV1_Dsp8bpp_WeightMask_32x32 LIBGAV1_CPU_NEON
43 #define LIBGAV1_Dsp8bpp_WeightMask_32x64 LIBGAV1_CPU_NEON
44 #define LIBGAV1_Dsp8bpp_WeightMask_64x16 LIBGAV1_CPU_NEON
45 #define LIBGAV1_Dsp8bpp_WeightMask_64x32 LIBGAV1_CPU_NEON
46 #define LIBGAV1_Dsp8bpp_WeightMask_64x64 LIBGAV1_CPU_NEON
47 #define LIBGAV1_Dsp8bpp_WeightMask_64x128 LIBGAV1_CPU_NEON
48 #define LIBGAV1_Dsp8bpp_WeightMask_128x64 LIBGAV1_CPU_NEON
49 #define LIBGAV1_Dsp8bpp_WeightMask_128x128 LIBGAV1_CPU_NEON
50 #endif  // LIBGAV1_ENABLE_NEON
51 
52 #endif  // LIBGAV1_SRC_DSP_ARM_WEIGHT_MASK_NEON_H_
53