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
996f9f0c
Commit
996f9f0c
authored
Mar 18, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: add an AVClass to AVFilterGraph on next major bump.
It will be used for logging, possibly also AVOptions.
parent
ddb44312
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
avfiltergraph.c
libavfilter/avfiltergraph.c
+15
-1
avfiltergraph.h
libavfilter/avfiltergraph.h
+4
-0
version.h
libavfilter/version.h
+8
-0
No files found.
libavfilter/avfiltergraph.c
View file @
996f9f0c
...
...
@@ -27,9 +27,23 @@
#include "avfiltergraph.h"
#include "internal.h"
#include "libavutil/log.h"
static
const
AVClass
filtergraph_class
=
{
.
class_name
=
"AVFilterGraph"
,
.
item_name
=
av_default_item_name
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFilterGraph
*
avfilter_graph_alloc
(
void
)
{
return
av_mallocz
(
sizeof
(
AVFilterGraph
));
AVFilterGraph
*
ret
=
av_mallocz
(
sizeof
(
AVFilterGraph
));
if
(
!
ret
)
return
NULL
;
#if FF_API_GRAPH_AVCLASS
ret
->
av_class
=
&
filtergraph_class
;
#endif
return
ret
;
}
void
avfilter_graph_free
(
AVFilterGraph
**
graph
)
...
...
libavfilter/avfiltergraph.h
View file @
996f9f0c
...
...
@@ -23,8 +23,12 @@
#define AVFILTER_AVFILTERGRAPH_H
#include "avfilter.h"
#include "libavutil/log.h"
typedef
struct
AVFilterGraph
{
#if FF_API_GRAPH_AVCLASS
const
AVClass
*
av_class
;
#endif
unsigned
filter_count
;
AVFilterContext
**
filters
;
...
...
libavfilter/version.h
View file @
996f9f0c
...
...
@@ -40,4 +40,12 @@
LIBAVFILTER_VERSION_MICRO)
#define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT
/**
* Those FF_API_* defines are not part of public API.
* They may change, break or disappear at any time.
*/
#ifndef FF_API_GRAPH_AVCLASS
#define FF_API_GRAPH_AVCLASS (LIBAVFILTER_VERSION_MAJOR > 2)
#endif
#endif // AVFILTER_VERSION_H
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