OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 | 11 |
12 #include "vpx_ports/config.h" | 12 #include "./vpx_config.h" |
13 #include "vpx_ports/x86.h" | 13 #include "vpx_ports/x86.h" |
14 #include "vp9/encoder/vp9_variance.h" | 14 #include "vp9/encoder/vp9_variance.h" |
15 #include "vp9/encoder/vp9_onyx_int.h" | 15 #include "vp9/encoder/vp9_onyx_int.h" |
16 #include "vp9/encoder/x86/vp9_dct_mmx.h" | 16 #include "vp9/encoder/x86/vp9_dct_mmx.h" |
17 | 17 |
18 // TODO(jimbankoski) Consider rewriting the c to take the same values rather | 18 // TODO(jimbankoski) Consider rewriting the c to take the same values rather |
19 // than going through these pointer conversions | 19 // than going through these pointer conversions |
20 #if HAVE_MMX | 20 #if HAVE_MMX |
21 void vp9_short_fdct8x4_mmx(short *input, short *output, int pitch) { | 21 void vp9_short_fdct8x4_mmx(short *input, short *output, int pitch) { |
22 vp9_short_fdct4x4_mmx(input, output, pitch); | 22 vp9_short_fdct4x4_mmx(input, output, pitch); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 int pitch); | 70 int pitch); |
71 void vp9_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) { | 71 void vp9_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) { |
72 unsigned char *z = *(be->base_src) + be->src; | 72 unsigned char *z = *(be->base_src) + be->src; |
73 unsigned int src_stride = be->src_stride; | 73 unsigned int src_stride = be->src_stride; |
74 short *diff = &be->src_diff[0]; | 74 short *diff = &be->src_diff[0]; |
75 unsigned char *predictor = &bd->predictor[0]; | 75 unsigned char *predictor = &bd->predictor[0]; |
76 vp9_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch); | 76 vp9_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch); |
77 } | 77 } |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |