| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 mb_index++; | 74 mb_index++; |
| 75 } | 75 } |
| 76 | 76 |
| 77 mb_index++; | 77 mb_index++; |
| 78 fprintf(mvs, "\n"); | 78 fprintf(mvs, "\n"); |
| 79 } | 79 } |
| 80 | 80 |
| 81 fprintf(mvs, "\n"); | 81 fprintf(mvs, "\n"); |
| 82 | 82 |
| 83 /* print out the block modes */ | 83 /* print out the block modes */ |
| 84 mb_index = 0; | |
| 85 fprintf(mvs, "Mbs for Frame %d\n", frame); | 84 fprintf(mvs, "Mbs for Frame %d\n", frame); |
| 86 { | 85 { |
| 87 int b_row; | 86 int b_row; |
| 88 | 87 |
| 89 for (b_row = 0; b_row < 4 * rows; b_row++) | 88 for (b_row = 0; b_row < 4 * rows; b_row++) |
| 90 { | 89 { |
| 91 int b_col; | 90 int b_col; |
| 92 int bindex; | 91 int bindex; |
| 93 | 92 |
| 94 for (b_col = 0; b_col < 4 * cols; b_col++) | 93 for (b_col = 0; b_col < 4 * cols; b_col++) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 122 } | 121 } |
| 123 | 122 |
| 124 mb_index++; | 123 mb_index++; |
| 125 fprintf(mvs, "\n"); | 124 fprintf(mvs, "\n"); |
| 126 } | 125 } |
| 127 | 126 |
| 128 fprintf(mvs, "\n"); | 127 fprintf(mvs, "\n"); |
| 129 | 128 |
| 130 | 129 |
| 131 /* print out the block modes */ | 130 /* print out the block modes */ |
| 132 mb_index = 0; | |
| 133 fprintf(mvs, "MVs for Frame %d\n", frame); | 131 fprintf(mvs, "MVs for Frame %d\n", frame); |
| 134 { | 132 { |
| 135 int b_row; | 133 int b_row; |
| 136 | 134 |
| 137 for (b_row = 0; b_row < 4 * rows; b_row++) | 135 for (b_row = 0; b_row < 4 * rows; b_row++) |
| 138 { | 136 { |
| 139 int b_col; | 137 int b_col; |
| 140 int bindex; | 138 int bindex; |
| 141 | 139 |
| 142 for (b_col = 0; b_col < 4 * cols; b_col++) | 140 for (b_col = 0; b_col < 4 * cols; b_col++) |
| 143 { | 141 { |
| 144 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2); | 142 mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2); |
| 145 bindex = (b_row & 3) * 4 + (b_col & 3); | 143 bindex = (b_row & 3) * 4 + (b_col & 3); |
| 146 fprintf(mvs, "%3d:%-3d ", mi[mb_index].bmi[bindex].mv.as_mv.row,
mi[mb_index].bmi[bindex].mv.as_mv.col); | 144 fprintf(mvs, "%3d:%-3d ", mi[mb_index].bmi[bindex].mv.as_mv.row,
mi[mb_index].bmi[bindex].mv.as_mv.col); |
| 147 | 145 |
| 148 } | 146 } |
| 149 | 147 |
| 150 fprintf(mvs, "\n"); | 148 fprintf(mvs, "\n"); |
| 151 } | 149 } |
| 152 } | 150 } |
| 153 fprintf(mvs, "\n"); | 151 fprintf(mvs, "\n"); |
| 154 | 152 |
| 155 | 153 |
| 156 fclose(mvs); | 154 fclose(mvs); |
| 157 } | 155 } |
| OLD | NEW |