[FFmpeg-devel] [PATCH] tools/graph2dot: fancy output.

Stefano Sabatini stefasab at gmail.com
Sun Dec 23 19:12:52 CET 2012


On date Sunday 2012-12-23 00:29:23 +0100, Clément Bœsch encoded:
> Hi,
> 
> Here is a small attempt to improve the output. See attached image for
> example. I know colors are ugly, feel free to propose any better palette.

Some generic considerations.

In our left-to-right culture it is more natural to expect input pads
on the left, and output pad on the right.

This is the way I usually draw filters on paper when I need a
graphical representation:

         |      |
       +---+  +---+
       |in0|  |in1|
      +------------+
      |   filter   |
      |            |
      +------------+
          |out0|
          +----+
            |

Ideally it would be nice to have a similar representation, or in
alternative:

      +--------------+
      | +---+  +---+ |
      | |in0|  |in1| |
      | +---+  +---+ |
      |    filter    |
      |    +----+    |     
      |    |out0|    |
      |    +----+    |
      +--------------+

but may be hard to achieve.

Regarding the colors, I think that it's best to avoid confusion with
the media and filter types and only use the same color (e.g. gray) for
all filters (sinks, sources and regulat sinks). Also we could
integrate with textual annotations for daltonic people, and to enhance
intelligibility, for example:

+--------+
|        |
|default |
+--------+
    ||
    \/
+--------+
|  in0:a |
|default |
+--------+

[...]
-- 
FFmpeg = Fiendish Funny Magic Ponderous Erotic God


More information about the ffmpeg-devel mailing list