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

Side by Side Diff: source/libvpx/vp9/common/vp9_postproc.c

Issue 168343002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 6 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/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_pred_common.h » ('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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 MODE_INFO *mi = cm->mi; 693 MODE_INFO *mi = cm->mi;
694 694
695 y_ptr = post->y_buffer + 4 * post->y_stride + 4; 695 y_ptr = post->y_buffer + 4 * post->y_stride + 4;
696 696
697 /* vp9_filter each macro block */ 697 /* vp9_filter each macro block */
698 for (i = 0; i < mb_rows; i++) { 698 for (i = 0; i < mb_rows; i++) {
699 for (j = 0; j < mb_cols; j++) { 699 for (j = 0; j < mb_cols; j++) {
700 char zz[4]; 700 char zz[4];
701 int dc_diff = !(mi[mb_index].mbmi.mode != I4X4_PRED && 701 int dc_diff = !(mi[mb_index].mbmi.mode != I4X4_PRED &&
702 mi[mb_index].mbmi.mode != SPLITMV && 702 mi[mb_index].mbmi.mode != SPLITMV &&
703 mi[mb_index].mbmi.skip_coeff); 703 mi[mb_index].mbmi.skip);
704 704
705 if (cm->frame_type == KEY_FRAME) 705 if (cm->frame_type == KEY_FRAME)
706 snprintf(zz, sizeof(zz) - 1, "a"); 706 snprintf(zz, sizeof(zz) - 1, "a");
707 else 707 else
708 snprintf(zz, sizeof(zz) - 1, "%c", dc_diff + '0'); 708 snprintf(zz, sizeof(zz) - 1, "%c", dc_diff + '0');
709 709
710 vp9_blit_text(zz, y_ptr, post->y_stride); 710 vp9_blit_text(zz, y_ptr, post->y_stride);
711 mb_index++; 711 mb_index++;
712 y_ptr += 16; 712 y_ptr += 16;
713 } 713 }
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 *dest = *ppbuf; 968 *dest = *ppbuf;
969 969
970 /* handle problem with extending borders */ 970 /* handle problem with extending borders */
971 dest->y_width = cm->width; 971 dest->y_width = cm->width;
972 dest->y_height = cm->height; 972 dest->y_height = cm->height;
973 dest->uv_width = dest->y_width >> cm->subsampling_x; 973 dest->uv_width = dest->y_width >> cm->subsampling_x;
974 dest->uv_height = dest->y_height >> cm->subsampling_y; 974 dest->uv_height = dest->y_height >> cm->subsampling_y;
975 975
976 return 0; 976 return 0;
977 } 977 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_pred_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698