OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |