Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
3 | | * |
4 | | * This source code is subject to the terms of the BSD 2 Clause License and |
5 | | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
6 | | * was not distributed with this source code in the LICENSE file, you can |
7 | | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
8 | | * Media Patent License 1.0 was not distributed with this source code in the |
9 | | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
10 | | */ |
11 | | |
12 | | #include <stdlib.h> |
13 | | |
14 | | #include "config/aom_config.h" |
15 | | #include "config/aom_dsp_rtcd.h" |
16 | | |
17 | | #include "aom/aom_integer.h" |
18 | | #include "aom_ports/mem.h" |
19 | | #include "aom_dsp/blend.h" |
20 | | |
21 | | /* Sum the difference between every corresponding element of the buffers. */ |
22 | | static INLINE unsigned int sad(const uint8_t *a, int a_stride, const uint8_t *b, |
23 | 0 | int b_stride, int width, int height) { |
24 | 0 | int y, x; |
25 | 0 | unsigned int sad = 0; |
26 | |
|
27 | 0 | for (y = 0; y < height; y++) { |
28 | 0 | for (x = 0; x < width; x++) { |
29 | 0 | sad += abs(a[x] - b[x]); |
30 | 0 | } |
31 | |
|
32 | 0 | a += a_stride; |
33 | 0 | b += b_stride; |
34 | 0 | } |
35 | 0 | return sad; |
36 | 0 | } |
37 | | |
38 | | #define sadMxh(m) \ |
39 | | unsigned int aom_sad##m##xh_c(const uint8_t *a, int a_stride, \ |
40 | | const uint8_t *b, int b_stride, int width, \ |
41 | 0 | int height) { \ |
42 | 0 | return sad(a, a_stride, b, b_stride, width, height); \ |
43 | 0 | } Unexecuted instantiation: aom_sad128xh_c Unexecuted instantiation: aom_sad64xh_c Unexecuted instantiation: aom_sad32xh_c Unexecuted instantiation: aom_sad16xh_c Unexecuted instantiation: aom_sad8xh_c Unexecuted instantiation: aom_sad4xh_c |
44 | | |
45 | | #define sadMxN(m, n) \ |
46 | | unsigned int aom_sad##m##x##n##_c(const uint8_t *src, int src_stride, \ |
47 | 0 | const uint8_t *ref, int ref_stride) { \ |
48 | 0 | return sad(src, src_stride, ref, ref_stride, m, n); \ |
49 | 0 | } \ Unexecuted instantiation: aom_sad128x128_c Unexecuted instantiation: aom_sad128x64_c Unexecuted instantiation: aom_sad64x128_c Unexecuted instantiation: aom_sad64x64_c Unexecuted instantiation: aom_sad64x32_c Unexecuted instantiation: aom_sad32x64_c Unexecuted instantiation: aom_sad32x32_c Unexecuted instantiation: aom_sad32x16_c Unexecuted instantiation: aom_sad16x32_c Unexecuted instantiation: aom_sad16x16_c Unexecuted instantiation: aom_sad16x8_c Unexecuted instantiation: aom_sad8x16_c Unexecuted instantiation: aom_sad8x8_c Unexecuted instantiation: aom_sad8x4_c Unexecuted instantiation: aom_sad4x8_c Unexecuted instantiation: aom_sad4x4_c Unexecuted instantiation: aom_sad4x16_c Unexecuted instantiation: aom_sad16x4_c Unexecuted instantiation: aom_sad8x32_c Unexecuted instantiation: aom_sad32x8_c Unexecuted instantiation: aom_sad16x64_c Unexecuted instantiation: aom_sad64x16_c |
50 | | unsigned int aom_sad##m##x##n##_avg_c(const uint8_t *src, int src_stride, \ |
51 | | const uint8_t *ref, int ref_stride, \ |
52 | 0 | const uint8_t *second_pred) { \ |
53 | 0 | uint8_t comp_pred[m * n]; \ |
54 | 0 | aom_comp_avg_pred(comp_pred, second_pred, m, n, ref, ref_stride); \ |
55 | 0 | return sad(src, src_stride, comp_pred, m, m, n); \ |
56 | 0 | } \ Unexecuted instantiation: aom_sad128x128_avg_c Unexecuted instantiation: aom_sad128x64_avg_c Unexecuted instantiation: aom_sad64x128_avg_c Unexecuted instantiation: aom_sad64x64_avg_c Unexecuted instantiation: aom_sad64x32_avg_c Unexecuted instantiation: aom_sad32x64_avg_c Unexecuted instantiation: aom_sad32x32_avg_c Unexecuted instantiation: aom_sad32x16_avg_c Unexecuted instantiation: aom_sad16x32_avg_c Unexecuted instantiation: aom_sad16x16_avg_c Unexecuted instantiation: aom_sad16x8_avg_c Unexecuted instantiation: aom_sad8x16_avg_c Unexecuted instantiation: aom_sad8x8_avg_c Unexecuted instantiation: aom_sad8x4_avg_c Unexecuted instantiation: aom_sad4x8_avg_c Unexecuted instantiation: aom_sad4x4_avg_c Unexecuted instantiation: aom_sad4x16_avg_c Unexecuted instantiation: aom_sad16x4_avg_c Unexecuted instantiation: aom_sad8x32_avg_c Unexecuted instantiation: aom_sad32x8_avg_c Unexecuted instantiation: aom_sad16x64_avg_c Unexecuted instantiation: aom_sad64x16_avg_c |
57 | | unsigned int aom_dist_wtd_sad##m##x##n##_avg_c( \ |
58 | | const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, \ |
59 | 0 | const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param) { \ |
60 | 0 | uint8_t comp_pred[m * n]; \ |
61 | 0 | aom_dist_wtd_comp_avg_pred_c(comp_pred, second_pred, m, n, ref, \ |
62 | 0 | ref_stride, jcp_param); \ |
63 | 0 | return sad(src, src_stride, comp_pred, m, m, n); \ |
64 | 0 | } \ Unexecuted instantiation: aom_dist_wtd_sad128x128_avg_c Unexecuted instantiation: aom_dist_wtd_sad128x64_avg_c Unexecuted instantiation: aom_dist_wtd_sad64x128_avg_c Unexecuted instantiation: aom_dist_wtd_sad64x64_avg_c Unexecuted instantiation: aom_dist_wtd_sad64x32_avg_c Unexecuted instantiation: aom_dist_wtd_sad32x64_avg_c Unexecuted instantiation: aom_dist_wtd_sad32x32_avg_c Unexecuted instantiation: aom_dist_wtd_sad32x16_avg_c Unexecuted instantiation: aom_dist_wtd_sad16x32_avg_c Unexecuted instantiation: aom_dist_wtd_sad16x16_avg_c Unexecuted instantiation: aom_dist_wtd_sad16x8_avg_c Unexecuted instantiation: aom_dist_wtd_sad8x16_avg_c Unexecuted instantiation: aom_dist_wtd_sad8x8_avg_c Unexecuted instantiation: aom_dist_wtd_sad8x4_avg_c Unexecuted instantiation: aom_dist_wtd_sad4x8_avg_c Unexecuted instantiation: aom_dist_wtd_sad4x4_avg_c Unexecuted instantiation: aom_dist_wtd_sad4x16_avg_c Unexecuted instantiation: aom_dist_wtd_sad16x4_avg_c Unexecuted instantiation: aom_dist_wtd_sad8x32_avg_c Unexecuted instantiation: aom_dist_wtd_sad32x8_avg_c Unexecuted instantiation: aom_dist_wtd_sad16x64_avg_c Unexecuted instantiation: aom_dist_wtd_sad64x16_avg_c |
65 | | unsigned int aom_sad_skip_##m##x##n##_c(const uint8_t *src, int src_stride, \ |
66 | | const uint8_t *ref, \ |
67 | 0 | int ref_stride) { \ |
68 | 0 | return 2 * sad(src, 2 * src_stride, ref, 2 * ref_stride, (m), (n / 2)); \ |
69 | 0 | } Unexecuted instantiation: aom_sad_skip_128x128_c Unexecuted instantiation: aom_sad_skip_128x64_c Unexecuted instantiation: aom_sad_skip_64x128_c Unexecuted instantiation: aom_sad_skip_64x64_c Unexecuted instantiation: aom_sad_skip_64x32_c Unexecuted instantiation: aom_sad_skip_32x64_c Unexecuted instantiation: aom_sad_skip_32x32_c Unexecuted instantiation: aom_sad_skip_32x16_c Unexecuted instantiation: aom_sad_skip_16x32_c Unexecuted instantiation: aom_sad_skip_16x16_c Unexecuted instantiation: aom_sad_skip_16x8_c Unexecuted instantiation: aom_sad_skip_8x16_c Unexecuted instantiation: aom_sad_skip_8x8_c Unexecuted instantiation: aom_sad_skip_8x4_c Unexecuted instantiation: aom_sad_skip_4x8_c Unexecuted instantiation: aom_sad_skip_4x4_c Unexecuted instantiation: aom_sad_skip_4x16_c Unexecuted instantiation: aom_sad_skip_16x4_c Unexecuted instantiation: aom_sad_skip_8x32_c Unexecuted instantiation: aom_sad_skip_32x8_c Unexecuted instantiation: aom_sad_skip_16x64_c Unexecuted instantiation: aom_sad_skip_64x16_c |
70 | | |
71 | | #if CONFIG_REALTIME_ONLY |
72 | | // Calculate sad against 4 reference locations and store each in sad_array |
73 | | #define sadMxNx4D(m, n) \ |
74 | | void aom_sad##m##x##n##x4d_c(const uint8_t *src, int src_stride, \ |
75 | | const uint8_t *const ref_array[4], \ |
76 | | int ref_stride, uint32_t sad_array[4]) { \ |
77 | | int i; \ |
78 | | for (i = 0; i < 4; ++i) { \ |
79 | | sad_array[i] = \ |
80 | | aom_sad##m##x##n##_c(src, src_stride, ref_array[i], ref_stride); \ |
81 | | } \ |
82 | | } \ |
83 | | void aom_sad_skip_##m##x##n##x4d_c(const uint8_t *src, int src_stride, \ |
84 | | const uint8_t *const ref_array[4], \ |
85 | | int ref_stride, uint32_t sad_array[4]) { \ |
86 | | int i; \ |
87 | | for (i = 0; i < 4; ++i) { \ |
88 | | sad_array[i] = 2 * sad(src, 2 * src_stride, ref_array[i], \ |
89 | | 2 * ref_stride, (m), (n / 2)); \ |
90 | | } \ |
91 | | } |
92 | | #else // !CONFIG_REALTIME_ONLY |
93 | | // Calculate sad against 4 reference locations and store each in sad_array |
94 | | #define sadMxNx4D(m, n) \ |
95 | | void aom_sad##m##x##n##x4d_c(const uint8_t *src, int src_stride, \ |
96 | | const uint8_t *const ref_array[4], \ |
97 | 0 | int ref_stride, uint32_t sad_array[4]) { \ |
98 | 0 | int i; \ |
99 | 0 | for (i = 0; i < 4; ++i) { \ |
100 | 0 | sad_array[i] = \ |
101 | 0 | aom_sad##m##x##n##_c(src, src_stride, ref_array[i], ref_stride); \ |
102 | 0 | } \ |
103 | 0 | } \ Unexecuted instantiation: aom_sad128x128x4d_c Unexecuted instantiation: aom_sad128x64x4d_c Unexecuted instantiation: aom_sad64x128x4d_c Unexecuted instantiation: aom_sad64x64x4d_c Unexecuted instantiation: aom_sad64x32x4d_c Unexecuted instantiation: aom_sad32x64x4d_c Unexecuted instantiation: aom_sad32x32x4d_c Unexecuted instantiation: aom_sad32x16x4d_c Unexecuted instantiation: aom_sad16x32x4d_c Unexecuted instantiation: aom_sad16x16x4d_c Unexecuted instantiation: aom_sad16x8x4d_c Unexecuted instantiation: aom_sad8x16x4d_c Unexecuted instantiation: aom_sad8x8x4d_c Unexecuted instantiation: aom_sad8x4x4d_c Unexecuted instantiation: aom_sad4x8x4d_c Unexecuted instantiation: aom_sad4x4x4d_c Unexecuted instantiation: aom_sad4x16x4d_c Unexecuted instantiation: aom_sad16x4x4d_c Unexecuted instantiation: aom_sad8x32x4d_c Unexecuted instantiation: aom_sad32x8x4d_c Unexecuted instantiation: aom_sad16x64x4d_c Unexecuted instantiation: aom_sad64x16x4d_c |
104 | | void aom_sad##m##x##n##x4d_avg_c( \ |
105 | | const uint8_t *src, int src_stride, const uint8_t *const ref_array[4], \ |
106 | 0 | int ref_stride, const uint8_t *second_pred, uint32_t sad_array[4]) { \ |
107 | 0 | int i; \ |
108 | 0 | for (i = 0; i < 4; ++i) { \ |
109 | 0 | sad_array[i] = aom_sad##m##x##n##_avg_c(src, src_stride, ref_array[i], \ |
110 | 0 | ref_stride, second_pred); \ |
111 | 0 | } \ |
112 | 0 | } \ Unexecuted instantiation: aom_sad128x128x4d_avg_c Unexecuted instantiation: aom_sad128x64x4d_avg_c Unexecuted instantiation: aom_sad64x128x4d_avg_c Unexecuted instantiation: aom_sad64x64x4d_avg_c Unexecuted instantiation: aom_sad64x32x4d_avg_c Unexecuted instantiation: aom_sad32x64x4d_avg_c Unexecuted instantiation: aom_sad32x32x4d_avg_c Unexecuted instantiation: aom_sad32x16x4d_avg_c Unexecuted instantiation: aom_sad16x32x4d_avg_c Unexecuted instantiation: aom_sad16x16x4d_avg_c Unexecuted instantiation: aom_sad16x8x4d_avg_c Unexecuted instantiation: aom_sad8x16x4d_avg_c Unexecuted instantiation: aom_sad8x8x4d_avg_c Unexecuted instantiation: aom_sad8x4x4d_avg_c Unexecuted instantiation: aom_sad4x8x4d_avg_c Unexecuted instantiation: aom_sad4x4x4d_avg_c Unexecuted instantiation: aom_sad4x16x4d_avg_c Unexecuted instantiation: aom_sad16x4x4d_avg_c Unexecuted instantiation: aom_sad8x32x4d_avg_c Unexecuted instantiation: aom_sad32x8x4d_avg_c Unexecuted instantiation: aom_sad16x64x4d_avg_c Unexecuted instantiation: aom_sad64x16x4d_avg_c |
113 | | void aom_sad_skip_##m##x##n##x4d_c(const uint8_t *src, int src_stride, \ |
114 | | const uint8_t *const ref_array[4], \ |
115 | 0 | int ref_stride, uint32_t sad_array[4]) { \ |
116 | 0 | int i; \ |
117 | 0 | for (i = 0; i < 4; ++i) { \ |
118 | 0 | sad_array[i] = 2 * sad(src, 2 * src_stride, ref_array[i], \ |
119 | 0 | 2 * ref_stride, (m), (n / 2)); \ |
120 | 0 | } \ |
121 | 0 | } Unexecuted instantiation: aom_sad_skip_128x128x4d_c Unexecuted instantiation: aom_sad_skip_128x64x4d_c Unexecuted instantiation: aom_sad_skip_64x128x4d_c Unexecuted instantiation: aom_sad_skip_64x64x4d_c Unexecuted instantiation: aom_sad_skip_64x32x4d_c Unexecuted instantiation: aom_sad_skip_32x64x4d_c Unexecuted instantiation: aom_sad_skip_32x32x4d_c Unexecuted instantiation: aom_sad_skip_32x16x4d_c Unexecuted instantiation: aom_sad_skip_16x32x4d_c Unexecuted instantiation: aom_sad_skip_16x16x4d_c Unexecuted instantiation: aom_sad_skip_16x8x4d_c Unexecuted instantiation: aom_sad_skip_8x16x4d_c Unexecuted instantiation: aom_sad_skip_8x8x4d_c Unexecuted instantiation: aom_sad_skip_8x4x4d_c Unexecuted instantiation: aom_sad_skip_4x8x4d_c Unexecuted instantiation: aom_sad_skip_4x4x4d_c Unexecuted instantiation: aom_sad_skip_4x16x4d_c Unexecuted instantiation: aom_sad_skip_16x4x4d_c Unexecuted instantiation: aom_sad_skip_8x32x4d_c Unexecuted instantiation: aom_sad_skip_32x8x4d_c Unexecuted instantiation: aom_sad_skip_16x64x4d_c Unexecuted instantiation: aom_sad_skip_64x16x4d_c |
122 | | #endif // CONFIG_REALTIME_ONLY |
123 | | |
124 | | // 128x128 |
125 | | sadMxN(128, 128); |
126 | | sadMxNx4D(128, 128); |
127 | | |
128 | | // 128x64 |
129 | | sadMxN(128, 64); |
130 | | sadMxNx4D(128, 64); |
131 | | |
132 | | // 64x128 |
133 | | sadMxN(64, 128); |
134 | | sadMxNx4D(64, 128); |
135 | | |
136 | | // 64x64 |
137 | | sadMxN(64, 64); |
138 | | sadMxNx4D(64, 64); |
139 | | |
140 | | // 64x32 |
141 | | sadMxN(64, 32); |
142 | | sadMxNx4D(64, 32); |
143 | | |
144 | | // 32x64 |
145 | | sadMxN(32, 64); |
146 | | sadMxNx4D(32, 64); |
147 | | |
148 | | // 32x32 |
149 | | sadMxN(32, 32); |
150 | | sadMxNx4D(32, 32); |
151 | | |
152 | | // 32x16 |
153 | | sadMxN(32, 16); |
154 | | sadMxNx4D(32, 16); |
155 | | |
156 | | // 16x32 |
157 | | sadMxN(16, 32); |
158 | | sadMxNx4D(16, 32); |
159 | | |
160 | | // 16x16 |
161 | | sadMxN(16, 16); |
162 | | sadMxNx4D(16, 16); |
163 | | |
164 | | // 16x8 |
165 | | sadMxN(16, 8); |
166 | | sadMxNx4D(16, 8); |
167 | | |
168 | | // 8x16 |
169 | | sadMxN(8, 16); |
170 | | sadMxNx4D(8, 16); |
171 | | |
172 | | // 8x8 |
173 | | sadMxN(8, 8); |
174 | | sadMxNx4D(8, 8); |
175 | | |
176 | | // 8x4 |
177 | | sadMxN(8, 4); |
178 | | sadMxNx4D(8, 4); |
179 | | |
180 | | // 4x8 |
181 | | sadMxN(4, 8); |
182 | | sadMxNx4D(4, 8); |
183 | | |
184 | | // 4x4 |
185 | | sadMxN(4, 4); |
186 | | sadMxNx4D(4, 4); |
187 | | |
188 | | sadMxh(128); |
189 | | sadMxh(64); |
190 | | sadMxh(32); |
191 | | sadMxh(16); |
192 | | sadMxh(8); |
193 | | sadMxh(4); |
194 | | |
195 | | sadMxN(4, 16); |
196 | | sadMxNx4D(4, 16); |
197 | | sadMxN(16, 4); |
198 | | sadMxNx4D(16, 4); |
199 | | sadMxN(8, 32); |
200 | | sadMxNx4D(8, 32); |
201 | | sadMxN(32, 8); |
202 | | sadMxNx4D(32, 8); |
203 | | sadMxN(16, 64); |
204 | | sadMxNx4D(16, 64); |
205 | | sadMxN(64, 16); |
206 | | sadMxNx4D(64, 16); |
207 | | |
208 | | #if CONFIG_AV1_HIGHBITDEPTH |
209 | | static INLINE unsigned int highbd_sad(const uint8_t *a8, int a_stride, |
210 | | const uint8_t *b8, int b_stride, |
211 | 0 | int width, int height) { |
212 | 0 | int y, x; |
213 | 0 | unsigned int sad = 0; |
214 | 0 | const uint16_t *a = CONVERT_TO_SHORTPTR(a8); |
215 | 0 | const uint16_t *b = CONVERT_TO_SHORTPTR(b8); |
216 | 0 | for (y = 0; y < height; y++) { |
217 | 0 | for (x = 0; x < width; x++) { |
218 | 0 | sad += abs(a[x] - b[x]); |
219 | 0 | } |
220 | |
|
221 | 0 | a += a_stride; |
222 | 0 | b += b_stride; |
223 | 0 | } |
224 | 0 | return sad; |
225 | 0 | } |
226 | | |
227 | | static INLINE unsigned int highbd_sadb(const uint8_t *a8, int a_stride, |
228 | | const uint8_t *b8, int b_stride, |
229 | 0 | int width, int height) { |
230 | 0 | int y, x; |
231 | 0 | unsigned int sad = 0; |
232 | 0 | const uint16_t *a = CONVERT_TO_SHORTPTR(a8); |
233 | 0 | const uint16_t *b = CONVERT_TO_SHORTPTR(b8); |
234 | 0 | for (y = 0; y < height; y++) { |
235 | 0 | for (x = 0; x < width; x++) { |
236 | 0 | sad += abs(a[x] - b[x]); |
237 | 0 | } |
238 | |
|
239 | 0 | a += a_stride; |
240 | 0 | b += b_stride; |
241 | 0 | } |
242 | 0 | return sad; |
243 | 0 | } |
244 | | |
245 | | #define highbd_sadMxN(m, n) \ |
246 | | unsigned int aom_highbd_sad##m##x##n##_c(const uint8_t *src, int src_stride, \ |
247 | | const uint8_t *ref, \ |
248 | 0 | int ref_stride) { \ |
249 | 0 | return highbd_sad(src, src_stride, ref, ref_stride, m, n); \ |
250 | 0 | } \ Unexecuted instantiation: aom_highbd_sad128x128_c Unexecuted instantiation: aom_highbd_sad128x64_c Unexecuted instantiation: aom_highbd_sad64x128_c Unexecuted instantiation: aom_highbd_sad64x64_c Unexecuted instantiation: aom_highbd_sad64x32_c Unexecuted instantiation: aom_highbd_sad32x64_c Unexecuted instantiation: aom_highbd_sad32x32_c Unexecuted instantiation: aom_highbd_sad32x16_c Unexecuted instantiation: aom_highbd_sad16x32_c Unexecuted instantiation: aom_highbd_sad16x16_c Unexecuted instantiation: aom_highbd_sad16x8_c Unexecuted instantiation: aom_highbd_sad8x16_c Unexecuted instantiation: aom_highbd_sad8x8_c Unexecuted instantiation: aom_highbd_sad8x4_c Unexecuted instantiation: aom_highbd_sad4x8_c Unexecuted instantiation: aom_highbd_sad4x4_c Unexecuted instantiation: aom_highbd_sad4x16_c Unexecuted instantiation: aom_highbd_sad16x4_c Unexecuted instantiation: aom_highbd_sad8x32_c Unexecuted instantiation: aom_highbd_sad32x8_c Unexecuted instantiation: aom_highbd_sad16x64_c Unexecuted instantiation: aom_highbd_sad64x16_c |
251 | | unsigned int aom_highbd_sad##m##x##n##_avg_c( \ |
252 | | const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, \ |
253 | 0 | const uint8_t *second_pred) { \ |
254 | 0 | uint16_t comp_pred[m * n]; \ |
255 | 0 | uint8_t *const comp_pred8 = CONVERT_TO_BYTEPTR(comp_pred); \ |
256 | 0 | aom_highbd_comp_avg_pred(comp_pred8, second_pred, m, n, ref, ref_stride); \ |
257 | 0 | return highbd_sadb(src, src_stride, comp_pred8, m, m, n); \ |
258 | 0 | } \ Unexecuted instantiation: aom_highbd_sad128x128_avg_c Unexecuted instantiation: aom_highbd_sad128x64_avg_c Unexecuted instantiation: aom_highbd_sad64x128_avg_c Unexecuted instantiation: aom_highbd_sad64x64_avg_c Unexecuted instantiation: aom_highbd_sad64x32_avg_c Unexecuted instantiation: aom_highbd_sad32x64_avg_c Unexecuted instantiation: aom_highbd_sad32x32_avg_c Unexecuted instantiation: aom_highbd_sad32x16_avg_c Unexecuted instantiation: aom_highbd_sad16x32_avg_c Unexecuted instantiation: aom_highbd_sad16x16_avg_c Unexecuted instantiation: aom_highbd_sad16x8_avg_c Unexecuted instantiation: aom_highbd_sad8x16_avg_c Unexecuted instantiation: aom_highbd_sad8x8_avg_c Unexecuted instantiation: aom_highbd_sad8x4_avg_c Unexecuted instantiation: aom_highbd_sad4x8_avg_c Unexecuted instantiation: aom_highbd_sad4x4_avg_c Unexecuted instantiation: aom_highbd_sad4x16_avg_c Unexecuted instantiation: aom_highbd_sad16x4_avg_c Unexecuted instantiation: aom_highbd_sad8x32_avg_c Unexecuted instantiation: aom_highbd_sad32x8_avg_c Unexecuted instantiation: aom_highbd_sad16x64_avg_c Unexecuted instantiation: aom_highbd_sad64x16_avg_c |
259 | | unsigned int aom_highbd_dist_wtd_sad##m##x##n##_avg_c( \ |
260 | | const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, \ |
261 | 0 | const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param) { \ |
262 | 0 | uint16_t comp_pred[m * n]; \ |
263 | 0 | uint8_t *const comp_pred8 = CONVERT_TO_BYTEPTR(comp_pred); \ |
264 | 0 | aom_highbd_dist_wtd_comp_avg_pred(comp_pred8, second_pred, m, n, ref, \ |
265 | 0 | ref_stride, jcp_param); \ |
266 | 0 | return highbd_sadb(src, src_stride, comp_pred8, m, m, n); \ |
267 | 0 | } \ Unexecuted instantiation: aom_highbd_dist_wtd_sad128x128_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad128x64_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad64x128_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad64x64_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad64x32_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad32x64_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad32x32_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad32x16_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad16x32_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad16x16_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad16x8_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad8x16_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad8x8_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad8x4_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad4x8_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad4x4_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad4x16_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad16x4_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad8x32_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad32x8_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad16x64_avg_c Unexecuted instantiation: aom_highbd_dist_wtd_sad64x16_avg_c |
268 | | unsigned int aom_highbd_sad_skip_##m##x##n##_c( \ |
269 | | const uint8_t *src, int src_stride, const uint8_t *ref, \ |
270 | 0 | int ref_stride) { \ |
271 | 0 | return 2 * \ |
272 | 0 | highbd_sad(src, 2 * src_stride, ref, 2 * ref_stride, (m), (n / 2)); \ |
273 | 0 | } Unexecuted instantiation: aom_highbd_sad_skip_128x128_c Unexecuted instantiation: aom_highbd_sad_skip_128x64_c Unexecuted instantiation: aom_highbd_sad_skip_64x128_c Unexecuted instantiation: aom_highbd_sad_skip_64x64_c Unexecuted instantiation: aom_highbd_sad_skip_64x32_c Unexecuted instantiation: aom_highbd_sad_skip_32x64_c Unexecuted instantiation: aom_highbd_sad_skip_32x32_c Unexecuted instantiation: aom_highbd_sad_skip_32x16_c Unexecuted instantiation: aom_highbd_sad_skip_16x32_c Unexecuted instantiation: aom_highbd_sad_skip_16x16_c Unexecuted instantiation: aom_highbd_sad_skip_16x8_c Unexecuted instantiation: aom_highbd_sad_skip_8x16_c Unexecuted instantiation: aom_highbd_sad_skip_8x8_c Unexecuted instantiation: aom_highbd_sad_skip_8x4_c Unexecuted instantiation: aom_highbd_sad_skip_4x8_c Unexecuted instantiation: aom_highbd_sad_skip_4x4_c Unexecuted instantiation: aom_highbd_sad_skip_4x16_c Unexecuted instantiation: aom_highbd_sad_skip_16x4_c Unexecuted instantiation: aom_highbd_sad_skip_8x32_c Unexecuted instantiation: aom_highbd_sad_skip_32x8_c Unexecuted instantiation: aom_highbd_sad_skip_16x64_c Unexecuted instantiation: aom_highbd_sad_skip_64x16_c |
274 | | |
275 | | #define highbd_sadMxNx4D(m, n) \ |
276 | | void aom_highbd_sad##m##x##n##x4d_c(const uint8_t *src, int src_stride, \ |
277 | | const uint8_t *const ref_array[], \ |
278 | 0 | int ref_stride, uint32_t *sad_array) { \ |
279 | 0 | int i; \ |
280 | 0 | for (i = 0; i < 4; ++i) { \ |
281 | 0 | sad_array[i] = aom_highbd_sad##m##x##n##_c(src, src_stride, \ |
282 | 0 | ref_array[i], ref_stride); \ |
283 | 0 | } \ |
284 | 0 | } \ Unexecuted instantiation: aom_highbd_sad128x128x4d_c Unexecuted instantiation: aom_highbd_sad128x64x4d_c Unexecuted instantiation: aom_highbd_sad64x128x4d_c Unexecuted instantiation: aom_highbd_sad64x64x4d_c Unexecuted instantiation: aom_highbd_sad64x32x4d_c Unexecuted instantiation: aom_highbd_sad32x64x4d_c Unexecuted instantiation: aom_highbd_sad32x32x4d_c Unexecuted instantiation: aom_highbd_sad32x16x4d_c Unexecuted instantiation: aom_highbd_sad16x32x4d_c Unexecuted instantiation: aom_highbd_sad16x16x4d_c Unexecuted instantiation: aom_highbd_sad16x8x4d_c Unexecuted instantiation: aom_highbd_sad8x16x4d_c Unexecuted instantiation: aom_highbd_sad8x8x4d_c Unexecuted instantiation: aom_highbd_sad8x4x4d_c Unexecuted instantiation: aom_highbd_sad4x8x4d_c Unexecuted instantiation: aom_highbd_sad4x4x4d_c Unexecuted instantiation: aom_highbd_sad4x16x4d_c Unexecuted instantiation: aom_highbd_sad16x4x4d_c Unexecuted instantiation: aom_highbd_sad8x32x4d_c Unexecuted instantiation: aom_highbd_sad32x8x4d_c Unexecuted instantiation: aom_highbd_sad16x64x4d_c Unexecuted instantiation: aom_highbd_sad64x16x4d_c |
285 | | void aom_highbd_sad_skip_##m##x##n##x4d_c( \ |
286 | | const uint8_t *src, int src_stride, const uint8_t *const ref_array[], \ |
287 | 0 | int ref_stride, uint32_t *sad_array) { \ |
288 | 0 | int i; \ |
289 | 0 | for (i = 0; i < 4; ++i) { \ |
290 | 0 | sad_array[i] = 2 * highbd_sad(src, 2 * src_stride, ref_array[i], \ |
291 | 0 | 2 * ref_stride, (m), (n / 2)); \ |
292 | 0 | } \ |
293 | 0 | } Unexecuted instantiation: aom_highbd_sad_skip_128x128x4d_c Unexecuted instantiation: aom_highbd_sad_skip_128x64x4d_c Unexecuted instantiation: aom_highbd_sad_skip_64x128x4d_c Unexecuted instantiation: aom_highbd_sad_skip_64x64x4d_c Unexecuted instantiation: aom_highbd_sad_skip_64x32x4d_c Unexecuted instantiation: aom_highbd_sad_skip_32x64x4d_c Unexecuted instantiation: aom_highbd_sad_skip_32x32x4d_c Unexecuted instantiation: aom_highbd_sad_skip_32x16x4d_c Unexecuted instantiation: aom_highbd_sad_skip_16x32x4d_c Unexecuted instantiation: aom_highbd_sad_skip_16x16x4d_c Unexecuted instantiation: aom_highbd_sad_skip_16x8x4d_c Unexecuted instantiation: aom_highbd_sad_skip_8x16x4d_c Unexecuted instantiation: aom_highbd_sad_skip_8x8x4d_c Unexecuted instantiation: aom_highbd_sad_skip_8x4x4d_c Unexecuted instantiation: aom_highbd_sad_skip_4x8x4d_c Unexecuted instantiation: aom_highbd_sad_skip_4x4x4d_c Unexecuted instantiation: aom_highbd_sad_skip_4x16x4d_c Unexecuted instantiation: aom_highbd_sad_skip_16x4x4d_c Unexecuted instantiation: aom_highbd_sad_skip_8x32x4d_c Unexecuted instantiation: aom_highbd_sad_skip_32x8x4d_c Unexecuted instantiation: aom_highbd_sad_skip_16x64x4d_c Unexecuted instantiation: aom_highbd_sad_skip_64x16x4d_c |
294 | | |
295 | | // 128x128 |
296 | | highbd_sadMxN(128, 128); |
297 | | highbd_sadMxNx4D(128, 128); |
298 | | |
299 | | // 128x64 |
300 | | highbd_sadMxN(128, 64); |
301 | | highbd_sadMxNx4D(128, 64); |
302 | | |
303 | | // 64x128 |
304 | | highbd_sadMxN(64, 128); |
305 | | highbd_sadMxNx4D(64, 128); |
306 | | |
307 | | // 64x64 |
308 | | highbd_sadMxN(64, 64); |
309 | | highbd_sadMxNx4D(64, 64); |
310 | | |
311 | | // 64x32 |
312 | | highbd_sadMxN(64, 32); |
313 | | highbd_sadMxNx4D(64, 32); |
314 | | |
315 | | // 32x64 |
316 | | highbd_sadMxN(32, 64); |
317 | | highbd_sadMxNx4D(32, 64); |
318 | | |
319 | | // 32x32 |
320 | | highbd_sadMxN(32, 32); |
321 | | highbd_sadMxNx4D(32, 32); |
322 | | |
323 | | // 32x16 |
324 | | highbd_sadMxN(32, 16); |
325 | | highbd_sadMxNx4D(32, 16); |
326 | | |
327 | | // 16x32 |
328 | | highbd_sadMxN(16, 32); |
329 | | highbd_sadMxNx4D(16, 32); |
330 | | |
331 | | // 16x16 |
332 | | highbd_sadMxN(16, 16); |
333 | | highbd_sadMxNx4D(16, 16); |
334 | | |
335 | | // 16x8 |
336 | | highbd_sadMxN(16, 8); |
337 | | highbd_sadMxNx4D(16, 8); |
338 | | |
339 | | // 8x16 |
340 | | highbd_sadMxN(8, 16); |
341 | | highbd_sadMxNx4D(8, 16); |
342 | | |
343 | | // 8x8 |
344 | | highbd_sadMxN(8, 8); |
345 | | highbd_sadMxNx4D(8, 8); |
346 | | |
347 | | // 8x4 |
348 | | highbd_sadMxN(8, 4); |
349 | | highbd_sadMxNx4D(8, 4); |
350 | | |
351 | | // 4x8 |
352 | | highbd_sadMxN(4, 8); |
353 | | highbd_sadMxNx4D(4, 8); |
354 | | |
355 | | // 4x4 |
356 | | highbd_sadMxN(4, 4); |
357 | | highbd_sadMxNx4D(4, 4); |
358 | | |
359 | | highbd_sadMxN(4, 16); |
360 | | highbd_sadMxNx4D(4, 16); |
361 | | highbd_sadMxN(16, 4); |
362 | | highbd_sadMxNx4D(16, 4); |
363 | | highbd_sadMxN(8, 32); |
364 | | highbd_sadMxNx4D(8, 32); |
365 | | highbd_sadMxN(32, 8); |
366 | | highbd_sadMxNx4D(32, 8); |
367 | | highbd_sadMxN(16, 64); |
368 | | highbd_sadMxNx4D(16, 64); |
369 | | highbd_sadMxN(64, 16); |
370 | | highbd_sadMxNx4D(64, 16); |
371 | | #endif // CONFIG_AV1_HIGHBITDEPTH |