62
62
enum <a class="link" href="BaconVideoWidget.html#BvwVisualizationQuality" title="enum BvwVisualizationQuality">BvwVisualizationQuality</a>;
63
63
enum <a class="link" href="BaconVideoWidget.html#BvwVideoProperty" title="enum BvwVideoProperty">BvwVideoProperty</a>;
64
64
enum <a class="link" href="BaconVideoWidget.html#BvwError" title="enum BvwError">BvwError</a>;
65
enum <a class="link" href="BaconVideoWidget.html#BvwUseType" title="enum BvwUseType">BvwUseType</a>;
66
<a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="BaconVideoWidget.html#bacon-video-widget-new" title="bacon_video_widget_new ()">bacon_video_widget_new</a> (<em class="parameter"><code><span class="type">int</span> width</code></em>,
67
<em class="parameter"><code><span class="type">int</span> height</code></em>,
68
<em class="parameter"><code><a class="link" href="BaconVideoWidget.html#BvwUseType" title="enum BvwUseType"><span class="type">BvwUseType</span></a> type</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
65
<a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="BaconVideoWidget.html#bacon-video-widget-new" title="bacon_video_widget_new ()">bacon_video_widget_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
70
66
<span class="returnvalue">void</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-init-backend" title="bacon_video_widget_init_backend ()">bacon_video_widget_init_backend</a> (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
71
67
<em class="parameter"><code><span class="type">char</span> ***argv</code></em>);
72
68
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-open" title="bacon_video_widget_open ()">bacon_video_widget_open</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>,
179
175
<span class="returnvalue">double</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-get-volume" title="bacon_video_widget_get_volume ()">bacon_video_widget_get_volume</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);
180
176
<span class="returnvalue">void</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-set-volume" title="bacon_video_widget_set_volume ()">bacon_video_widget_set_volume</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>,
181
177
<em class="parameter"><code><span class="type">double</span> volume</code></em>);
182
<span class="returnvalue">double</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-get-zoom" title="bacon_video_widget_get_zoom ()">bacon_video_widget_get_zoom</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);
178
<span class="returnvalue">BvwZoomMode</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-get-zoom" title="bacon_video_widget_get_zoom ()">bacon_video_widget_get_zoom</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);
183
179
<span class="returnvalue">void</span> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-set-zoom" title="bacon_video_widget_set_zoom ()">bacon_video_widget_set_zoom</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>,
184
<em class="parameter"><code><span class="type">double</span> zoom</code></em>);
180
<em class="parameter"><code><span class="type">BvwZoomMode</span> mode</code></em>);
185
181
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-has-next-track" title="bacon_video_widget_has_next_track ()">bacon_video_widget_has_next_track</a> (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);
186
182
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="BaconVideoWidget.html#bacon-video-widget-has-previous-track" title="bacon_video_widget_has_previous_track ()">bacon_video_widget_has_previous_track</a>
187
183
(<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);
199
195
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
200
196
+----<a href="http://library.gnome.org/devel/gtk/GtkWidget.html">GtkWidget</a>
201
197
+----<a href="http://library.gnome.org/devel/gtk/GtkContainer.html">GtkContainer</a>
202
+----<a href="http://library.gnome.org/devel/gtk/GtkBin.html">GtkBin</a>
203
+----<a href="http://library.gnome.org/devel/gtk/GtkEventBox.html">GtkEventBox</a>
204
+----BaconVideoWidget
199
+----BaconVideoWidget
207
202
<div class="refsect1">
952
940
<div class="refsect2">
953
<a name="BvwUseType"></a><h3>enum BvwUseType</h3>
954
<pre class="programlisting">typedef enum {
957
BVW_USE_TYPE_CAPTURE,
958
BVW_USE_TYPE_METADATA
962
The purpose for which a <a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> will be used, as specified to
963
<a class="link" href="BaconVideoWidget.html#bacon-video-widget-new" title="bacon_video_widget_new ()"><code class="function">bacon_video_widget_new()</code></a>. This determines which features will be enabled
964
in the created widget.
966
<div class="variablelist"><table border="0">
967
<col align="left" valign="top">
970
<td><p><a name="BVW-USE-TYPE-VIDEO:CAPS"></a><span class="term"><code class="literal">BVW_USE_TYPE_VIDEO</code></span></p></td>
971
<td>fully-featured with video, audio, capture and metadata support
975
<td><p><a name="BVW-USE-TYPE-AUDIO:CAPS"></a><span class="term"><code class="literal">BVW_USE_TYPE_AUDIO</code></span></p></td>
976
<td>audio and metadata support
980
<td><p><a name="BVW-USE-TYPE-CAPTURE:CAPS"></a><span class="term"><code class="literal">BVW_USE_TYPE_CAPTURE</code></span></p></td>
981
<td>capture support only
985
<td><p><a name="BVW-USE-TYPE-METADATA:CAPS"></a><span class="term"><code class="literal">BVW_USE_TYPE_METADATA</code></span></p></td>
986
<td>metadata support only
993
<div class="refsect2">
994
941
<a name="bacon-video-widget-new"></a><h3>bacon_video_widget_new ()</h3>
995
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * bacon_video_widget_new (<em class="parameter"><code><span class="type">int</span> width</code></em>,
996
<em class="parameter"><code><span class="type">int</span> height</code></em>,
997
<em class="parameter"><code><a class="link" href="BaconVideoWidget.html#BvwUseType" title="enum BvwUseType"><span class="type">BvwUseType</span></a> type</code></em>,
998
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1000
Creates a new <a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> for the purpose specified in <em class="parameter"><code>type</code></em>.
1003
If <em class="parameter"><code>type</code></em> is <a class="link" href="BaconVideoWidget.html#BVW-USE-TYPE-VIDEO:CAPS"><code class="literal">BVW_USE_TYPE_VIDEO</code></a>, the <a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> will be fully-featured; other
1004
values of <em class="parameter"><code>type</code></em> will enable less functionality on the widget, which will come with
1005
corresponding decreases in the size of its memory footprint.
942
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * bacon_video_widget_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
944
Creates a new <a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a>.
1008
947
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> give the initial or expected video height. Set them to <code class="literal">-1</code> if the
1015
954
<col align="left" valign="top">
1018
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
1019
<td>initial or expected video width, in pixels, or <code class="literal">-1</code>
1023
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
1024
<td>initial or expected video height, in pixels, or <code class="literal">-1</code>
1028
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1029
<td>the widget's use type</td>
1032
957
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1033
958
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1046
971
<a name="bacon-video-widget-init-backend"></a><h3>bacon_video_widget_init_backend ()</h3>
1047
972
<pre class="programlisting"><span class="returnvalue">void</span> bacon_video_widget_init_backend (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
1048
973
<em class="parameter"><code><span class="type">char</span> ***argv</code></em>);</pre>
1050
Initialises <a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a>'s GStreamer backend. If this fails
1051
for the GStreamer backend, your application will be terminated.
1054
Applications must call either this or <a class="link" href="BaconVideoWidget.html#bacon-video-widget-get-option-group" title="bacon_video_widget_get_option_group ()"><code class="function">bacon_video_widget_get_option_group()</code></a> exactly
1057
<div class="variablelist"><table border="0">
1058
<col align="left" valign="top">
1061
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
1062
<td>pointer to application's argc</td>
1065
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
1066
<td>pointer to application's argv</td>
1072
976
<div class="refsect2">
1407
1311
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1409
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a menu is displyed, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
1313
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a menu is displayed, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
1739
1643
Sets whether the widget renders the stream in fullscreen mode.
1742
Fullscreen rendering is done only when possible, as xvidmode is required.
1744
1645
<div class="variablelist"><table border="0">
1745
1646
<col align="left" valign="top">
2528
2429
<div class="refsect2">
2529
2430
<a name="bacon-video-widget-get-zoom"></a><h3>bacon_video_widget_get_zoom ()</h3>
2530
<pre class="programlisting"><span class="returnvalue">double</span> bacon_video_widget_get_zoom (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);</pre>
2431
<pre class="programlisting"><span class="returnvalue">BvwZoomMode</span> bacon_video_widget_get_zoom (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>);</pre>
2532
Returns the zoom factor applied to videos displayed by the widget,
2533
as an integeric percentage between <code class="literal">0</code> and <code class="literal">1</code>
2534
(e.g. <code class="literal">1</code> means no zooming at all).
2433
Returns the zoom mode applied to videos displayed by the widget.
2536
2435
<div class="variablelist"><table border="0">
2537
2436
<col align="left" valign="top">
2552
2452
<div class="refsect2">
2553
2453
<a name="bacon-video-widget-set-zoom"></a><h3>bacon_video_widget_set_zoom ()</h3>
2554
2454
<pre class="programlisting"><span class="returnvalue">void</span> bacon_video_widget_set_zoom (<em class="parameter"><code><a class="link" href="BaconVideoWidget.html" title="BaconVideoWidget"><span class="type">BaconVideoWidget</span></a> *bvw</code></em>,
2555
<em class="parameter"><code><span class="type">double</span> zoom</code></em>);</pre>
2455
<em class="parameter"><code><span class="type">BvwZoomMode</span> mode</code></em>);</pre>
2557
Sets the zoom factor applied to the video when it is displayed,
2558
as an integeric percentage between <code class="literal">0</code> and <code class="literal">1</code>
2559
(e.g. set <em class="parameter"><code>zoom</code></em> to <code class="literal">1</code> to not zoom at all).
2457
Sets the zoom type applied to the video when it is displayed.
2561
2459
<div class="variablelist"><table border="0">
2562
2460
<col align="left" valign="top">
2570
<td><p><span class="term"><em class="parameter"><code>zoom</code></em> :</span></p></td>
2571
<td>a percentage zoom factor</td>
2468
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
2469
<td>the <span class="type">BvwZoomMode</span>