[FFmpeg-devel] [PATCH] graph2dot tool

Stefano Sabatini stefano.sabatini-lala
Sun Dec 27 22:56:27 CET 2009


On date Saturday 2008-12-27 12:59:08 +0100, Diego Biurrun encoded:
> On Sat, Dec 27, 2008 at 12:19:10PM +0100, Stefano Sabatini wrote:
> > On date Saturday 2008-12-27 11:11:38 +0100, Diego Biurrun encoded:
> > > On Sat, Dec 27, 2008 at 12:39:27AM +0100, Stefano Sabatini wrote:
> > > > 
> > > > [...]
> > > > 
> > > > I should have been fixed all the C99 mixed declaration around, and
> > > > done some simplification.
> > > > 
> > > > I also implemented a getopt() based CLI parsing mechanism, extended
> > > > the interface and fixed other random errors.
> > > > 
> > > > typedef struct Line {
> > > >     char data[256];
> > > >     struct Line *next;
> > > > } Line;
> > > 
> > > Capitalized names are ugly and you might as well get rid of the typedef..
> > 
> > I followed the libav* convenction (which I like) of using
> > CapitalizedNames for typedeffed structs, but if you prefer I can simply
> > use struct line in the code.
> 
> There exist mixed opinions on the subject, but I generally prefer
> avoiding typedefs.

Exactly after one year the updated version of the graph2dot tool.

It should help users to visualize/debug complex graphs.

I use it in combination with a simple wrapper:

-----------------------8<----------------------------------------
#! /bin/sh

GRAPH2DOT=$HOME/src/libavfilter-soc/ffmpeg/tools/graph2dot

$GRAPH2DOT -i $1 -o graph.tmp && \
dot -Tpng graph.tmp -o graph.png && \
display graph.png
-----------------------8<----------------------------------------

This requires both graphviz and imagemagik installed.

Also it requires a nullsrc/nullsink to be implemented, I'm posting
those as separate patches.

Regards.
-- 
FFmpeg = Fantastic & Fundamental Maxi Prodigious Extensive Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graph2dot.c
Type: text/x-csrc
Size: 7192 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091227/769c14b6/attachment.c>



More information about the ffmpeg-devel mailing list