summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:12:23 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:12:23 +0000
commit9d6f1d52c5e0d109c79db373e10c3632ed4886a1 (patch)
tree99b02148a989bdeacaecff8a308197d218d5ec1a /doc
parentadbc05104707bd021189abdfcf3724199bb561b6 (diff)
Moved hook documentation into the doc directory
Originally committed as revision 1292 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile2
-rw-r--r--doc/hooks.texi49
2 files changed, 50 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index dd5bca1f1d..034d4921b4 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,4 +1,4 @@
-all: ffmpeg-doc.html faq.html ffserver-doc.html
+all: ffmpeg-doc.html faq.html ffserver-doc.html hooks.html
%.html: %.texi
texi2html -monolithic -number $<
diff --git a/doc/hooks.texi b/doc/hooks.texi
new file mode 100644
index 0000000000..7eb2da8848
--- /dev/null
+++ b/doc/hooks.texi
@@ -0,0 +1,49 @@
+\input texinfo @c -*- texinfo -*-
+
+@settitle Video Hook Documentation
+@titlepage
+@sp 7
+@center @titlefont{Video Hook Documentation}
+@sp 3
+@end titlepage
+
+
+@chapter Introduction
+
+
+The video hook functionality is designed (mostly) for live video. It allows
+the video to be modified or examined between the decoder and the encoder.
+
+Any number of hook modules can be placed inline, and they are run in the
+order that they were specified on the ffmpeg command line.
+
+Three modules are provided and are described below. They are all intended to
+be used as a base for your own modules.
+
+Modules are loaded using the -vhook option to ffmpeg. The value of this parameter
+is a space seperated list of arguments. The first is the module name, and the rest
+are passed as arguments to the Configure function of the module.
+
+@section null.c
+
+This does nothing. Actually it converts the input image to RGB24 and then converts
+it back again. This is meant as a sample that you can use to test your setup.
+
+@section fish.c
+
+This implements a 'fish detector'. Essentially it converts the image into HSV
+space and tests whether more than a certain percentage of the pixels fall into
+a specific HSV cuboid. If so, then the image is saved into a file for processing
+by other bits of code.
+
+Why use HSV? It turns out that HSV cuboids represent a more compact range of
+colors than would an RGB cuboid.
+
+@section imlib2.c
+
+This allows a caption to be placed onto each frame. It supports inserting the
+time and date. By using the imlib functions, it would be easy to add your own
+graphical logo, add a frame/border, etc.
+
+
+@bye