1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
|
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
* Copyright (c) 2023, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
* Media Patent License 1.0 was not distributed with this source code in the
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#include <arm_neon.h>
#include <assert.h>
#include <string.h>
#include "config/aom_config.h"
#include "config/aom_dsp_rtcd.h"
#include "aom/aom_integer.h"
#include "aom_dsp/aom_dsp_common.h"
#include "aom_dsp/aom_filter.h"
#include "aom_dsp/arm/aom_filter.h"
#include "aom_dsp/arm/mem_neon.h"
#include "aom_dsp/arm/transpose_neon.h"
#include "aom_ports/mem.h"
static INLINE int16x4_t convolve8_4(const int16x4_t s0, const int16x4_t s1,
const int16x4_t s2, const int16x4_t s3,
const int16x4_t s4, const int16x4_t s5,
const int16x4_t s6, const int16x4_t s7,
const int16x8_t filter) {
const int16x4_t filter_lo = vget_low_s16(filter);
const int16x4_t filter_hi = vget_high_s16(filter);
int16x4_t sum = vmul_lane_s16(s0, filter_lo, 0);
sum = vmla_lane_s16(sum, s1, filter_lo, 1);
sum = vmla_lane_s16(sum, s2, filter_lo, 2);
sum = vmla_lane_s16(sum, s5, filter_hi, 1);
sum = vmla_lane_s16(sum, s6, filter_hi, 2);
sum = vmla_lane_s16(sum, s7, filter_hi, 3);
sum = vqadd_s16(sum, vmul_lane_s16(s3, filter_lo, 3));
sum = vqadd_s16(sum, vmul_lane_s16(s4, filter_hi, 0));
return sum;
}
static INLINE uint8x8_t convolve8_8(const int16x8_t s0, const int16x8_t s1,
const int16x8_t s2, const int16x8_t s3,
const int16x8_t s4, const int16x8_t s5,
const int16x8_t s6, const int16x8_t s7,
const int16x8_t filter) {
const int16x4_t filter_lo = vget_low_s16(filter);
const int16x4_t filter_hi = vget_high_s16(filter);
int16x8_t sum = vmulq_lane_s16(s0, filter_lo, 0);
sum = vmlaq_lane_s16(sum, s1, filter_lo, 1);
sum = vmlaq_lane_s16(sum, s2, filter_lo, 2);
sum = vmlaq_lane_s16(sum, s5, filter_hi, 1);
sum = vmlaq_lane_s16(sum, s6, filter_hi, 2);
sum = vmlaq_lane_s16(sum, s7, filter_hi, 3);
sum = vqaddq_s16(sum, vmulq_lane_s16(s3, filter_lo, 3));
sum = vqaddq_s16(sum, vmulq_lane_s16(s4, filter_hi, 0));
return vqrshrun_n_s16(sum, FILTER_BITS);
}
static INLINE void convolve8_horiz_8tap_neon(const uint8_t *src,
ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride,
const int16_t *filter_x, int w,
int h) {
const int16x8_t filter = vld1q_s16(filter_x);
if (h == 4) {
uint8x8_t t0, t1, t2, t3;
load_u8_8x4(src, src_stride, &t0, &t1, &t2, &t3);
transpose_elems_inplace_u8_8x4(&t0, &t1, &t2, &t3);
int16x4_t s0 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t0)));
int16x4_t s1 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t1)));
int16x4_t s2 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t2)));
int16x4_t s3 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t3)));
int16x4_t s4 = vget_high_s16(vreinterpretq_s16_u16(vmovl_u8(t0)));
int16x4_t s5 = vget_high_s16(vreinterpretq_s16_u16(vmovl_u8(t1)));
int16x4_t s6 = vget_high_s16(vreinterpretq_s16_u16(vmovl_u8(t2)));
src += 7;
do {
load_u8_8x4(src, src_stride, &t0, &t1, &t2, &t3);
transpose_elems_inplace_u8_8x4(&t0, &t1, &t2, &t3);
int16x4_t s7 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t0)));
int16x4_t s8 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t1)));
int16x4_t s9 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t2)));
int16x4_t s10 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t3)));
int16x4_t d0 = convolve8_4(s0, s1, s2, s3, s4, s5, s6, s7, filter);
int16x4_t d1 = convolve8_4(s1, s2, s3, s4, s5, s6, s7, s8, filter);
int16x4_t d2 = convolve8_4(s2, s3, s4, s5, s6, s7, s8, s9, filter);
int16x4_t d3 = convolve8_4(s3, s4, s5, s6, s7, s8, s9, s10, filter);
uint8x8_t d01 = vqrshrun_n_s16(vcombine_s16(d0, d1), FILTER_BITS);
uint8x8_t d23 = vqrshrun_n_s16(vcombine_s16(d2, d3), FILTER_BITS);
transpose_elems_inplace_u8_4x4(&d01, &d23);
store_u8x4_strided_x2(dst + 0 * dst_stride, 2 * dst_stride, d01);
store_u8x4_strided_x2(dst + 1 * dst_stride, 2 * dst_stride, d23);
s0 = s4;
s1 = s5;
s2 = s6;
s3 = s7;
s4 = s8;
s5 = s9;
s6 = s10;
src += 4;
dst += 4;
w -= 4;
} while (w != 0);
} else {
if (w == 4) {
do {
uint8x8_t t0, t1, t2, t3, t4, t5, t6, t7;
load_u8_8x8(src, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6, &t7);
transpose_elems_inplace_u8_8x8(&t0, &t1, &t2, &t3, &t4, &t5, &t6, &t7);
int16x8_t s0 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s1 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s2 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s3 = vreinterpretq_s16_u16(vmovl_u8(t3));
int16x8_t s4 = vreinterpretq_s16_u16(vmovl_u8(t4));
int16x8_t s5 = vreinterpretq_s16_u16(vmovl_u8(t5));
int16x8_t s6 = vreinterpretq_s16_u16(vmovl_u8(t6));
load_u8_8x8(src + 7, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6,
&t7);
transpose_elems_u8_4x8(t0, t1, t2, t3, t4, t5, t6, t7, &t0, &t1, &t2,
&t3);
int16x8_t s7 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s8 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s9 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s10 = vreinterpretq_s16_u16(vmovl_u8(t3));
uint8x8_t d0 = convolve8_8(s0, s1, s2, s3, s4, s5, s6, s7, filter);
uint8x8_t d1 = convolve8_8(s1, s2, s3, s4, s5, s6, s7, s8, filter);
uint8x8_t d2 = convolve8_8(s2, s3, s4, s5, s6, s7, s8, s9, filter);
uint8x8_t d3 = convolve8_8(s3, s4, s5, s6, s7, s8, s9, s10, filter);
transpose_elems_inplace_u8_8x4(&d0, &d1, &d2, &d3);
store_u8x4_strided_x2(dst + 0 * dst_stride, 4 * dst_stride, d0);
store_u8x4_strided_x2(dst + 1 * dst_stride, 4 * dst_stride, d1);
store_u8x4_strided_x2(dst + 2 * dst_stride, 4 * dst_stride, d2);
store_u8x4_strided_x2(dst + 3 * dst_stride, 4 * dst_stride, d3);
src += 8 * src_stride;
dst += 8 * dst_stride;
h -= 8;
} while (h > 0);
} else {
do {
int width = w;
const uint8_t *s = src;
uint8_t *d = dst;
uint8x8_t t0, t1, t2, t3, t4, t5, t6, t7;
load_u8_8x8(s, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6, &t7);
transpose_elems_inplace_u8_8x8(&t0, &t1, &t2, &t3, &t4, &t5, &t6, &t7);
int16x8_t s0 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s1 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s2 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s3 = vreinterpretq_s16_u16(vmovl_u8(t3));
int16x8_t s4 = vreinterpretq_s16_u16(vmovl_u8(t4));
int16x8_t s5 = vreinterpretq_s16_u16(vmovl_u8(t5));
int16x8_t s6 = vreinterpretq_s16_u16(vmovl_u8(t6));
s += 7;
do {
load_u8_8x8(s, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6, &t7);
transpose_elems_inplace_u8_8x8(&t0, &t1, &t2, &t3, &t4, &t5, &t6,
&t7);
int16x8_t s7 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s8 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s9 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s10 = vreinterpretq_s16_u16(vmovl_u8(t3));
int16x8_t s11 = vreinterpretq_s16_u16(vmovl_u8(t4));
int16x8_t s12 = vreinterpretq_s16_u16(vmovl_u8(t5));
int16x8_t s13 = vreinterpretq_s16_u16(vmovl_u8(t6));
int16x8_t s14 = vreinterpretq_s16_u16(vmovl_u8(t7));
uint8x8_t d0 = convolve8_8(s0, s1, s2, s3, s4, s5, s6, s7, filter);
uint8x8_t d1 = convolve8_8(s1, s2, s3, s4, s5, s6, s7, s8, filter);
uint8x8_t d2 = convolve8_8(s2, s3, s4, s5, s6, s7, s8, s9, filter);
uint8x8_t d3 = convolve8_8(s3, s4, s5, s6, s7, s8, s9, s10, filter);
uint8x8_t d4 = convolve8_8(s4, s5, s6, s7, s8, s9, s10, s11, filter);
uint8x8_t d5 = convolve8_8(s5, s6, s7, s8, s9, s10, s11, s12, filter);
uint8x8_t d6 =
convolve8_8(s6, s7, s8, s9, s10, s11, s12, s13, filter);
uint8x8_t d7 =
convolve8_8(s7, s8, s9, s10, s11, s12, s13, s14, filter);
transpose_elems_inplace_u8_8x8(&d0, &d1, &d2, &d3, &d4, &d5, &d6,
&d7);
store_u8_8x8(d, dst_stride, d0, d1, d2, d3, d4, d5, d6, d7);
s0 = s8;
s1 = s9;
s2 = s10;
s3 = s11;
s4 = s12;
s5 = s13;
s6 = s14;
s += 8;
d += 8;
width -= 8;
} while (width != 0);
src += 8 * src_stride;
dst += 8 * dst_stride;
h -= 8;
} while (h > 0);
}
}
}
static INLINE int16x4_t convolve4_4(const int16x4_t s0, const int16x4_t s1,
const int16x4_t s2, const int16x4_t s3,
const int16x4_t filter) {
int16x4_t sum = vmul_lane_s16(s0, filter, 0);
sum = vmla_lane_s16(sum, s1, filter, 1);
sum = vmla_lane_s16(sum, s2, filter, 2);
sum = vmla_lane_s16(sum, s3, filter, 3);
return sum;
}
static INLINE uint8x8_t convolve4_8(const int16x8_t s0, const int16x8_t s1,
const int16x8_t s2, const int16x8_t s3,
const int16x4_t filter) {
int16x8_t sum = vmulq_lane_s16(s0, filter, 0);
sum = vmlaq_lane_s16(sum, s1, filter, 1);
sum = vmlaq_lane_s16(sum, s2, filter, 2);
sum = vmlaq_lane_s16(sum, s3, filter, 3);
// We halved the filter values so -1 from right shift.
return vqrshrun_n_s16(sum, FILTER_BITS - 1);
}
static INLINE void convolve8_horiz_4tap_neon(const uint8_t *src,
ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride,
const int16_t *filter_x, int w,
int h) {
// All filter values are even, halve to reduce intermediate precision
// requirements.
const int16x4_t filter = vshr_n_s16(vld1_s16(filter_x + 2), 1);
if (w == 4) {
do {
int16x8_t t0 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(src + 0 * src_stride)));
int16x8_t t1 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(src + 1 * src_stride)));
int16x4_t s0[4], s1[4];
s0[0] = vget_low_s16(t0);
s0[1] = vget_low_s16(vextq_s16(t0, t0, 1));
s0[2] = vget_low_s16(vextq_s16(t0, t0, 2));
s0[3] = vget_low_s16(vextq_s16(t0, t0, 3));
s1[0] = vget_low_s16(t1);
s1[1] = vget_low_s16(vextq_s16(t1, t1, 1));
s1[2] = vget_low_s16(vextq_s16(t1, t1, 2));
s1[3] = vget_low_s16(vextq_s16(t1, t1, 3));
int16x4_t d0 = convolve4_4(s0[0], s0[1], s0[2], s0[3], filter);
int16x4_t d1 = convolve4_4(s1[0], s1[1], s1[2], s1[3], filter);
// We halved the filter values so -1 from right shift.
uint8x8_t d01 = vqrshrun_n_s16(vcombine_s16(d0, d1), FILTER_BITS - 1);
store_u8x4_strided_x2(dst + 0 * dst_stride, dst_stride, d01);
src += 2 * src_stride;
dst += 2 * dst_stride;
h -= 2;
} while (h > 0);
} else {
do {
int width = w;
const uint8_t *s = src;
uint8_t *d = dst;
int16x8_t t0 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(s + 0 * src_stride)));
int16x8_t t1 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(s + 1 * src_stride)));
s += 8;
do {
int16x8_t t2 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(s + 0 * src_stride)));
int16x8_t t3 =
vreinterpretq_s16_u16(vmovl_u8(vld1_u8(s + 1 * src_stride)));
int16x8_t s0[4], s1[4];
s0[0] = t0;
s0[1] = vextq_s16(t0, t2, 1);
s0[2] = vextq_s16(t0, t2, 2);
s0[3] = vextq_s16(t0, t2, 3);
s1[0] = t1;
s1[1] = vextq_s16(t1, t3, 1);
s1[2] = vextq_s16(t1, t3, 2);
s1[3] = vextq_s16(t1, t3, 3);
uint8x8_t d0 = convolve4_8(s0[0], s0[1], s0[2], s0[3], filter);
uint8x8_t d1 = convolve4_8(s1[0], s1[1], s1[2], s1[3], filter);
store_u8_8x2(d, dst_stride, d0, d1);
t0 = t2;
t1 = t3;
s += 8;
d += 8;
width -= 8;
} while (width != 0);
src += 2 * src_stride;
dst += 2 * dst_stride;
h -= 2;
} while (h > 0);
}
}
void aom_convolve8_horiz_neon(const uint8_t *src, ptrdiff_t src_stride,
uint8_t *dst, ptrdiff_t dst_stride,
const int16_t *filter_x, int x_step_q4,
const int16_t *filter_y, int y_step_q4, int w,
int h) {
assert((intptr_t)dst % 4 == 0);
assert(dst_stride % 4 == 0);
(void)x_step_q4;
(void)filter_y;
(void)y_step_q4;
src -= ((SUBPEL_TAPS / 2) - 1);
if (get_filter_taps_convolve8(filter_x) <= 4) {
convolve8_horiz_4tap_neon(src + 2, src_stride, dst, dst_stride, filter_x, w,
h);
} else {
convolve8_horiz_8tap_neon(src, src_stride, dst, dst_stride, filter_x, w, h);
}
}
void aom_convolve8_vert_neon(const uint8_t *src, ptrdiff_t src_stride,
uint8_t *dst, ptrdiff_t dst_stride,
const int16_t *filter_x, int x_step_q4,
const int16_t *filter_y, int y_step_q4, int w,
int h) {
const int16x8_t filter = vld1q_s16(filter_y);
assert((intptr_t)dst % 4 == 0);
assert(dst_stride % 4 == 0);
(void)filter_x;
(void)x_step_q4;
(void)y_step_q4;
src -= ((SUBPEL_TAPS / 2) - 1) * src_stride;
if (w == 4) {
uint8x8_t t0, t1, t2, t3, t4, t5, t6;
load_u8_8x7(src, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6);
int16x4_t s0 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t0)));
int16x4_t s1 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t1)));
int16x4_t s2 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t2)));
int16x4_t s3 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t3)));
int16x4_t s4 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t4)));
int16x4_t s5 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t5)));
int16x4_t s6 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t6)));
src += 7 * src_stride;
do {
load_u8_8x4(src, src_stride, &t0, &t1, &t2, &t3);
int16x4_t s7 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t0)));
int16x4_t s8 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t1)));
int16x4_t s9 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t2)));
int16x4_t s10 = vget_low_s16(vreinterpretq_s16_u16(vmovl_u8(t3)));
int16x4_t d0 = convolve8_4(s0, s1, s2, s3, s4, s5, s6, s7, filter);
int16x4_t d1 = convolve8_4(s1, s2, s3, s4, s5, s6, s7, s8, filter);
int16x4_t d2 = convolve8_4(s2, s3, s4, s5, s6, s7, s8, s9, filter);
int16x4_t d3 = convolve8_4(s3, s4, s5, s6, s7, s8, s9, s10, filter);
uint8x8_t d01 = vqrshrun_n_s16(vcombine_s16(d0, d1), FILTER_BITS);
uint8x8_t d23 = vqrshrun_n_s16(vcombine_s16(d2, d3), FILTER_BITS);
store_u8x4_strided_x2(dst + 0 * dst_stride, dst_stride, d01);
store_u8x4_strided_x2(dst + 2 * dst_stride, dst_stride, d23);
s0 = s4;
s1 = s5;
s2 = s6;
s3 = s7;
s4 = s8;
s5 = s9;
s6 = s10;
src += 4 * src_stride;
dst += 4 * dst_stride;
h -= 4;
} while (h != 0);
} else {
do {
uint8x8_t t0, t1, t2, t3, t4, t5, t6;
load_u8_8x7(src, src_stride, &t0, &t1, &t2, &t3, &t4, &t5, &t6);
int16x8_t s0 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s1 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s2 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s3 = vreinterpretq_s16_u16(vmovl_u8(t3));
int16x8_t s4 = vreinterpretq_s16_u16(vmovl_u8(t4));
int16x8_t s5 = vreinterpretq_s16_u16(vmovl_u8(t5));
int16x8_t s6 = vreinterpretq_s16_u16(vmovl_u8(t6));
int height = h;
const uint8_t *s = src + 7 * src_stride;
uint8_t *d = dst;
do {
load_u8_8x4(s, src_stride, &t0, &t1, &t2, &t3);
int16x8_t s7 = vreinterpretq_s16_u16(vmovl_u8(t0));
int16x8_t s8 = vreinterpretq_s16_u16(vmovl_u8(t1));
int16x8_t s9 = vreinterpretq_s16_u16(vmovl_u8(t2));
int16x8_t s10 = vreinterpretq_s16_u16(vmovl_u8(t3));
uint8x8_t d0 = convolve8_8(s0, s1, s2, s3, s4, s5, s6, s7, filter);
uint8x8_t d1 = convolve8_8(s1, s2, s3, s4, s5, s6, s7, s8, filter);
uint8x8_t d2 = convolve8_8(s2, s3, s4, s5, s6, s7, s8, s9, filter);
uint8x8_t d3 = convolve8_8(s3, s4, s5, s6, s7, s8, s9, s10, filter);
store_u8_8x4(d, dst_stride, d0, d1, d2, d3);
s0 = s4;
s1 = s5;
s2 = s6;
s3 = s7;
s4 = s8;
s5 = s9;
s6 = s10;
s += 4 * src_stride;
d += 4 * dst_stride;
height -= 4;
} while (height != 0);
src += 8;
dst += 8;
w -= 8;
} while (w != 0);
}
}
|