diff options
Diffstat (limited to 'ext/libcaca')
-rw-r--r-- | ext/libcaca/gstcacasink.c | 30 | ||||
-rw-r--r-- | ext/libcaca/gstcacasink.h | 11 |
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) \ |