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

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

Issue 16835006: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | 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
11 #include <stdio.h> 11 #include <stdio.h>
12 12
13 #include "vp9/common/vp9_blockd.h" 13 #include "vp9/common/vp9_blockd.h"
14 #include "vp9/common/vp9_onyxc_int.h" 14 #include "vp9/common/vp9_onyxc_int.h"
15 15
16 static void log_frame_info(VP9_COMMON *cm, const char *str, FILE *f) { 16 static void log_frame_info(VP9_COMMON *cm, const char *str, FILE *f) {
17 fprintf(f, "%s", str); 17 fprintf(f, "%s", str);
18 fprintf(f, "(Frame %d, Show:%d, Q:%d): \n", cm->current_video_frame, 18 fprintf(f, "(Frame %d, Show:%d, Q:%d): \n", cm->current_video_frame,
19 cm->show_frame, cm->base_qindex); 19 cm->show_frame, cm->base_qindex);
20 } 20 }
21 /* This function dereferences a pointer to the mbmi structure 21 /* This function dereferences a pointer to the mbmi structure
22 * and uses the passed in member offset to print out the value of an integer 22 * and uses the passed in member offset to print out the value of an integer
23 * for each mbmi member value in the mi structure. 23 * for each mbmi member value in the mi structure.
24 */ 24 */
25 static void print_mi_data(VP9_COMMON *common, FILE *file, char *descriptor, 25 static void print_mi_data(VP9_COMMON *common, FILE *file, char *descriptor,
26 int member_offset) { 26 size_t member_offset) {
27 int mi_row; 27 int mi_row;
28 int mi_col; 28 int mi_col;
29 int mi_index = 0; 29 int mi_index = 0;
30 MODE_INFO *mi = common->mi; 30 MODE_INFO *mi = common->mi;
31 int rows = common->mi_rows; 31 int rows = common->mi_rows;
32 int cols = common->mi_cols; 32 int cols = common->mi_cols;
33 char prefix = descriptor[0]; 33 char prefix = descriptor[0];
34 34
35 log_frame_info(common, descriptor, file); 35 log_frame_info(common, descriptor, file);
36 mi_index = 0; 36 mi_index = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698