Statistics
| Branch: | Revision:

ffmpeg / libavfilter / avfiltergraph.c @ e74bf3f3

History | View | Annotate | Download (7.65 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

4359288c 02/04/2011 02:55 AM Stefano Sabatini

Make avfilter_graph_free() free the graph.

Make avfilter_graph_free() free not only the internal structures, but
also the allocated graph, and set the graph pointer to NULL for
increased safety.

Simplify usage.

Signed-off-by: Mans Rullgard <>

caeb0c30 01/12/2011 09:23 PM Stefano Sabatini

Make avfilter_graph_free() do nothing if graph is NULL.

Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk

b59dd1ea 12/28/2010 02:10 PM Stefano Sabatini

Fix style nits in avfiltergraph.c.

Originally committed as revision 26116 to svn://svn.ffmpeg.org/ffmpeg/trunk

037be76e 12/02/2010 08:12 PM Stefano Sabatini

Add avfilter_graph_create_filter().

Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk

3fa77bde 11/28/2010 10:22 AM Stefano Sabatini

In libavfilter, use consistently "Copyright (c)" in the license
headers.

Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk

4fcbb2af 11/13/2010 12:21 AM Stefano Sabatini

Prefix with "ff_" the functions:
ff_avfilter_graph_check_validity()
ff_avfilter_graph_config_links()
ff_avfilter_graph_config_formats()

and move their declaration to internal.h. These functions are never
used in application code, so it is better to consider them internal...

24de0edb 11/08/2010 12:32 PM Stefano Sabatini

Rename avfilter_destroy() as avfilter_free().

The new name is shorter and more consistent with the FFmpeg API, and
sounds less evil.

Originally committed as revision 25707 to svn://svn.ffmpeg.org/ffmpeg/trunk

97dd1e4a 11/04/2010 08:34 PM Stefano Sabatini

Rename avfilter_graph_destroy() to avfilter_graph_free().

The new name is shorter and more consistent with the rest of the API.

This change breaks libavfilter API/ABI.

Originally committed as revision 25674 to svn://svn.ffmpeg.org/ffmpeg/trunk

e15aeea6 11/04/2010 08:34 PM Stefano Sabatini

Implement avfilter_graph_alloc().

Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a24df93 10/16/2010 10:20 AM Stefano Sabatini

Add avfilter_graph_config().

Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk

84c03869 08/11/2010 11:44 AM Stefano Sabatini

Change avfilter_open() signature, from:
AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
to:
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name);

This way it is possible to propagate an error code telling the reason...

bdab614b 07/22/2010 11:12 AM S.N. Hemanth Meenakshisunda...

Generalize pixel format enum fields to int formats.

This is needed to make the libavfilter framework work with audio
filters.

In particular add a type field to AVFilterLink, change the field types:
enum PixelFormat format -> int format in AVFilterBuffer...

3748b2b8 04/18/2010 08:10 PM Stefano Sabatini

Fix leak in avfilter_graph_add_filter().

In case of reallocation failure the pointer to the original filter
array was lost. The correct behavior seems to just keep the old array
and count.

Originally committed as revision 22905 to svn://svn.ffmpeg.org/ffmpeg/trunk

22b7b23c 04/13/2010 11:22 PM Stefano Sabatini

Make avfilter_graph_add_filter() returns AVERROR in case of
failed reallocation, rather than just -1.

Originally committed as revision 22878 to svn://svn.ffmpeg.org/ffmpeg/trunk

f37c934d 01/13/2010 12:09 AM Stefano Sabatini

Make query_formats() print an error message if an auto-inserted scale
filter cannot convert between input and output formats.

Originally committed as revision 21176 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ea97721 01/10/2010 02:23 PM Stefano Sabatini

Make query_formats() increment the scaler_count after each scaler
insertion.

Originally committed as revision 21124 to svn://svn.ffmpeg.org/ffmpeg/trunk

