summaryrefslogtreecommitdiffstats
path: root/ext/libcaca
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-01-28 17:46:06 +0200
committerStefan Kost <ensonic@users.sf.net>2009-01-28 18:05:09 +0200
commit9cf73bdd8f18505269fa4b6d1d80127945e735b1 (patch)
tree799b0f7efa6d37844173fbd636bc58254cbccd78 /ext/libcaca
parent1f32369451bd5ddf7a59defef7900d508ee144da (diff)
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.
Diffstat (limited to 'ext/libcaca')
-rw-r--r--ext/libcaca/gstcacasink.c30
-rw-r--r--ext/libcaca/gstcacasink.h11
2 files changed, 17 insertions, 24 deletions
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
*
- * <refsect2>
- * <para>
* Displays video as color ascii art.
- * </para>
+ *
+ * <refsect2>
* <title>Example launch line</title>
- * <para>
- * <programlisting>
+ * |[
* CACA_GEOMETRY=160x60 CACA_FONT=5x7 gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink
- * </programlisting>
- * 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.
- * </para>
- * <para>
- * <programlisting>
+ * |[
* CACA_DRIVER=ncurses gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink
- * </programlisting>
- * This pipeline renders a video to ascii art into the current terminal.
- * </para>
+ * ]| This pipeline renders a video to ascii art into the current terminal.
* </refsect2>
*/
@@ -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) \