Skip to content

Commit

Permalink
docs-rst: convert pipeline to SVG format
Browse files Browse the repository at this point in the history
The pipeline image was produced from some dot file that has
long missed. Create a pipeline.dot with the graph and convert
it to SVG. As we're planning to add future support for graphviz
graphics, also store the .dot file on the tree, as this will
make easier when we add such Sphinx extension.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Mauro Carvalho Chehab authored and Jonathan Corbet committed Dec 1, 2016
1 parent 2bd658d commit 394709d
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
1 change: 1 addition & 0 deletions Documentation/media/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ IMAGES = \
uapi/v4l/fieldseq_tb.svg \
uapi/v4l/nv12mt.svg \
uapi/v4l/nv12mt_example.svg \
uapi/v4l/pipeline.svg \
uapi/v4l/subdev-image-processing-full.svg \
uapi/v4l/subdev-image-processing-scaling-multi-source.svg \
uapi/v4l/subdev-image-processing-crop.svg \
Expand Down
4 changes: 2 additions & 2 deletions Documentation/media/uapi/v4l/dev-subdev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ the video sensor and the host image processing hardware.

.. _pipeline-scaling:

.. figure:: pipeline.png
:alt: pipeline.png
.. figure:: pipeline.*
:alt: pipeline.pdf / pipeline.svg
:align: center

Image Format Negotiation on Pipelines
Expand Down
12 changes: 12 additions & 0 deletions Documentation/media/uapi/v4l/pipeline.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
digraph board {
rankdir=TB
colorscheme=x11
scaler [label="{<scaler_0> 0} | Host\nScaler | {<scaler_1> 1} ", shape=Mrecord, style=filled, fillcolor=lightblue]
frontend [label="{<frontend_0> 0} | Host\nFrontend | {<frontend_1> 1}", shape=Mrecord, style=filled, fillcolor=lightblue]
sensor [label="Sensor | {<sensor_0> 0}", shape=Mrecord, style=filled, fillcolor=aquamarine]
io [label="{<io_0> 0} | V4L I/O", shape=Mrecord, style=filled, fillcolor=aquamarine]

sensor:sensor_0 -> frontend:frontend_0 [color=blue, label="HQ: 2592x1968\nHS: 1296x984"]
frontend:frontend_1 -> scaler:scaler_0 [color=blue, label="HQ: 2592x1968\nHS: 1296x984"]
scaler:scaler_1 -> io:io_0 [color=blue, label="HQ: 1280x720\nHS: 1280x720"]
}
Binary file removed Documentation/media/uapi/v4l/pipeline.png
Binary file not shown.
68 changes: 68 additions & 0 deletions Documentation/media/uapi/v4l/pipeline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 394709d

Please sign in to comment.