3fb8e77a 01/10/2010 01:39 PM Stefano Sabatini

Add a log context to avfilter_graph_config_links().

Originally committed as revision 21121 to svn://svn.ffmpeg.org/ffmpeg/trunk

4ec42240 05/31/2009 04:30 PM Stefano Sabatini

Implement avfilter_graph_config_links().

Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk

d7dbe558 02/26/2009 10:02 PM Stefano Sabatini

Rename avfilter_destroy_graph() to avfilter_graph_destroy(), for better
consistency with the rest of the API.

Originally committed as revision 17623 to svn://svn.ffmpeg.org/ffmpeg/trunk

39c07b8e 02/23/2009 11:45 PM Stefano Sabatini

Implement in AVFilterGraph the scale_sws_opts field, and pass its
value in the args for the auto-inserted scale filters.

Originally committed as revision 17547 to svn://svn.ffmpeg.org/ffmpeg/trunk

822005ed 01/26/2009 08:21 PM Stefano Sabatini

Implement avfilter_graph_check_validity().

Originally committed as revision 16809 to svn://svn.ffmpeg.org/ffmpeg/trunk

4e4a3e23 04/04/2008 08:09 PM Vitor Sessak

Handle av_realloc() failure
Commited in SoC by Vitor Sessak on 2008-04-04 15:35:38

Originally committed as revision 12754 to svn://svn.ffmpeg.org/ffmpeg/trunk

51bf654d 04/04/2008 08:09 PM Vitor Sessak

Use sizeof(var) instead of sizeof(type)
Commited in SoC by Vitor Sessak on 2008-04-03 19:53:18

Originally committed as revision 12753 to svn://svn.ffmpeg.org/ffmpeg/trunk

a6f88fbc 04/04/2008 08:09 PM Vitor Sessak

Give a more meaningful instance name to auto-inserted scaler
Commited in SoC by Vitor Sessak on 2008-04-03 16:51:39

Originally committed as revision 12752 to svn://svn.ffmpeg.org/ffmpeg/trunk

779cc07a 04/04/2008 08:09 PM Vitor Sessak

Merge two ifs
Commited in SoC by Vitor Sessak on 2008-04-03 16:44:27

Originally committed as revision 12751 to svn://svn.ffmpeg.org/ffmpeg/trunk

e1a43a41 04/04/2008 08:09 PM Vitor Sessak

Remove unused check
Commited in SoC by Vitor Sessak on 2008-04-03 16:38:51

Originally committed as revision 12750 to svn://svn.ffmpeg.org/ffmpeg/trunk

a1047717 04/04/2008 08:09 PM Vitor Sessak

Cosmetical: alignment
Commited in SoC by Vitor Sessak on 2008-04-03 16:36:13

Originally committed as revision 12749 to svn://svn.ffmpeg.org/ffmpeg/trunk

2ad72067 04/04/2008 08:09 PM Vitor Sessak

Remove some unwanted todos
Commited in SoC by Vitor Sessak on 2008-04-03 16:32:37

Originally committed as revision 12748 to svn://svn.ffmpeg.org/ffmpeg/trunk

d2027baa 04/04/2008 08:09 PM Vitor Sessak

I should not have merged the graph parser with the graph
framework. Split it.

Commited in SoC by Vitor Sessak on 2008-04-03 16:29:07

Originally committed as revision 12746 to svn://svn.ffmpeg.org/ffmpeg/trunk

966b8f2d 04/04/2008 08:09 PM Vitor Sessak

Replace consume_char() function by *(*buf)++
Commited in SoC by Vitor Sessak on 2008-03-30 15:46:38

Originally committed as revision 12745 to svn://svn.ffmpeg.org/ffmpeg/trunk

4f409baa 04/04/2008 08:09 PM Vitor Sessak

Add backslash '\' support to the parser
Commited in SoC by Vitor Sessak on 2008-03-29 16:26:47

Originally committed as revision 12744 to svn://svn.ffmpeg.org/ffmpeg/trunk

