OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 "vp8/encoder/denoising.h" | 11 #include "vp8/encoder/denoising.h" |
12 #include "vp8/common/reconinter.h" | 12 #include "vp8/common/reconinter.h" |
13 #include "vpx/vpx_integer.h" | 13 #include "vpx/vpx_integer.h" |
14 #include "vpx_mem/vpx_mem.h" | 14 #include "vpx_mem/vpx_mem.h" |
15 #include "vp8_rtcd.h" | 15 #include "vp8_rtcd.h" |
16 | 16 |
17 #include <emmintrin.h> | 17 #include <emmintrin.h> |
| 18 #include "vpx_ports/emmintrin_compat.h" |
18 | 19 |
19 union sum_union { | 20 union sum_union { |
20 __m128i v; | 21 __m128i v; |
21 signed char e[16]; | 22 signed char e[16]; |
22 }; | 23 }; |
23 | 24 |
24 int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg, | 25 int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg, |
25 YV12_BUFFER_CONFIG *running_avg, | 26 YV12_BUFFER_CONFIG *running_avg, |
26 MACROBLOCK *signal, unsigned int motion_magnitude, | 27 MACROBLOCK *signal, unsigned int motion_magnitude, |
27 int y_offset, int uv_offset) | 28 int y_offset, int uv_offset) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 if (abs(sum_diff) > SUM_DIFF_THRESHOLD) | 111 if (abs(sum_diff) > SUM_DIFF_THRESHOLD) |
111 { | 112 { |
112 return COPY_BLOCK; | 113 return COPY_BLOCK; |
113 } | 114 } |
114 } | 115 } |
115 | 116 |
116 vp8_copy_mem16x16(running_avg->y_buffer + y_offset, avg_y_stride, | 117 vp8_copy_mem16x16(running_avg->y_buffer + y_offset, avg_y_stride, |
117 signal->thismb, sig_stride); | 118 signal->thismb, sig_stride); |
118 return FILTER_BLOCK; | 119 return FILTER_BLOCK; |
119 } | 120 } |
OLD | NEW |