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

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

Issue 23600008: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 3 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int mi_row; 50 int mi_row;
51 int mi_col; 51 int mi_col;
52 int mi_index = 0; 52 int mi_index = 0;
53 FILE *mvs = fopen(file, "a"); 53 FILE *mvs = fopen(file, "a");
54 MODE_INFO *mi = cm->mi; 54 MODE_INFO *mi = cm->mi;
55 int rows = cm->mi_rows; 55 int rows = cm->mi_rows;
56 int cols = cm->mi_cols; 56 int cols = cm->mi_cols;
57 57
58 print_mi_data(cm, mvs, "Partitions:", offsetof(MB_MODE_INFO, sb_type)); 58 print_mi_data(cm, mvs, "Partitions:", offsetof(MB_MODE_INFO, sb_type));
59 print_mi_data(cm, mvs, "Modes:", offsetof(MB_MODE_INFO, mode)); 59 print_mi_data(cm, mvs, "Modes:", offsetof(MB_MODE_INFO, mode));
60 print_mi_data(cm, mvs, "Skips:", offsetof(MB_MODE_INFO, mb_skip_coeff)); 60 print_mi_data(cm, mvs, "Skips:", offsetof(MB_MODE_INFO, skip_coeff));
61 print_mi_data(cm, mvs, "Ref frame:", offsetof(MB_MODE_INFO, ref_frame[0])); 61 print_mi_data(cm, mvs, "Ref frame:", offsetof(MB_MODE_INFO, ref_frame[0]));
62 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, txfm_size)); 62 print_mi_data(cm, mvs, "Transform:", offsetof(MB_MODE_INFO, txfm_size));
63 print_mi_data(cm, mvs, "UV Modes:", offsetof(MB_MODE_INFO, uv_mode)); 63 print_mi_data(cm, mvs, "UV Modes:", offsetof(MB_MODE_INFO, uv_mode));
64 64
65 log_frame_info(cm, "Vectors ",mvs); 65 log_frame_info(cm, "Vectors ",mvs);
66 for (mi_row = 0; mi_row < rows; mi_row++) { 66 for (mi_row = 0; mi_row < rows; mi_row++) {
67 fprintf(mvs,"V "); 67 fprintf(mvs,"V ");
68 for (mi_col = 0; mi_col < cols; mi_col++) { 68 for (mi_col = 0; mi_col < cols; mi_col++) {
69 fprintf(mvs, "%4d:%4d ", mi[mi_index].mbmi.mv[0].as_mv.row, 69 fprintf(mvs, "%4d:%4d ", mi[mi_index].mbmi.mv[0].as_mv.row,
70 mi[mi_index].mbmi.mv[0].as_mv.col); 70 mi[mi_index].mbmi.mv[0].as_mv.col);
71 mi_index++; 71 mi_index++;
72 } 72 }
73 fprintf(mvs, "\n"); 73 fprintf(mvs, "\n");
74 mi_index += 8; 74 mi_index += 8;
75 } 75 }
76 fprintf(mvs, "\n"); 76 fprintf(mvs, "\n");
77 77
78 fclose(mvs); 78 fclose(mvs);
79 } 79 }
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