Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: source/libvpx/vpx_dsp/mips/macros_msa.h

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_ */
OLDNEW
« no previous file with comments | « source/libvpx/vpx_dsp/mips/itrans8_dspr2.c ('k') | source/libvpx/vpx_dsp/mips/sub_pixel_variance_msa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698