398f1297 04/04/2008 08:09 PM Vitor Sessak

Remove AVFilterGraphDesc struct.
Now the parser link the filters from the graph directly
with avfilter_link().

Commited in SoC by Vitor Sessak on 2008-03-29 15:12:47

Originally committed as revision 12743 to svn://svn.ffmpeg.org/ffmpeg/trunk

c4913b81 04/04/2008 08:09 PM Vitor Sessak

Rename uninit() to avfilter_destroy_graph() and make it non-static
Commited in SoC by Vitor Sessak on 2008-03-27 19:34:24

Originally committed as revision 12742 to svn://svn.ffmpeg.org/ffmpeg/trunk

d66e946b 04/04/2008 08:09 PM Vitor Sessak

Rename functions now static
Commited in SoC by Vitor Sessak on 2008-03-26 21:06:01

Originally committed as revision 12741 to svn://svn.ffmpeg.org/ffmpeg/trunk

de0e3e81 04/04/2008 08:09 PM Vitor Sessak

Move funtion to avoid forward declaration
Commited in SoC by Vitor Sessak on 2008-03-26 20:57:17

Originally committed as revision 12740 to svn://svn.ffmpeg.org/ffmpeg/trunk

0c317773 04/04/2008 08:09 PM Vitor Sessak

Move mess (to be removed) to where it is actually used.

Commited in SoC by Vitor Sessak on 2008-03-26 20:56:05

Originally committed as revision 12739 to svn://svn.ffmpeg.org/ffmpeg/trunk

87506daa 04/04/2008 08:09 PM Vitor Sessak

Remove usage of AVFilterGraphDesc outside avfiltergraph.c
Commited in SoC by Vitor Sessak on 2008-03-26 20:51:24

Originally committed as revision 12738 to svn://svn.ffmpeg.org/ffmpeg/trunk

58f472d1 04/04/2008 08:08 PM Vitor Sessak

Simplify graph_load_from_desc3()
Commited in SoC by Vitor Sessak on 2008-03-26 20:37:43

Originally committed as revision 12737 to svn://svn.ffmpeg.org/ffmpeg/trunk

9f39bb37 04/04/2008 08:08 PM Vitor Sessak

Rename variable GraphContext -> AVFilterGraph

Commited in SoC by Vitor Sessak on 2008-03-26 20:31:53

Originally committed as revision 12736 to svn://svn.ffmpeg.org/ffmpeg/trunk

5c2ff9fd 04/04/2008 08:08 PM Vitor Sessak

Merge avfiltergraphdesc.c in avfiltergraph.c
Commited in SoC by Vitor Sessak on 2008-03-24 20:46:50

Originally committed as revision 12735 to svn://svn.ffmpeg.org/ffmpeg/trunk

f2ee8083 04/04/2008 08:08 PM Vitor Sessak

Remove avfilter_vf_graph
Commited in SoC by Vitor Sessak on 2008-03-24 20:13:01

Originally committed as revision 12734 to svn://svn.ffmpeg.org/ffmpeg/trunk

4160400d 04/04/2008 08:08 PM Vitor Sessak

Remove code made unused by the two last patches
Commited in SoC by Vitor Sessak on 2008-03-24 19:29:15

Originally committed as revision 12732 to svn://svn.ffmpeg.org/ffmpeg/trunk

45a09319 04/04/2008 08:08 PM Vitor Sessak

Split graph_load_from_dest() to have a version independent of avfilter_vf_graph
Commited in SoC by Vitor Sessak on 2008-03-24 19:19:38

Originally committed as revision 12731 to svn://svn.ffmpeg.org/ffmpeg/trunk

789210fa 04/04/2008 08:08 PM Vitor Sessak

Almost from scratch rewrite of filter parser.

Functional as is, but still work-in-progress in the
sense that some things need to be fixed before sending
it as a patch to SVN.

