| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 /* Description : Horizontal 2 tap filter kernel code | 1919 /* Description : Horizontal 2 tap filter kernel code |
| 1920 Arguments : Inputs - in0, in1, mask, coeff, shift | 1920 Arguments : Inputs - in0, in1, mask, coeff, shift |
| 1921 */ | 1921 */ |
| 1922 #define HORIZ_2TAP_FILT_UH(in0, in1, mask, coeff, shift) ({ \ | 1922 #define HORIZ_2TAP_FILT_UH(in0, in1, mask, coeff, shift) ({ \ |
| 1923 v16i8 tmp0_m; \ | 1923 v16i8 tmp0_m; \ |
| 1924 v8u16 tmp1_m; \ | 1924 v8u16 tmp1_m; \ |
| 1925 \ | 1925 \ |
| 1926 tmp0_m = __msa_vshf_b((v16i8)mask, (v16i8)in1, (v16i8)in0); \ | 1926 tmp0_m = __msa_vshf_b((v16i8)mask, (v16i8)in1, (v16i8)in0); \ |
| 1927 tmp1_m = __msa_dotp_u_h((v16u8)tmp0_m, (v16u8)coeff); \ | 1927 tmp1_m = __msa_dotp_u_h((v16u8)tmp0_m, (v16u8)coeff); \ |
| 1928 tmp1_m = (v8u16)__msa_srari_h((v8i16)tmp1_m, shift); \ | 1928 tmp1_m = (v8u16)__msa_srari_h((v8i16)tmp1_m, shift); \ |
| 1929 tmp1_m = __msa_sat_u_h(tmp1_m, shift); \ | |
| 1930 \ | 1929 \ |
| 1931 tmp1_m; \ | 1930 tmp1_m; \ |
| 1932 }) | 1931 }) |
| 1933 #endif /* VPX_DSP_MIPS_MACROS_MSA_H_ */ | 1932 #endif /* VPX_DSP_MIPS_MACROS_MSA_H_ */ |
| OLD | NEW |