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 #include "vpx_config.h" | 11 #include "vpx_config.h" |
12 #include "vp8/common/variance.h" | 12 #include "vp8/common/variance.h" |
13 #include "vp8/common/pragmas.h" | |
14 #include "vpx_ports/mem.h" | 13 #include "vpx_ports/mem.h" |
15 #include "vp8/common/x86/filter_x86.h" | 14 #include "vp8/common/x86/filter_x86.h" |
16 | 15 |
17 extern void filter_block1d_h6_mmx(const unsigned char *src_ptr, unsigned short *
output_ptr, unsigned int src_pixels_per_line, unsigned int pixel_step, unsigned
int output_height, unsigned int output_width, short *filter); | 16 extern void filter_block1d_h6_mmx(const unsigned char *src_ptr, unsigned short *
output_ptr, unsigned int src_pixels_per_line, unsigned int pixel_step, unsigned
int output_height, unsigned int output_width, short *filter); |
18 extern void filter_block1d_v6_mmx(const short *src_ptr, unsigned char *output_pt
r, unsigned int pixels_per_line, unsigned int pixel_step, unsigned int output_he
ight, unsigned int output_width, short *filter); | 17 extern void filter_block1d_v6_mmx(const short *src_ptr, unsigned char *output_pt
r, unsigned int pixels_per_line, unsigned int pixel_step, unsigned int output_he
ight, unsigned int output_width, short *filter); |
19 extern void filter_block1d8_h6_sse2(const unsigned char *src_ptr, unsigned short
*output_ptr, unsigned int src_pixels_per_line, unsigned int pixel_step, unsigne
d int output_height, unsigned int output_width, short *filter); | 18 extern void filter_block1d8_h6_sse2(const unsigned char *src_ptr, unsigned short
*output_ptr, unsigned int src_pixels_per_line, unsigned int pixel_step, unsigne
d int output_height, unsigned int output_width, short *filter); |
20 extern void filter_block1d8_v6_sse2(const short *src_ptr, unsigned char *output_
ptr, unsigned int pixels_per_line, unsigned int pixel_step, unsigned int output_
height, unsigned int output_width, short *filter); | 19 extern void filter_block1d8_v6_sse2(const short *src_ptr, unsigned char *output_
ptr, unsigned int pixels_per_line, unsigned int pixel_step, unsigned int output_
height, unsigned int output_width, short *filter); |
21 | 20 |
22 extern void vp8_filter_block2d_bil4x4_var_mmx | 21 extern void vp8_filter_block2d_bil4x4_var_mmx |
23 ( | 22 ( |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 unsigned int xxsum0; | 548 unsigned int xxsum0; |
550 | 549 |
551 vp8_half_horiz_vert_variance16x_h_sse2( | 550 vp8_half_horiz_vert_variance16x_h_sse2( |
552 src_ptr, src_pixels_per_line, | 551 src_ptr, src_pixels_per_line, |
553 dst_ptr, dst_pixels_per_line, 16, | 552 dst_ptr, dst_pixels_per_line, 16, |
554 &xsum0, &xxsum0); | 553 &xsum0, &xxsum0); |
555 | 554 |
556 *sse = xxsum0; | 555 *sse = xxsum0; |
557 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 8)); | 556 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 8)); |
558 } | 557 } |
OLD | NEW |