Add examples for the jpeg elements.
authorStefan Kost <ensonic@users.sf.net>
Thu, 29 Jan 2009 07:42:56 +0000 (09:42 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 29 Jan 2009 08:12:43 +0000 (10:12 +0200)
ext/jpeg/gstjpegdec.c
ext/jpeg/gstjpegenc.c

index 3cdd55a..49b88a0 100644 (file)
  * SECTION:element-jpegdec
  *
  * Decodes jpeg images.
+ *
+ * <refsect2>
+ * <title>Example launch line</title>
+ * |[
+ * gst-launch -v v4l2src ! jpegddec ! ffmpegcolorspace ! xvimagesink
+ * ]| The above pipeline reads a motion JPEG stream from a v4l2 camera
+ * and renders it to the screen.
+ * </refsect2>
  */
 
 #ifdef HAVE_CONFIG_H
index b1aae3a..908c7e0 100644 (file)
  * SECTION:element-jpegenc
  *
  * Encodes jpeg images.
+ *
+ * <refsect2>
+ * <title>Example launch line</title>
+ * |[
+ * gst-launch videotestsrc num-buffers=50 ! video/x-raw-yuv, framerate='(fraction)'5/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
+ * ]| a pipeline to mux 5 JPEG frames per second into a 10 sec. long motion jpeg
+ * avi.
+ * </refsect2>
  */
 
 #ifdef HAVE_CONFIG_H