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
1fa88f34
Commit
1fa88f34
authored
Jan 19, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/lavfi: add dumpgraph option.
parent
0c3577bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Changelog
Changelog
+1
-0
lavfi.c
libavdevice/lavfi.c
+9
-0
No files found.
Changelog
View file @
1fa88f34
...
...
@@ -28,6 +28,7 @@ version next:
- rv34: frame-level multi-threading
- optimized iMDCT transform on x86 using SSE for for mpegaudiodec
- Improved PGS subtitle decoder
- dumpgraph option to lavfi device
version 0.9:
...
...
libavdevice/lavfi.c
View file @
1fa88f34
...
...
@@ -41,6 +41,7 @@
typedef
struct
{
AVClass
*
class
;
///< class for private options
char
*
graph_str
;
char
*
dump_graph
;
AVFilterGraph
*
graph
;
AVFilterContext
**
sinks
;
int
*
sink_stream_map
;
...
...
@@ -230,6 +231,13 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
if
((
ret
=
avfilter_graph_config
(
lavfi
->
graph
,
avctx
))
<
0
)
FAIL
(
ret
);
if
(
lavfi
->
dump_graph
)
{
char
*
dump
=
avfilter_graph_dump
(
lavfi
->
graph
,
lavfi
->
dump_graph
);
fputs
(
dump
,
stderr
);
fflush
(
stderr
);
av_free
(
dump
);
}
/* fill each stream with the information in the corresponding sink */
for
(
i
=
0
;
i
<
avctx
->
nb_streams
;
i
++
)
{
AVFilterLink
*
link
=
lavfi
->
sinks
[
lavfi
->
stream_sink_map
[
i
]]
->
inputs
[
0
];
...
...
@@ -329,6 +337,7 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
static
const
AVOption
options
[]
=
{
{
"graph"
,
"Libavfilter graph"
,
OFFSET
(
graph_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
DEC
},
{
"dumpgraph"
,
"Dump graph to stderr"
,
OFFSET
(
dump_graph
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
DEC
},
{
NULL
},
};
...
...
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