From 9cf73bdd8f18505269fa4b6d1d80127945e735b1 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 28 Jan 2009 17:46:06 +0200 Subject: Update and add documentation for plugins with deps (ext). Link to properties. Correct titles for examples. Document a few trivial cases. Keep lists in section file and docs/plugins/Makefile.am alphabetically ordered. Fix warnings that gtk-doc points out. --- ext/libcaca/gstcacasink.c | 30 +++++++++++++++++------------- ext/libcaca/gstcacasink.h | 11 ----------- 2 files changed, 17 insertions(+), 24 deletions(-) (limited to 'ext/libcaca') diff --git a/ext/libcaca/gstcacasink.c b/ext/libcaca/gstcacasink.c index 1f6f4c20..c0a6f49f 100644 --- a/ext/libcaca/gstcacasink.c +++ b/ext/libcaca/gstcacasink.c @@ -20,24 +20,17 @@ * SECTION:element-cacasink * @see_also: #GstAASink * - * - * * Displays video as color ascii art. - * + * + * * Example launch line - * - * + * |[ * CACA_GEOMETRY=160x60 CACA_FONT=5x7 gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink - * - * This pipeline renders a video to ascii art into a separate window using a + * ]| This pipeline renders a video to ascii art into a separate window using a * small font and specifying the ascii resolution. - * - * - * + * |[ * CACA_DRIVER=ncurses gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink - * - * This pipeline renders a video to ascii art into the current terminal. - * + * ]| This pipeline renders a video to ascii art into the current terminal. * */ @@ -50,6 +43,17 @@ #include "gstcacasink.h" +#define GST_CACA_DEFAULT_SCREEN_WIDTH 80 +#define GST_CACA_DEFAULT_SCREEN_HEIGHT 25 +#define GST_CACA_DEFAULT_BPP 24 +#define GST_CACA_DEFAULT_RED_MASK GST_VIDEO_BYTE1_MASK_32_INT +#define GST_CACA_DEFAULT_GREEN_MASK GST_VIDEO_BYTE2_MASK_32_INT +#define GST_CACA_DEFAULT_BLUE_MASK GST_VIDEO_BYTE3_MASK_32_INT + +//#define GST_CACA_DEFAULT_RED_MASK R_MASK_32_REVERSE_INT +//#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_REVERSE_INT +//#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_REVERSE_INT + /* elementfactory information */ static const GstElementDetails gst_cacasink_details = GST_ELEMENT_DETAILS ("A colored ASCII art video sink", diff --git a/ext/libcaca/gstcacasink.h b/ext/libcaca/gstcacasink.h index f955f63d..548ca5da 100644 --- a/ext/libcaca/gstcacasink.h +++ b/ext/libcaca/gstcacasink.h @@ -34,17 +34,6 @@ extern "C" { #endif /* __cplusplus */ -#define GST_CACA_DEFAULT_SCREEN_WIDTH 80 -#define GST_CACA_DEFAULT_SCREEN_HEIGHT 25 -#define GST_CACA_DEFAULT_BPP 24 -#define GST_CACA_DEFAULT_RED_MASK GST_VIDEO_BYTE1_MASK_32_INT -#define GST_CACA_DEFAULT_GREEN_MASK GST_VIDEO_BYTE2_MASK_32_INT -#define GST_CACA_DEFAULT_BLUE_MASK GST_VIDEO_BYTE3_MASK_32_INT - -//#define GST_CACA_DEFAULT_RED_MASK R_MASK_32_REVERSE_INT -//#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_REVERSE_INT -//#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_REVERSE_INT - #define GST_TYPE_CACASINK \ (gst_cacasink_get_type()) #define GST_CACASINK(obj) \ -- cgit