Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f054dbee
Commit
f054dbee
authored
Jun 24, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/graph2dot: make dot graph representation a bit more compact
parent
6eff2772
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
graph2dot.c
tools/graph2dot.c
+6
-6
No files found.
tools/graph2dot.c
View file @
f054dbee
...
...
@@ -52,7 +52,7 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
char
filter_ctx_label
[
128
];
const
AVFilterContext
*
filter_ctx
=
graph
->
filters
[
i
];
snprintf
(
filter_ctx_label
,
sizeof
(
filter_ctx_label
),
"%s
(%s)"
,
snprintf
(
filter_ctx_label
,
sizeof
(
filter_ctx_label
),
"%s
\\
n
(%s)"
,
filter_ctx
->
name
,
filter_ctx
->
filter
->
name
);
...
...
@@ -63,12 +63,13 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
const
AVFilterContext
*
dst_filter_ctx
=
link
->
dst
;
snprintf
(
dst_filter_ctx_label
,
sizeof
(
dst_filter_ctx_label
),
"%s
(%s)"
,
"%s
\\
n
(%s)"
,
dst_filter_ctx
->
name
,
dst_filter_ctx
->
filter
->
name
);
fprintf
(
outfile
,
"
\"
%s
\"
->
\"
%s
\"
[ label=
\"
inpad:%s "
,
filter_ctx_label
,
dst_filter_ctx_label
,
link
->
srcpad
->
name
);
fprintf
(
outfile
,
"
\"
%s
\"
->
\"
%s
\"
[ label=
\"
inpad:%s -> outpad:%s
\\
n"
,
filter_ctx_label
,
dst_filter_ctx_label
,
link
->
srcpad
->
name
,
link
->
dstpad
->
name
);
if
(
link
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
fprintf
(
outfile
,
...
...
@@ -86,8 +87,7 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
link
->
sample_rate
,
buf
,
link
->
time_base
.
num
,
link
->
time_base
.
den
);
}
fprintf
(
outfile
,
" outpad:%s
\"
];
\n
"
,
link
->
dstpad
->
name
);
fprintf
(
outfile
,
"
\n
]"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment