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

Side by Side Diff: source/libvpx/vp8/encoder/picklpf.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « source/libvpx/vp8/encoder/pickinter.c ('k') | source/libvpx/vp8/encoder/ratectrl.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) 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_dsp_rtcd.h"
12 #include "./vpx_scale_rtcd.h" 13 #include "./vpx_scale_rtcd.h"
13 #include "vp8/common/onyxc_int.h" 14 #include "vp8/common/onyxc_int.h"
14 #include "onyx_int.h" 15 #include "onyx_int.h"
15 #include "quantize.h" 16 #include "quantize.h"
16 #include "vpx_mem/vpx_mem.h" 17 #include "vpx_mem/vpx_mem.h"
17 #include "vpx_scale/vpx_scale.h" 18 #include "vpx_scale/vpx_scale.h"
18 #include "vp8/common/alloccommon.h" 19 #include "vp8/common/alloccommon.h"
19 #include "vp8/common/loopfilter.h" 20 #include "vp8/common/loopfilter.h"
20 #if ARCH_ARM 21 #if ARCH_ARM
21 #include "vpx_ports/arm.h" 22 #include "vpx_ports/arm.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 dst += dstoffset; 77 dst += dstoffset;
77 78
78 /* Loop through the Y plane raw and reconstruction data summing 79 /* Loop through the Y plane raw and reconstruction data summing
79 * (square differences) 80 * (square differences)
80 */ 81 */
81 for (i = 0; i < linestocopy; i += 16) 82 for (i = 0; i < linestocopy; i += 16)
82 { 83 {
83 for (j = 0; j < source->y_width; j += 16) 84 for (j = 0; j < source->y_width; j += 16)
84 { 85 {
85 unsigned int sse; 86 unsigned int sse;
86 Total += vp8_mse16x16(src + j, source->y_stride, 87 Total += vpx_mse16x16(src + j, source->y_stride,
87 dst + j, dest->y_stride, 88 dst + j, dest->y_stride,
88 &sse); 89 &sse);
89 } 90 }
90 91
91 src += 16 * source->y_stride; 92 src += 16 * source->y_stride;
92 dst += 16 * dest->y_stride; 93 dst += 16 * dest->y_stride;
93 } 94 }
94 95
95 return Total; 96 return Total;
96 } 97 }
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 filt_direction = (filt_best < filt_mid) ? -1 : 1; 398 filt_direction = (filt_best < filt_mid) ? -1 : 1;
398 filt_mid = filt_best; 399 filt_mid = filt_best;
399 } 400 }
400 } 401 }
401 402
402 cm->filter_level = filt_best; 403 cm->filter_level = filt_best;
403 404
404 /* restore unfiltered frame pointer */ 405 /* restore unfiltered frame pointer */
405 cm->frame_to_show = saved_frame; 406 cm->frame_to_show = saved_frame;
406 } 407 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/pickinter.c ('k') | source/libvpx/vp8/encoder/ratectrl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698