Commited in SoC by Vitor Sessak on 2008-03-20 21:48:30

Originally committed as revision 12729 to svn://svn.ffmpeg.org/ffmpeg/trunk

3ec394ea 04/04/2008 08:08 PM Vitor Sessak

Remove ugly forward declaration
Commited in SoC by Vitor Sessak on 2008-02-24 11:41:22

Originally committed as revision 12728 to svn://svn.ffmpeg.org/ffmpeg/trunk

de065016 04/04/2008 08:08 PM Vitor Sessak

Fix doxy comment
Commited in SoC by Vitor Sessak on 2008-02-24 11:30:41

Originally committed as revision 12727 to svn://svn.ffmpeg.org/ffmpeg/trunk

177ff260 04/04/2008 08:08 PM Vitor Sessak

Spelling and puctuation
Commited in SoC by Vitor Sessak on 2008-02-16 17:52:49

Originally committed as revision 12726 to svn://svn.ffmpeg.org/ffmpeg/trunk

4dae572f 04/04/2008 08:08 PM Vitor Sessak

Remove header now made useless
Commited in SoC by Vitor Sessak on 2008-02-12 20:59:51

Originally committed as revision 12723 to svn://svn.ffmpeg.org/ffmpeg/trunk

9958f07a 04/04/2008 08:08 PM Vitor Sessak

Remove author field

Suggested by Baptiste Coudurier

Commited in SoC by Vitor Sessak on 2008-02-11 19:56:27

Originally committed as revision 12722 to svn://svn.ffmpeg.org/ffmpeg/trunk

2b052439 04/04/2008 08:08 PM Vitor Sessak

Use CodecType for pad type
Commited in SoC by Vitor Sessak on 2008-02-10 20:41:57

Originally committed as revision 12721 to svn://svn.ffmpeg.org/ffmpeg/trunk

d4292789 04/04/2008 08:08 PM Vitor Sessak

Header inclusion redux
Commited in SoC by Vitor Sessak on 2008-02-10 08:46:50

Originally committed as revision 12720 to svn://svn.ffmpeg.org/ffmpeg/trunk

ec8398a3 04/04/2008 08:08 PM Vitor Sessak

Nits: more punctuation and capitalization
Commited in SoC by Vitor Sessak on 2008-02-09 20:02:29

Originally committed as revision 12719 to svn://svn.ffmpeg.org/ffmpeg/trunk

affadb5b 04/04/2008 08:08 PM Vitor Sessak

Implement poll_frame() method. Fix ffmpeg.c bug with
vf_fps filter.

Commited in SoC by Vitor Sessak on 2008-02-06 19:55:36

Originally committed as revision 12718 to svn://svn.ffmpeg.org/ffmpeg/trunk

095ae1bc 04/04/2008 08:07 PM Vitor Sessak

Rework link property configuration system.
This can now handle filters which are added to graphs out of order,
including auto-inserted scale filters. As an added bonus, it can
now detect circular filter chains which wouldn't work anyway.

Commited in SoC by Bobby Bingham on 2007-12-24 03:22:10...

f3f42a3c 04/04/2008 08:07 PM Vitor Sessak

Use separate fake filters for exporting inputs and outputs from filter graphs.
This makes the code a little less confusing, and is needed for the patch to
improve the link configuration process, to be committed next.

Commited in SoC by Bobby Bingham on 2007-12-24 02:53:56...

d22ebb1b 04/04/2008 08:07 PM Vitor Sessak

Use a filter graph description for creating simple chain graphs so we
can reuse the same graph creation code.

Commited in SoC by Bobby Bingham on 2007-12-22 19:13:04

Originally committed as revision 12715 to svn://svn.ffmpeg.org/ffmpeg/trunk

1df675bf 04/04/2008 08:07 PM Vitor Sessak

Use av_log(ctx, ...) instead of av_log(NULL, ...)
Commited in SoC by Vitor Sessak on 2007-12-21 11:10:29

