1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>cacasink</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-good Elements">
9 <link rel="prev" href="gst-plugins-good-plugins-avisubtitle.html" title="avisubtitle">
10 <link rel="next" href="gst-plugins-good-plugins-cairotextoverlay.html" title="cairotextoverlay">
11 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gst-plugins-good-plugins-avisubtitle.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Good Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-good-plugins-cairotextoverlay.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-good-plugins-cacasink.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-good-plugins-cacasink.description" class="shortcut">Description</a>
28 <a href="#gst-plugins-good-plugins-cacasink.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gst-plugins-good-plugins-cacasink.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="gst-plugins-good-plugins-cacasink"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-cacasink.top_of_page"></a>cacasink</span></h2>
38 <p>cacasink — A colored ASCII art videosink</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="gst-plugins-good-plugins-cacasink.synopsis"></a><h2>Synopsis</h2>
44 <a name="GstCACASink"></a><pre class="synopsis">struct <a class="link" href="gst-plugins-good-plugins-cacasink.html#GstCACASink-struct" title="struct GstCACASink">GstCACASink</a>;
47 <div class="refsect1">
48 <a name="gst-plugins-good-plugins-cacasink.object-hierarchy"></a><h2>Object Hierarchy</h2>
49 <pre class="synopsis">
50 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
51 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html">GstObject</a>
52 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html">GstElement</a>
53 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html">GstBaseSink</a>
57 <div class="refsect1">
58 <a name="gst-plugins-good-plugins-cacasink.properties"></a><h2>Properties</h2>
59 <pre class="synopsis">
60 "<a class="link" href="gst-plugins-good-plugins-cacasink.html#GstCACASink--anti-aliasing" title='The "anti-aliasing" property'>anti-aliasing</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
61 "<a class="link" href="gst-plugins-good-plugins-cacasink.html#GstCACASink--dither" title='The "dither" property'>dither</a>" <span class="type">GstCACASinkDithering</span> : Read / Write
62 "<a class="link" href="gst-plugins-good-plugins-cacasink.html#GstCACASink--screen-height" title='The "screen-height" property'>screen-height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
63 "<a class="link" href="gst-plugins-good-plugins-cacasink.html#GstCACASink--screen-width" title='The "screen-width" property'>screen-width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
66 <div class="refsect1">
67 <a name="gst-plugins-good-plugins-cacasink.description"></a><h2>Description</h2>
69 Displays video as color ascii art.
73 <div class="refsect2">
74 <a name="idp5695344"></a><h3>Example launch line</h3>
75 <div class="informalexample">
76 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
79 <td class="listing_lines" align="right"><pre>1</pre></td>
80 <td class="listing_code"><pre class="programlisting">CACA_GEOMETRY<span class="gtkdoc opt">=</span><span class="number">160</span>x60 CACA_FONT<span class="gtkdoc opt">=</span><span class="number">5</span>x7 gst<span class="gtkdoc opt">-</span>launch filesrc location<span class="gtkdoc opt">=</span>test<span class="gtkdoc opt">.</span>avi <span class="gtkdoc opt">!</span> decodebin <span class="gtkdoc opt">!</span> ffmpegcolorspace <span class="gtkdoc opt">!</span> cacasink</pre></td>
85 This pipeline renders a video to ascii art into a separate window using a
86 small font and specifying the ascii resolution.
87 <div class="informalexample">
88 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
91 <td class="listing_lines" align="right"><pre>1</pre></td>
92 <td class="listing_code"><pre class="programlisting">CACA_DRIVER<span class="gtkdoc opt">=</span>ncurses gst<span class="gtkdoc opt">-</span>launch filesrc location<span class="gtkdoc opt">=</span>test<span class="gtkdoc opt">.</span>avi <span class="gtkdoc opt">!</span> decodebin <span class="gtkdoc opt">!</span> ffmpegcolorspace <span class="gtkdoc opt">!</span> cacasink</pre></td>
97 This pipeline renders a video to ascii art into the current terminal.
101 <div class="refsynopsisdiv">
103 <div class="refsect2">
104 <a name="idp7430544"></a><h3>Element Information</h3>
105 <div class="variablelist"><table border="0">
106 <col align="left" valign="top">
109 <td><p><span class="term">plugin</span></p></td>
111 <a class="link" href="gst-plugins-good-plugins-plugin-cacasink.html#plugin-cacasink">cacasink</a>
115 <td><p><span class="term">author</span></p></td>
116 <td>Zeeshan Ali <zak147@yahoo.com></td>
119 <td><p><span class="term">class</span></p></td>
126 <div class="refsect2">
127 <a name="idp1660480"></a><h3>Element Pads</h3>
128 <div class="variablelist"><table border="0">
129 <col align="left" valign="top">
132 <td><p><span class="term">name</span></p></td>
136 <td><p><span class="term">direction</span></p></td>
140 <td><p><span class="term">presence</span></p></td>
144 <td><p><span class="term">details</span></p></td>
145 <td>video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
148 <td><p><span class="term"></span></p></td>
149 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
152 <td><p><span class="term"></span></p></td>
153 <td> video/x-raw-rgb, bpp=(int)16, depth=(int)16, endianness=(int)1234, red_mask=(int)63488, green_mask=(int)2016, blue_mask=(int)31, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
156 <td><p><span class="term"></span></p></td>
157 <td> video/x-raw-rgb, bpp=(int)16, depth=(int)15, endianness=(int)1234, red_mask=(int)31744, green_mask=(int)992, blue_mask=(int)31, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
166 <div class="refsect1">
167 <a name="gst-plugins-good-plugins-cacasink.details"></a><h2>Details</h2>
168 <div class="refsect2">
169 <a name="GstCACASink-struct"></a><h3>struct GstCACASink</h3>
170 <pre class="programlisting">struct GstCACASink;</pre>
175 <div class="refsect1">
176 <a name="gst-plugins-good-plugins-cacasink.property-details"></a><h2>Property Details</h2>
177 <div class="refsect2">
178 <a name="GstCACASink--anti-aliasing"></a><h3>The <code class="literal">"anti-aliasing"</code> property</h3>
179 <pre class="programlisting"> "anti-aliasing" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
180 <p>Enables Anti-Aliasing.</p>
181 <p>Default value: TRUE</p>
184 <div class="refsect2">
185 <a name="GstCACASink--dither"></a><h3>The <code class="literal">"dither"</code> property</h3>
186 <pre class="programlisting"> "dither" <span class="type">GstCACASinkDithering</span> : Read / Write</pre>
187 <p>Set type of Dither.</p>
188 <p>Default value: No dithering</p>
191 <div class="refsect2">
192 <a name="GstCACASink--screen-height"></a><h3>The <code class="literal">"screen-height"</code> property</h3>
193 <pre class="programlisting"> "screen-height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read</pre>
194 <p>The height of the screen.</p>
195 <p>Allowed values: >= 0</p>
196 <p>Default value: 25</p>
199 <div class="refsect2">
200 <a name="GstCACASink--screen-width"></a><h3>The <code class="literal">"screen-width"</code> property</h3>
201 <pre class="programlisting"> "screen-width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read</pre>
202 <p>The width of the screen.</p>
203 <p>Allowed values: >= 0</p>
204 <p>Default value: 80</p>
207 <div class="refsect1">
208 <a name="gst-plugins-good-plugins-cacasink.see-also"></a><h2>See Also</h2>
209 <a class="link" href="gst-plugins-good-plugins-aasink.html#GstAASink"><span class="type">GstAASink</span></a>
214 Generated by GTK-Doc V1.17</div>