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

Side by Side Diff: source/libvpx/vp9/common/mips/msa/vp9_idct_msa.h

Issue 1169543007: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
11 #ifndef VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_ 11 #ifndef VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_
12 #define VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_ 12 #define VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_
13 13
14 #include <assert.h>
15
16 #include "vpx_ports/mem.h" 14 #include "vpx_ports/mem.h"
17 #include "vp9/common/vp9_idct.h" 15 #include "vp9/common/vp9_idct.h"
18 #include "vp9/common/mips/msa/vp9_macros_msa.h" 16 #include "vp9/common/mips/msa/vp9_macros_msa.h"
19 17
20 #define VP9_DOTP_CONST_PAIR(reg0, reg1, cnst0, cnst1, out0, out1) { \ 18 #define VP9_DOTP_CONST_PAIR(reg0, reg1, cnst0, cnst1, out0, out1) { \
21 v8i16 k0_m = __msa_fill_h(cnst0); \ 19 v8i16 k0_m = __msa_fill_h(cnst0); \
22 v4i32 s0_m, s1_m, s2_m, s3_m; \ 20 v4i32 s0_m, s1_m, s2_m, s3_m; \
23 \ 21 \
24 s0_m = (v4i32)__msa_fill_h(cnst1); \ 22 s0_m = (v4i32)__msa_fill_h(cnst1); \
25 k0_m = __msa_ilvev_h((v8i16)s0_m, k0_m); \ 23 k0_m = __msa_ilvev_h((v8i16)s0_m, k0_m); \
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 k0_m = VP9_SET_COSPI_PAIR(cospi_16_64, cospi_16_64); \ 472 k0_m = VP9_SET_COSPI_PAIR(cospi_16_64, cospi_16_64); \
475 k1_m = VP9_SET_COSPI_PAIR(-cospi_16_64, -cospi_16_64); \ 473 k1_m = VP9_SET_COSPI_PAIR(-cospi_16_64, -cospi_16_64); \
476 k2_m = VP9_SET_COSPI_PAIR(cospi_16_64, -cospi_16_64); \ 474 k2_m = VP9_SET_COSPI_PAIR(cospi_16_64, -cospi_16_64); \
477 k3_m = VP9_SET_COSPI_PAIR(-cospi_16_64, cospi_16_64); \ 475 k3_m = VP9_SET_COSPI_PAIR(-cospi_16_64, cospi_16_64); \
478 VP9_MADD_SHORT(h10_m, h11_m, k1_m, k2_m, out2, out3); \ 476 VP9_MADD_SHORT(h10_m, h11_m, k1_m, k2_m, out2, out3); \
479 VP9_MADD_SHORT(out6, out7, k0_m, k3_m, out6, out7); \ 477 VP9_MADD_SHORT(out6, out7, k0_m, k3_m, out6, out7); \
480 VP9_MADD_SHORT(out10, out11, k0_m, k3_m, out10, out11); \ 478 VP9_MADD_SHORT(out10, out11, k0_m, k3_m, out10, out11); \
481 VP9_MADD_SHORT(out14, out15, k1_m, k2_m, out14, out15); \ 479 VP9_MADD_SHORT(out14, out15, k1_m, k2_m, out14, out15); \
482 } 480 }
483 #endif /* VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_ */ 481 #endif /* VP9_COMMON_MIPS_MSA_VP9_IDCT_MSA_H_ */
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/mips/msa/vp9_idct8x8_msa.c ('k') | source/libvpx/vp9/common/mips/msa/vp9_loopfilter_16_msa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698