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
c5c7cfd5
Commit
c5c7cfd5
authored
Dec 05, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: Drop deprecated functions to open a filter or a filterchain
Deprecated in 03/2013.
parent
88fd836a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
58 deletions
+0
-58
avfilter.c
libavfilter/avfilter.c
+0
-8
avfilter.h
libavfilter/avfilter.h
+0
-30
avfiltergraph.c
libavfilter/avfiltergraph.c
+0
-17
version.h
libavfilter/version.h
+0
-3
No files found.
libavfilter/avfilter.c
View file @
c5c7cfd5
...
...
@@ -475,14 +475,6 @@ err:
return
NULL
;
}
#if FF_API_AVFILTER_OPEN
int
avfilter_open
(
AVFilterContext
**
filter_ctx
,
AVFilter
*
filter
,
const
char
*
inst_name
)
{
*
filter_ctx
=
ff_filter_alloc
(
filter
,
inst_name
);
return
*
filter_ctx
?
0
:
AVERROR
(
ENOMEM
);
}
#endif
static
void
free_link
(
AVFilterLink
*
link
)
{
if
(
!
link
)
...
...
libavfilter/avfilter.h
View file @
c5c7cfd5
...
...
@@ -479,22 +479,6 @@ attribute_deprecated
AVFilter
**
av_filter_next
(
AVFilter
**
filter
);
#endif
#if FF_API_AVFILTER_OPEN
/**
* Create a filter instance.
*
* @param filter_ctx put here a pointer to the created filter context
* on success, NULL on failure
* @param filter the filter to create an instance of
* @param inst_name Name to give to the new instance. Can be NULL for none.
* @return >= 0 in case of success, a negative error code otherwise
* @deprecated use avfilter_graph_alloc_filter() instead
*/
attribute_deprecated
int
avfilter_open
(
AVFilterContext
**
filter_ctx
,
AVFilter
*
filter
,
const
char
*
inst_name
);
#endif
#if FF_API_AVFILTER_INIT_FILTER
/**
* Initialize a filter.
...
...
@@ -691,20 +675,6 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph,
*/
AVFilterContext
*
avfilter_graph_get_filter
(
AVFilterGraph
*
graph
,
char
*
name
);
#if FF_API_AVFILTER_OPEN
/**
* Add an existing filter instance to a filter graph.
*
* @param graphctx the filter graph
* @param filter the filter to be added
*
* @deprecated use avfilter_graph_alloc_filter() to allocate a filter in a
* filter graph
*/
attribute_deprecated
int
avfilter_graph_add_filter
(
AVFilterGraph
*
graphctx
,
AVFilterContext
*
filter
);
#endif
/**
* Create and add a filter instance into an existing graph.
* The filter instance is created from the filter filt and inited
...
...
libavfilter/avfiltergraph.c
View file @
c5c7cfd5
...
...
@@ -116,23 +116,6 @@ void avfilter_graph_free(AVFilterGraph **graph)
av_freep
(
graph
);
}
#if FF_API_AVFILTER_OPEN
int
avfilter_graph_add_filter
(
AVFilterGraph
*
graph
,
AVFilterContext
*
filter
)
{
AVFilterContext
**
filters
=
av_realloc
(
graph
->
filters
,
sizeof
(
*
filters
)
*
(
graph
->
nb_filters
+
1
));
if
(
!
filters
)
return
AVERROR
(
ENOMEM
);
graph
->
filters
=
filters
;
graph
->
filters
[
graph
->
nb_filters
++
]
=
filter
;
filter
->
graph
=
graph
;
return
0
;
}
#endif
int
avfilter_graph_create_filter
(
AVFilterContext
**
filt_ctx
,
const
AVFilter
*
filt
,
const
char
*
name
,
const
char
*
args
,
void
*
opaque
,
AVFilterGraph
*
graph_ctx
)
...
...
libavfilter/version.h
View file @
c5c7cfd5
...
...
@@ -49,9 +49,6 @@
* the public API and may change, break or disappear at any time.
*/
#ifndef FF_API_AVFILTER_OPEN
#define FF_API_AVFILTER_OPEN (LIBAVFILTER_VERSION_MAJOR < 7)
#endif
#ifndef FF_API_AVFILTER_INIT_FILTER
#define FF_API_AVFILTER_INIT_FILTER (LIBAVFILTER_VERSION_MAJOR < 7)
#endif
...
...
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