<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>zbar</title> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="index.html" title="GStreamer Bad Plugins 0.10 Plugins Reference Manual"> <link rel="up" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="prev" href="gst-plugins-bad-plugins-wildmidi.html" title="wildmidi"> <link rel="next" href="ch02.html" title="gst-plugins-bad Plugins"> <meta name="generator" content="GTK-Doc V1.13 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="chapter" href="ch01.html" title="gst-plugins-bad Elements"> <link rel="chapter" href="ch02.html" title="gst-plugins-bad Plugins"> <link rel="chapter" href="ch03.html" title="gst-plugins-bad Classes"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> <tr valign="middle"> <td><a accesskey="p" href="gst-plugins-bad-plugins-wildmidi.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">GStreamer Bad Plugins 0.10 Plugins Reference Manual</th> <td><a accesskey="n" href="ch02.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr> <tr><td colspan="5" class="shortcuts"> <a href="#gst-plugins-bad-plugins-zbar.synopsis" class="shortcut">Top</a> | <a href="#gst-plugins-bad-plugins-zbar.description" class="shortcut">Description</a> | <a href="#gst-plugins-bad-plugins-zbar.properties" class="shortcut">Properties</a> </td></tr> </table> <div class="refentry" title="zbar"> <a name="gst-plugins-bad-plugins-zbar"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-zbar.top_of_page"></a>zbar</span></h2> <p>zbar — Detect bar codes in the video streams</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv" title="Synopsis"> <a name="gst-plugins-bad-plugins-zbar.synopsis"></a><h2>Synopsis</h2> <pre class="synopsis"> <a class="link" href="gst-plugins-bad-plugins-zbar.html#GstZBar" title="GstZBar">GstZBar</a>; </pre> </div> <div class="refsect1" title="Properties"> <a name="gst-plugins-bad-plugins-zbar.properties"></a><h2>Properties</h2> <pre class="synopsis"> "<a class="link" href="gst-plugins-bad-plugins-zbar.html#GstZBar--message" title='The "message" property'>message</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write </pre> </div> <div class="refsect1" title="Description"> <a name="gst-plugins-bad-plugins-zbar.description"></a><h2>Description</h2> <p> Detect bar codes in the video streams and send them as element messages to the <a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstBus.html"><span class="type">GstBus</span></a> if .<a class="link" href="gst-plugins-bad-plugins-zbar.html#GstZBar--message" title='The "message" property'><span class="type">"message"</span></a> property is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. </p> <p> The element generate messages named <code class="classname">"barcode"</code>. The structure containes these fields: </p> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> <li class="listitem"><p> <a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> <code class="classname">"timestamp"</code>: the timestamp of the buffer that triggered the message. </p></li> <li class="listitem"><p> gchar* <code class="classname">"type"</code>: the symbol type. </p></li> <li class="listitem"><p> gchar* <code class="classname">"symbol"</code>: the deteted bar code data. </p></li> <li class="listitem"><p> gint <code class="classname">"quality"</code>: an unscaled, relative quantity: larger values are better than smaller values. </p></li> </ul></div> <p> </p> <p> </p> <div class="refsect2" title="Example launch lines"> <a name="id411338"></a><h3>Example launch lines</h3> <div class="informalexample"> <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="listing_lines" align="right"><pre>1</pre></td> <td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>m v4l2src <span class="symbol">!</span> ffmpegcolorspace <span class="symbol">!</span> zbar <span class="symbol">!</span> ffmpegcolorspace <span class="symbol">!</span> xvimagesink</pre></td> </tr> </tbody> </table> </div> This pipeline will detect barcodes and send them as messages. <div class="informalexample"> <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="listing_lines" align="right"><pre>1</pre></td> <td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>m v4l2src <span class="symbol">!</span> tee name<span class="symbol">=</span>t <span class="symbol">!</span> queue <span class="symbol">!</span> ffmpegcolorspace <span class="symbol">!</span> zbar <span class="symbol">!</span> fakesink t<span class="symbol">. !</span> queue <span class="symbol">!</span> xvimagesink</pre></td> </tr> </tbody> </table> </div> Same as above, but running the filter on a branch to keep the display in color </div> </div> <div class="refsect1" title="Details"> <a name="gst-plugins-bad-plugins-zbar.details"></a><h2>Details</h2> <div class="refsect2" title="GstZBar"> <a name="GstZBar"></a><h3>GstZBar</h3> <pre class="programlisting">typedef struct { } GstZBar; </pre> <p> Opaque data structure.</p> </div> </div> <div class="refsect1" title="Property Details"> <a name="gst-plugins-bad-plugins-zbar.property-details"></a><h2>Property Details</h2> <div class="refsect2" title='The "message" property'> <a name="GstZBar--message"></a><h3>The <code class="literal">"message"</code> property</h3> <pre class="programlisting"> "message" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> <p>Post a barcode message for each detected code.</p> <p>Default value: TRUE</p> </div> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.13</div> </body> </html>