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

Side by Side Diff: source/libvpx/vp8/common/postproc.c

Issue 12077018: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 10 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/common/onyxd.h ('k') | source/libvpx/vp8/decoder/onyxd_if.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
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 void vp8_deblock(VP8_COMMON *cm, 327 void vp8_deblock(VP8_COMMON *cm,
328 YV12_BUFFER_CONFIG *source, 328 YV12_BUFFER_CONFIG *source,
329 YV12_BUFFER_CONFIG *post, 329 YV12_BUFFER_CONFIG *post,
330 int q, 330 int q,
331 int low_var_thresh, 331 int low_var_thresh,
332 int flag) 332 int flag)
333 { 333 {
334 double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065; 334 double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065;
335 int ppl = (int)(level + .5); 335 int ppl = (int)(level + .5);
336 336
337 const MODE_INFO *mode_info_context = cm->mi; 337 const MODE_INFO *mode_info_context = cm->show_frame_mi;
338 int mbr, mbc; 338 int mbr, mbc;
339 339
340 /* The pixel thresholds are adjusted according to if or not the macroblock 340 /* The pixel thresholds are adjusted according to if or not the macroblock
341 * is a skipped block. */ 341 * is a skipped block. */
342 unsigned char *ylimits = cm->pp_limits_buffer; 342 unsigned char *ylimits = cm->pp_limits_buffer;
343 unsigned char *uvlimits = cm->pp_limits_buffer + 16 * cm->mb_cols; 343 unsigned char *uvlimits = cm->pp_limits_buffer + 16 * cm->mb_cols;
344 (void) low_var_thresh; 344 (void) low_var_thresh;
345 (void) flag; 345 (void) flag;
346 346
347 if (ppl > 0) 347 if (ppl > 0)
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 1198
1199 *dest = oci->post_proc_buffer; 1199 *dest = oci->post_proc_buffer;
1200 1200
1201 /* handle problem with extending borders */ 1201 /* handle problem with extending borders */
1202 dest->y_width = oci->Width; 1202 dest->y_width = oci->Width;
1203 dest->y_height = oci->Height; 1203 dest->y_height = oci->Height;
1204 dest->uv_height = dest->y_height / 2; 1204 dest->uv_height = dest->y_height / 2;
1205 return 0; 1205 return 0;
1206 } 1206 }
1207 #endif 1207 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/onyxd.h ('k') | source/libvpx/vp8/decoder/onyxd_if.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698