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

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

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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
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 "vpx_rtcd.h" 15 #include "vp8_rtcd.h"
16 16
17 #include <emmintrin.h> 17 #include <emmintrin.h>
18 18
19 union sum_union { 19 union sum_union {
20 __m128i v; 20 __m128i v;
21 signed char e[16]; 21 signed char e[16];
22 }; 22 };
23 23
24 int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg, 24 int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg,
25 YV12_BUFFER_CONFIG *running_avg, 25 YV12_BUFFER_CONFIG *running_avg,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (abs(sum_diff) > SUM_DIFF_THRESHOLD) 110 if (abs(sum_diff) > SUM_DIFF_THRESHOLD)
111 { 111 {
112 return COPY_BLOCK; 112 return COPY_BLOCK;
113 } 113 }
114 } 114 }
115 115
116 vp8_copy_mem16x16(running_avg->y_buffer + y_offset, avg_y_stride, 116 vp8_copy_mem16x16(running_avg->y_buffer + y_offset, avg_y_stride,
117 signal->thismb, sig_stride); 117 signal->thismb, sig_stride);
118 return FILTER_BLOCK; 118 return FILTER_BLOCK;
119 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698