Originally committed as revision 12713 to svn://svn.ffmpeg.org/ffmpeg/trunk

de5985b6 04/04/2008 08:07 PM Vitor Sessak

10l

Commited in SoC by Bobby Bingham on 2007-12-20 20:21:19

Originally committed as revision 12712 to svn://svn.ffmpeg.org/ffmpeg/trunk

7b470878 04/04/2008 08:07 PM Vitor Sessak

Rewrite colorspace negotiation.

Commited in SoC by Bobby Bingham on 2007-12-20 19:36:26

Originally committed as revision 12711 to svn://svn.ffmpeg.org/ffmpeg/trunk

8af6261c 04/04/2008 08:07 PM Vitor Sessak

Fix a small memory leak

Commited in SoC by Bobby Bingham on 2007-12-20 19:30:34

Originally committed as revision 12710 to svn://svn.ffmpeg.org/ffmpeg/trunk

54d7fcc1 04/04/2008 08:07 PM Vitor Sessak

initialize filter graphs completely even if there is no list of filters
given to initially load.

Commited in SoC by Bobby Bingham on 2007-12-20 16:50:45

Originally committed as revision 12709 to svn://svn.ffmpeg.org/ffmpeg/trunk

5a7414f3 04/04/2008 08:07 PM Vitor Sessak

Handle failure properly
Commited in SoC by Vitor Sessak on 2007-11-29 19:35:17

Originally committed as revision 12708 to svn://svn.ffmpeg.org/ffmpeg/trunk

6c66596e 04/04/2008 08:07 PM Vitor Sessak

Remove useless empty functions
Commited in SoC by Vitor Sessak on 2007-11-04 17:20:17

Originally committed as revision 12707 to svn://svn.ffmpeg.org/ffmpeg/trunk

9eb36c05 04/04/2008 08:07 PM Vitor Sessak

Silence warning caused by my last commit
Commited in SoC by Vitor Sessak on 2007-10-30 21:15:19

Originally committed as revision 12706 to svn://svn.ffmpeg.org/ffmpeg/trunk

5a1dacda 04/04/2008 08:07 PM Vitor Sessak

Minor simplification
Commited in SoC by Vitor Sessak on 2007-10-30 21:11:34

Originally committed as revision 12705 to svn://svn.ffmpeg.org/ffmpeg/trunk

6ea14464 04/04/2008 08:06 PM Vitor Sessak

Prefix names of filter structs

Commited in SoC by Bobby Bingham on 2007-08-18 18:17:30

Originally committed as revision 12704 to svn://svn.ffmpeg.org/ffmpeg/trunk

d1633ac6 04/04/2008 08:06 PM Vitor Sessak

Rename avfilter_create to avfilter_open and remove the wrapper function
avfilter_create_by_name.

Commited in SoC by Bobby Bingham on 2007-08-17 23:39:55

Originally committed as revision 12703 to svn://svn.ffmpeg.org/ffmpeg/trunk

66d9e9be 04/04/2008 08:06 PM Vitor Sessak

Doxygenize some comments

Commited in SoC by Bobby Bingham on 2007-08-17 22:59:59

Originally committed as revision 12702 to svn://svn.ffmpeg.org/ffmpeg/trunk

5ded633e 04/04/2008 08:06 PM Vitor Sessak

Remove the data parameter from draw_slice(). It's unneeded and often more
work than it's worth.

Commited in SoC by Bobby Bingham on 2007-08-17 14:39:11

Originally committed as revision 12701 to svn://svn.ffmpeg.org/ffmpeg/trunk

57d4a157 04/04/2008 08:06 PM Vitor Sessak

Allow creation of filter graphs from a graph description structure which
can be created programmatically or loaded from a file.

Commited in SoC by Bobby Bingham on 2007-08-14 22:27:05

Originally committed as revision 12700 to svn://svn.ffmpeg.org/ffmpeg/trunk

