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

Side by Side Diff: source/libvpx/vp8/encoder/x86/denoising_sse2.c

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp8/encoder/tokenize.c ('k') | source/libvpx/vp8/vp8_cx_iface.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/tokenize.c ('k') | source/libvpx/vp8/vp8_cx_iface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698