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

Side by Side Diff: source/patched-ffmpeg-mt/tools/graph2dot.c

Issue 4533003: patched ffmpeg nov 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008-2010 Stefano Sabatini 2 * Copyright (c) 2008-2010 Stefano Sabatini
3 * 3 *
4 * This file is part of FFmpeg. 4 * This file is part of FFmpeg.
5 * 5 *
6 * FFmpeg is free software; you can redistribute it and/or 6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public 7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version. 9 * version 2.1 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 AVFilterLink *link = filter_ctx->outputs[j]; 60 AVFilterLink *link = filter_ctx->outputs[j];
61 if (link) { 61 if (link) {
62 char dst_filter_ctx_label[128]; 62 char dst_filter_ctx_label[128];
63 const AVFilterContext *dst_filter_ctx = link->dst; 63 const AVFilterContext *dst_filter_ctx = link->dst;
64 64
65 snprintf(dst_filter_ctx_label, sizeof(dst_filter_ctx_label), "%s (%s)", 65 snprintf(dst_filter_ctx_label, sizeof(dst_filter_ctx_label), "%s (%s)",
66 dst_filter_ctx->name, 66 dst_filter_ctx->name,
67 dst_filter_ctx->filter->name); 67 dst_filter_ctx->filter->name);
68 68
69 fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filte r_ctx_label); 69 fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filte r_ctx_label);
70 fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d\"];\n", 70 fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d tb:%d/%d\" ];\n",
71 av_pix_fmt_descriptors[link->format].name, link->w, link ->h); 71 av_pix_fmt_descriptors[link->format].name, link->w, link ->h,
72 link->time_base.num, link->time_base.den);
72 } 73 }
73 } 74 }
74 } 75 }
75 fprintf(outfile, "}\n"); 76 fprintf(outfile, "}\n");
76 } 77 }
77 78
78 int main(int argc, char **argv) 79 int main(int argc, char **argv)
79 { 80 {
80 const char *outfilename = NULL; 81 const char *outfilename = NULL;
81 const char *infilename = NULL; 82 const char *infilename = NULL;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 *p = '\0'; 145 *p = '\0';
145 } 146 }
146 147
147 avfilter_register_all(); 148 avfilter_register_all();
148 149
149 if (avfilter_graph_parse(graph, graph_string, NULL, NULL, NULL) < 0) { 150 if (avfilter_graph_parse(graph, graph_string, NULL, NULL, NULL) < 0) {
150 fprintf(stderr, "Impossible to parse the graph description\n"); 151 fprintf(stderr, "Impossible to parse the graph description\n");
151 return 1; 152 return 1;
152 } 153 }
153 154
154 if (avfilter_graph_check_validity(graph, NULL) || 155 if (avfilter_graph_config(graph, NULL) < 0)
155 avfilter_graph_config_formats(graph, NULL) ||
156 avfilter_graph_config_links (graph, NULL))
157 return 1; 156 return 1;
158 157
159 print_digraph(outfile, graph); 158 print_digraph(outfile, graph);
160 fflush(outfile); 159 fflush(outfile);
161 160
162 return 0; 161 return 0;
163 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698