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

Side by Side Diff: source/libvpx/vp9/common/vp9_debugmodes.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_convolve.c ('k') | source/libvpx/vp9/common/vp9_entropy.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int mi_row; 51 int mi_row;
52 int mi_col; 52 int mi_col;
53 int mi_index = 0; 53 int mi_index = 0;
54 FILE *mvs = fopen(file, "a"); 54 FILE *mvs = fopen(file, "a");
55 MODE_INFO **mi_8x8 = cm->mi_grid_visible; 55 MODE_INFO **mi_8x8 = cm->mi_grid_visible;
56 int rows = cm->mi_rows; 56 int rows = cm->mi_rows;
57 int cols = cm->mi_cols; 57 int cols = cm->mi_cols;
58 58
59 print_mi_data(cm, mvs, "Partitions:", offsetof(MB_MODE_INFO, sb_type)); 59 print_mi_data(cm, mvs, "Partitions:", offsetof(MB_MODE_INFO, sb_type));
60 print_mi_data(cm, mvs, "Modes:", offsetof(MB_MODE_INFO, mode)); 60 print_mi_data(cm, mvs, "Modes:", offsetof(MB_MODE_INFO, mode));
61 print_mi_data(cm, mvs, "Skips:", offsetof(MB_MODE_INFO, skip_coeff)); 61 print_mi_data(cm, mvs, "Skips:", offsetof(MB_MODE_INFO, skip));
62 print_mi_data(cm, mvs, "Ref frame:", offsetof(MB_MODE_INFO, ref_frame[0])); 62 print_mi_data(cm, mvs, "Ref frame:", offsetof(MB_MODE_INFO, ref_frame[0]));
63 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, tx_size)); 63 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, tx_size));
64 print_mi_data(cm, mvs, "UV Modes:", offsetof(MB_MODE_INFO, uv_mode)); 64 print_mi_data(cm, mvs, "UV Modes:", offsetof(MB_MODE_INFO, uv_mode));
65 65
66 log_frame_info(cm, "Vectors ", mvs); 66 log_frame_info(cm, "Vectors ", mvs);
67 for (mi_row = 0; mi_row < rows; mi_row++) { 67 for (mi_row = 0; mi_row < rows; mi_row++) {
68 fprintf(mvs, "V "); 68 fprintf(mvs, "V ");
69 for (mi_col = 0; mi_col < cols; mi_col++) { 69 for (mi_col = 0; mi_col < cols; mi_col++) {
70 fprintf(mvs, "%4d:%4d ", mi_8x8[mi_index]->mbmi.mv[0].as_mv.row, 70 fprintf(mvs, "%4d:%4d ", mi_8x8[mi_index]->mbmi.mv[0].as_mv.row,
71 mi_8x8[mi_index]->mbmi.mv[0].as_mv.col); 71 mi_8x8[mi_index]->mbmi.mv[0].as_mv.col);
72 mi_index++; 72 mi_index++;
73 } 73 }
74 fprintf(mvs, "\n"); 74 fprintf(mvs, "\n");
75 mi_index += 8; 75 mi_index += 8;
76 } 76 }
77 fprintf(mvs, "\n"); 77 fprintf(mvs, "\n");
78 78
79 fclose(mvs); 79 fclose(mvs);
80 } 80 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_convolve.c ('k') | source/libvpx/vp9/common/vp9_entropy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698