1d2067e2 04/04/2008 08:06 PM Vitor Sessak

Let request_frame() indicate success or failure

Commited in SoC by Bobby Bingham on 2007-08-11 17:42:36

Originally committed as revision 12699 to svn://svn.ffmpeg.org/ffmpeg/trunk

81c25293 04/04/2008 08:06 PM Vitor Sessak

Need to copy over colorspace property too

Commited in SoC by Bobby Bingham on 2007-08-08 05:39:40

Originally committed as revision 12698 to svn://svn.ffmpeg.org/ffmpeg/trunk

7b712850 04/04/2008 08:06 PM Vitor Sessak

Fix behavior when exporting output pad with default query_formats()

Commited in SoC by Bobby Bingham on 2007-08-08 04:25:08

Originally committed as revision 12697 to svn://svn.ffmpeg.org/ffmpeg/trunk

7f8fb52f 04/04/2008 08:06 PM Vitor Sessak

Let the filter graph export input and output pads from the filters it contains.

Commited in SoC by Bobby Bingham on 2007-08-07 22:33:46

Originally committed as revision 12696 to svn://svn.ffmpeg.org/ffmpeg/trunk

256d0e0a 04/04/2008 08:06 PM Vitor Sessak

Separate the process of creating links between filters from that of configuring
the links.

Commited in SoC by Bobby Bingham on 2007-08-07 21:02:18

Originally committed as revision 12695 to svn://svn.ffmpeg.org/ffmpeg/trunk

1deec58b 04/04/2008 08:06 PM Vitor Sessak

Fix memory leak.

Commited in SoC by Bobby Bingham on 2007-07-31 20:11:25

Originally committed as revision 12694 to svn://svn.ffmpeg.org/ffmpeg/trunk

b9a7a65a 04/04/2008 08:06 PM Vitor Sessak

Make the filter graph just another normal filter.

Commited in SoC by Bobby Bingham on 2007-07-31 20:08:38

Originally committed as revision 12693 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ac87cc8 04/04/2008 08:06 PM Vitor Sessak

Allow code to pass data to filters it creates.

Commited in SoC by Bobby Bingham on 2007-07-15 16:45:50

Originally committed as revision 12692 to svn://svn.ffmpeg.org/ffmpeg/trunk

fc27b808 04/04/2008 08:06 PM Vitor Sessak

Don't mangle the input strings. The caller may want to reuse it later.

Commited in SoC by Bobby Bingham on 2007-07-15 16:13:17

Originally committed as revision 12691 to svn://svn.ffmpeg.org/ffmpeg/trunk

65a4bd9c 04/04/2008 08:05 PM Vitor Sessak

Ensure that the filter_count member is reset to zero when emptying the graph

Commited in SoC by Bobby Bingham on 2007-07-14 23:19:22

Originally committed as revision 12690 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba56640c 04/04/2008 08:04 PM Vitor Sessak

Fix possible segfault

Commited in SoC by Bobby Bingham on 2007-07-14 23:16:15

Originally committed as revision 12689 to svn://svn.ffmpeg.org/ffmpeg/trunk

f8c77c82 04/04/2008 08:04 PM Vitor Sessak

Move simple filter chain loading code over to the filter graph.

Commited in SoC by Bobby Bingham on 2007-07-14 22:26:37

Originally committed as revision 12688 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffcaef34 04/04/2008 08:03 PM Vitor Sessak

Move destruction of the graph's filters to its own helper function.

Commited in SoC by Bobby Bingham on 2007-07-14 21:41:34

Originally committed as revision 12687 to svn://svn.ffmpeg.org/ffmpeg/trunk

eccb6fb7 04/04/2008 08:02 PM Vitor Sessak

Split filter graphs out into their own source & header files.

Commited in SoC by Bobby Bingham on 2007-07-14 21:20:21

Originally committed as revision 12686 to svn://svn.ffmpeg.org/ffmpeg/trunk