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
ce7266c6
Commit
ce7266c6
authored
Jun 06, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/graph2dot: factorize code printing non-media specific link information
parent
20689670
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
graph2dot.c
tools/graph2dot.c
+10
-12
No files found.
tools/graph2dot.c
View file @
ce7266c6
...
...
@@ -67,29 +67,27 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
dst_filter_ctx
->
name
,
dst_filter_ctx
->
filter
->
name
);
fprintf
(
outfile
,
"
\"
%s
\"
->
\"
%s
\"
"
,
filter_ctx_label
,
dst_filter_ctx_label
);
fprintf
(
outfile
,
"
\"
%s
\"
->
\"
%s
\"
[ label=
\"
inpad:%s "
,
filter_ctx_label
,
dst_filter_ctx_label
,
link
->
srcpad
->
name
);
if
(
link
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
fprintf
(
outfile
,
" [ label=
\"
inpad:%s fmt:%s w:%d h:%d tb:%d/%d outpad:%s
\"
]"
,
link
->
srcpad
->
name
,
"fmt:%s w:%d h:%d tb:%d/%d"
,
av_pix_fmt_descriptors
[
link
->
format
].
name
,
link
->
w
,
link
->
h
,
link
->
time_base
.
num
,
link
->
time_base
.
den
,
link
->
dstpad
->
name
);
link
->
w
,
link
->
h
,
link
->
time_base
.
num
,
link
->
time_base
.
den
);
}
else
if
(
link
->
type
==
AVMEDIA_TYPE_AUDIO
)
{
char
buf
[
255
];
av_get_channel_layout_string
(
buf
,
sizeof
(
buf
),
-
1
,
link
->
channel_layout
);
fprintf
(
outfile
,
" [ label=
\"
inpad:%s fmt:%s sr:%"
PRId64
" cl:%s tb:%d/%d outpad:%s
\"
]"
,
link
->
srcpad
->
name
,
"fmt:%s sr:%"
PRId64
" cl:%s tb:%d/%d"
,
av_get_sample_fmt_name
(
link
->
format
),
link
->
sample_rate
,
buf
,
link
->
time_base
.
num
,
link
->
time_base
.
den
,
link
->
dstpad
->
name
);
link
->
time_base
.
num
,
link
->
time_base
.
den
);
}
fprintf
(
outfile
,
";
\n
"
);
fprintf
(
outfile
,
" outpad:%s
\"
];
\n
"
,
link
->
dstpad
->
name
);
}
}
}
...
...
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