/src/avm/av2/common/cdef_block_sse4.c
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2021, Alliance for Open Media. All rights reserved |
3 | | * |
4 | | * This source code is subject to the terms of the BSD 3-Clause Clear License |
5 | | * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear |
6 | | * License was not distributed with this source code in the LICENSE file, you |
7 | | * can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the |
8 | | * Alliance for Open Media Patent License 1.0 was not distributed with this |
9 | | * source code in the PATENTS file, you can obtain it at |
10 | | * aomedia.org/license/patent-license/. |
11 | | */ |
12 | | |
13 | | #include "avm_dsp/avm_simd.h" |
14 | | #define SIMD_FUNC(name) name##_sse4_1 |
15 | | #include "av2/common/cdef_block_simd.h" |
16 | | |
17 | | /* SSE4_1 function which computes the CDEF directions of two 8x8 blocks */ |
18 | | void av2_cdef_find_dir_dual_sse4_1(const uint16_t *img1, const uint16_t *img2, |
19 | | int stride, int32_t *var_out_1st, |
20 | | int32_t *var_out_2nd, int coeff_shift, |
21 | 0 | int *out_dir_1st_8x8, int *out_dir_2nd_8x8) { |
22 | | // Process first 8x8. |
23 | 0 | *out_dir_1st_8x8 = av2_cdef_find_dir(img1, stride, var_out_1st, coeff_shift); |
24 | | |
25 | | // Process second 8x8. |
26 | 0 | *out_dir_2nd_8x8 = av2_cdef_find_dir(img2, stride, var_out_2nd, coeff_shift); |
27 | 0 | } |