1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>GstVideoChromaResample: GStreamer Base Plugins 1.0 Library Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual"> 8<link rel="up" href="gstreamer-video.html" title="Video Library"> 9<link rel="prev" href="gst-plugins-base-libs-GstVideoDither.html" title="GstVideoDither"> 10<link rel="next" href="gst-plugins-base-libs-GstVideoResampler.html" title="GstVideoResampler"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 12<link rel="stylesheet" href="style.css" type="text/css"> 13</head> 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="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-base-libs-GstVideoChroma.description" class="shortcut">Description</a></span> 19</td> 20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 21<td><a accesskey="u" href="gstreamer-video.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 22<td><a accesskey="p" href="gst-plugins-base-libs-GstVideoDither.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="gst-plugins-base-libs-GstVideoResampler.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 24</tr></table> 25<div class="refentry"> 26<a name="gst-plugins-base-libs-GstVideoChroma"></a><div class="titlepage"></div> 27<div class="refnamediv"><table width="100%"><tr> 28<td valign="top"> 29<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-GstVideoChroma.top_of_page"></a>GstVideoChromaResample</span></h2> 30<p>GstVideoChromaResample — Functions and utility object for operating on chroma video planes</p> 31</td> 32<td class="gallery_image" valign="top" align="right"></td> 33</tr></table></div> 34<div class="refsect1"> 35<a name="gst-plugins-base-libs-GstVideoChroma.functions"></a><h2>Functions</h2> 36<div class="informaltable"><table class="informaltable" width="100%" border="0"> 37<colgroup> 38<col width="150px" class="functions_return"> 39<col class="functions_name"> 40</colgroup> 41<tbody> 42<tr> 43<td class="function_type"> 44<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="returnvalue">GstVideoChromaSite</span></a> 45</td> 46<td class="function_name"> 47<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-from-string" title="gst_video_chroma_from_string ()">gst_video_chroma_from_string</a> <span class="c_punctuation">()</span> 48</td> 49</tr> 50<tr> 51<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 52</td> 53<td class="function_name"> 54<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-to-string" title="gst_video_chroma_to_string ()">gst_video_chroma_to_string</a> <span class="c_punctuation">()</span> 55</td> 56</tr> 57<tr> 58<td class="function_type"> 59<span class="returnvalue">void</span> 60</td> 61<td class="function_name"> 62<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample" title="gst_video_chroma_resample ()">gst_video_chroma_resample</a> <span class="c_punctuation">()</span> 63</td> 64</tr> 65<tr> 66<td class="function_type"> 67<span class="returnvalue">void</span> 68</td> 69<td class="function_name"> 70<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample-free" title="gst_video_chroma_resample_free ()">gst_video_chroma_resample_free</a> <span class="c_punctuation">()</span> 71</td> 72</tr> 73<tr> 74<td class="function_type"> 75<span class="returnvalue">void</span> 76</td> 77<td class="function_name"> 78<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample-get-info" title="gst_video_chroma_resample_get_info ()">gst_video_chroma_resample_get_info</a> <span class="c_punctuation">()</span> 79</td> 80</tr> 81<tr> 82<td class="function_type"> 83<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="returnvalue">GstVideoChromaResample</span></a> * 84</td> 85<td class="function_name"> 86<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample-new" title="gst_video_chroma_resample_new ()">gst_video_chroma_resample_new</a> <span class="c_punctuation">()</span> 87</td> 88</tr> 89</tbody> 90</table></div> 91</div> 92<div class="refsect1"> 93<a name="gst-plugins-base-libs-GstVideoChroma.other"></a><h2>Types and Values</h2> 94<div class="informaltable"><table class="informaltable" width="100%" border="0"> 95<colgroup> 96<col width="150px" class="name"> 97<col class="description"> 98</colgroup> 99<tbody> 100<tr> 101<td class="datatype_keyword">enum</td> 102<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite">GstVideoChromaSite</a></td> 103</tr> 104<tr> 105<td class="datatype_keyword">enum</td> 106<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaFlags" title="enum GstVideoChromaFlags">GstVideoChromaFlags</a></td> 107</tr> 108<tr> 109<td class="datatype_keyword">enum</td> 110<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaMethod" title="enum GstVideoChromaMethod">GstVideoChromaMethod</a></td> 111</tr> 112<tr> 113<td class="datatype_keyword"> </td> 114<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample">GstVideoChromaResample</a></td> 115</tr> 116</tbody> 117</table></div> 118</div> 119<div class="refsect1"> 120<a name="gst-plugins-base-libs-GstVideoChroma.includes"></a><h2>Includes</h2> 121<pre class="synopsis">#include <gst/video/video.h> 122</pre> 123</div> 124<div class="refsect1"> 125<a name="gst-plugins-base-libs-GstVideoChroma.description"></a><h2>Description</h2> 126<p>The functions <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-from-string" title="gst_video_chroma_from_string ()"><code class="function">gst_video_chroma_from_string()</code></a> and <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-to-string" title="gst_video_chroma_to_string ()"><code class="function">gst_video_chroma_to_string()</code></a> convert 127between <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a> and string descriptions.</p> 128<p><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a> is a utility object for resampling chroma planes 129and converting between different chroma sampling sitings.</p> 130</div> 131<div class="refsect1"> 132<a name="gst-plugins-base-libs-GstVideoChroma.functions_details"></a><h2>Functions</h2> 133<div class="refsect2"> 134<a name="gst-video-chroma-from-string"></a><h3>gst_video_chroma_from_string ()</h3> 135<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="returnvalue">GstVideoChromaSite</span></a> 136gst_video_chroma_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *s</code></em>);</pre> 137<p>Convert <em class="parameter"><code>s</code></em> 138 to a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a></p> 139<div class="refsect3"> 140<a name="gst-video-chroma-from-string.parameters"></a><h4>Parameters</h4> 141<div class="informaltable"><table class="informaltable" width="100%" border="0"> 142<colgroup> 143<col width="150px" class="parameters_name"> 144<col class="parameters_description"> 145<col width="200px" class="parameters_annotations"> 146</colgroup> 147<tbody><tr> 148<td class="parameter_name"><p>s</p></td> 149<td class="parameter_description"><p>a chromasite string</p></td> 150<td class="parameter_annotations"> </td> 151</tr></tbody> 152</table></div> 153</div> 154<div class="refsect3"> 155<a name="gst-video-chroma-from-string.returns"></a><h4>Returns</h4> 156<p> a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a> or <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GST-VIDEO-CHROMA-SITE-UNKNOWN:CAPS"><code class="literal">GST_VIDEO_CHROMA_SITE_UNKNOWN</code></a> when <em class="parameter"><code>s</code></em> 157does 158not contain a valid chroma description.</p> 159</div> 160</div> 161<hr> 162<div class="refsect2"> 163<a name="gst-video-chroma-to-string"></a><h3>gst_video_chroma_to_string ()</h3> 164<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 165gst_video_chroma_to_string (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a> site</code></em>);</pre> 166<p>Converts <em class="parameter"><code>site</code></em> 167 to its string representation.</p> 168<div class="refsect3"> 169<a name="gst-video-chroma-to-string.parameters"></a><h4>Parameters</h4> 170<div class="informaltable"><table class="informaltable" width="100%" border="0"> 171<colgroup> 172<col width="150px" class="parameters_name"> 173<col class="parameters_description"> 174<col width="200px" class="parameters_annotations"> 175</colgroup> 176<tbody><tr> 177<td class="parameter_name"><p>site</p></td> 178<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a></p></td> 179<td class="parameter_annotations"> </td> 180</tr></tbody> 181</table></div> 182</div> 183<div class="refsect3"> 184<a name="gst-video-chroma-to-string.returns"></a><h4>Returns</h4> 185<p> a string describing <em class="parameter"><code>site</code></em> 186.</p> 187</div> 188</div> 189<hr> 190<div class="refsect2"> 191<a name="gst-video-chroma-resample"></a><h3>gst_video_chroma_resample ()</h3> 192<pre class="programlisting"><span class="returnvalue">void</span> 193gst_video_chroma_resample (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a> *resample</code></em>, 194 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> lines[]</code></em>, 195 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);</pre> 196<p>Perform resampling of <em class="parameter"><code>width</code></em> 197 chroma pixels in <em class="parameter"><code>lines</code></em> 198.</p> 199<div class="refsect3"> 200<a name="gst-video-chroma-resample.parameters"></a><h4>Parameters</h4> 201<div class="informaltable"><table class="informaltable" width="100%" border="0"> 202<colgroup> 203<col width="150px" class="parameters_name"> 204<col class="parameters_description"> 205<col width="200px" class="parameters_annotations"> 206</colgroup> 207<tbody> 208<tr> 209<td class="parameter_name"><p>resample</p></td> 210<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a></p></td> 211<td class="parameter_annotations"> </td> 212</tr> 213<tr> 214<td class="parameter_name"><p>lines</p></td> 215<td class="parameter_description"><p>pixel lines</p></td> 216<td class="parameter_annotations"> </td> 217</tr> 218<tr> 219<td class="parameter_name"><p>width</p></td> 220<td class="parameter_description"><p>the number of pixels on one line</p></td> 221<td class="parameter_annotations"> </td> 222</tr> 223</tbody> 224</table></div> 225</div> 226</div> 227<hr> 228<div class="refsect2"> 229<a name="gst-video-chroma-resample-free"></a><h3>gst_video_chroma_resample_free ()</h3> 230<pre class="programlisting"><span class="returnvalue">void</span> 231gst_video_chroma_resample_free (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a> *resample</code></em>);</pre> 232<p>Free <em class="parameter"><code>resample</code></em> 233</p> 234<div class="refsect3"> 235<a name="gst-video-chroma-resample-free.parameters"></a><h4>Parameters</h4> 236<div class="informaltable"><table class="informaltable" width="100%" border="0"> 237<colgroup> 238<col width="150px" class="parameters_name"> 239<col class="parameters_description"> 240<col width="200px" class="parameters_annotations"> 241</colgroup> 242<tbody><tr> 243<td class="parameter_name"><p>resample</p></td> 244<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a></p></td> 245<td class="parameter_annotations"> </td> 246</tr></tbody> 247</table></div> 248</div> 249</div> 250<hr> 251<div class="refsect2"> 252<a name="gst-video-chroma-resample-get-info"></a><h3>gst_video_chroma_resample_get_info ()</h3> 253<pre class="programlisting"><span class="returnvalue">void</span> 254gst_video_chroma_resample_get_info (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a> *resample</code></em>, 255 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_lines</code></em>, 256 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *offset</code></em>);</pre> 257<p>The resampler must be fed <em class="parameter"><code>n_lines</code></em> 258 at a time. The first line should be 259at <em class="parameter"><code>offset</code></em> 260.</p> 261<div class="refsect3"> 262<a name="gst-video-chroma-resample-get-info.parameters"></a><h4>Parameters</h4> 263<div class="informaltable"><table class="informaltable" width="100%" border="0"> 264<colgroup> 265<col width="150px" class="parameters_name"> 266<col class="parameters_description"> 267<col width="200px" class="parameters_annotations"> 268</colgroup> 269<tbody> 270<tr> 271<td class="parameter_name"><p>resample</p></td> 272<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a></p></td> 273<td class="parameter_annotations"> </td> 274</tr> 275<tr> 276<td class="parameter_name"><p>n_lines</p></td> 277<td class="parameter_description"><p>the number of input lines</p></td> 278<td class="parameter_annotations"> </td> 279</tr> 280<tr> 281<td class="parameter_name"><p>offset</p></td> 282<td class="parameter_description"><p>the first line</p></td> 283<td class="parameter_annotations"> </td> 284</tr> 285</tbody> 286</table></div> 287</div> 288</div> 289<hr> 290<div class="refsect2"> 291<a name="gst-video-chroma-resample-new"></a><h3>gst_video_chroma_resample_new ()</h3> 292<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="returnvalue">GstVideoChromaResample</span></a> * 293gst_video_chroma_resample_new (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaMethod" title="enum GstVideoChromaMethod"><span class="type">GstVideoChromaMethod</span></a> method</code></em>, 294 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a> site</code></em>, 295 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaFlags" title="enum GstVideoChromaFlags"><span class="type">GstVideoChromaFlags</span></a> flags</code></em>, 296 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoFormat" title="enum GstVideoFormat"><span class="type">GstVideoFormat</span></a> format</code></em>, 297 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> h_factor</code></em>, 298 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> v_factor</code></em>);</pre> 299<p>Create a new resampler object for the given parameters. When <em class="parameter"><code>h_factor</code></em> 300 or 301<em class="parameter"><code>v_factor</code></em> 302 is > 0, upsampling will be used, otherwise subsampling is 303performed.</p> 304<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p> 305<div class="refsect3"> 306<a name="gst-video-chroma-resample-new.parameters"></a><h4>Parameters</h4> 307<div class="informaltable"><table class="informaltable" width="100%" border="0"> 308<colgroup> 309<col width="150px" class="parameters_name"> 310<col class="parameters_description"> 311<col width="200px" class="parameters_annotations"> 312</colgroup> 313<tbody> 314<tr> 315<td class="parameter_name"><p>method</p></td> 316<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaMethod" title="enum GstVideoChromaMethod"><span class="type">GstVideoChromaMethod</span></a></p></td> 317<td class="parameter_annotations"> </td> 318</tr> 319<tr> 320<td class="parameter_name"><p>site</p></td> 321<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaSite" title="enum GstVideoChromaSite"><span class="type">GstVideoChromaSite</span></a></p></td> 322<td class="parameter_annotations"> </td> 323</tr> 324<tr> 325<td class="parameter_name"><p>flags</p></td> 326<td class="parameter_description"><p><a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaFlags" title="enum GstVideoChromaFlags"><span class="type">GstVideoChromaFlags</span></a></p></td> 327<td class="parameter_annotations"> </td> 328</tr> 329<tr> 330<td class="parameter_name"><p>format</p></td> 331<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoFormat" title="enum GstVideoFormat"><span class="type">GstVideoFormat</span></a></p></td> 332<td class="parameter_annotations"> </td> 333</tr> 334<tr> 335<td class="parameter_name"><p>h_factor</p></td> 336<td class="parameter_description"><p>horizontal resampling factor</p></td> 337<td class="parameter_annotations"> </td> 338</tr> 339<tr> 340<td class="parameter_name"><p>v_factor</p></td> 341<td class="parameter_description"><p>vertical resampling factor</p></td> 342<td class="parameter_annotations"> </td> 343</tr> 344</tbody> 345</table></div> 346</div> 347<div class="refsect3"> 348<a name="gst-video-chroma-resample-new.returns"></a><h4>Returns</h4> 349<p> a new <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#GstVideoChromaResample" title="GstVideoChromaResample"><span class="type">GstVideoChromaResample</span></a> that should be freed with 350<a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample-free" title="gst_video_chroma_resample_free ()"><code class="function">gst_video_chroma_resample_free()</code></a> after usage.</p> 351</div> 352</div> 353</div> 354<div class="refsect1"> 355<a name="gst-plugins-base-libs-GstVideoChroma.other_details"></a><h2>Types and Values</h2> 356<div class="refsect2"> 357<a name="GstVideoChromaSite"></a><h3>enum GstVideoChromaSite</h3> 358<p>Various Chroma sitings.</p> 359<div class="refsect3"> 360<a name="GstVideoChromaSite.members"></a><h4>Members</h4> 361<div class="informaltable"><table class="informaltable" width="100%" border="0"> 362<colgroup> 363<col width="300px" class="enum_members_name"> 364<col class="enum_members_description"> 365<col width="200px" class="enum_members_annotations"> 366</colgroup> 367<tbody> 368<tr> 369<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-UNKNOWN:CAPS"></a>GST_VIDEO_CHROMA_SITE_UNKNOWN</p></td> 370<td class="enum_member_description"> 371<p>unknown cositing</p> 372</td> 373<td class="enum_member_annotations"> </td> 374</tr> 375<tr> 376<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-NONE:CAPS"></a>GST_VIDEO_CHROMA_SITE_NONE</p></td> 377<td class="enum_member_description"> 378<p>no cositing</p> 379</td> 380<td class="enum_member_annotations"> </td> 381</tr> 382<tr> 383<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-H-COSITED:CAPS"></a>GST_VIDEO_CHROMA_SITE_H_COSITED</p></td> 384<td class="enum_member_description"> 385<p>chroma is horizontally cosited</p> 386</td> 387<td class="enum_member_annotations"> </td> 388</tr> 389<tr> 390<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-V-COSITED:CAPS"></a>GST_VIDEO_CHROMA_SITE_V_COSITED</p></td> 391<td class="enum_member_description"> 392<p>chroma is vertically cosited</p> 393</td> 394<td class="enum_member_annotations"> </td> 395</tr> 396<tr> 397<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-ALT-LINE:CAPS"></a>GST_VIDEO_CHROMA_SITE_ALT_LINE</p></td> 398<td class="enum_member_description"> 399<p>choma samples are sited on alternate lines</p> 400</td> 401<td class="enum_member_annotations"> </td> 402</tr> 403<tr> 404<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-COSITED:CAPS"></a>GST_VIDEO_CHROMA_SITE_COSITED</p></td> 405<td class="enum_member_description"> 406<p>chroma samples cosited with luma samples</p> 407</td> 408<td class="enum_member_annotations"> </td> 409</tr> 410<tr> 411<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-JPEG:CAPS"></a>GST_VIDEO_CHROMA_SITE_JPEG</p></td> 412<td class="enum_member_description"> 413<p>jpeg style cositing, also for mpeg1 and mjpeg</p> 414</td> 415<td class="enum_member_annotations"> </td> 416</tr> 417<tr> 418<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-MPEG2:CAPS"></a>GST_VIDEO_CHROMA_SITE_MPEG2</p></td> 419<td class="enum_member_description"> 420<p>mpeg2 style cositing</p> 421</td> 422<td class="enum_member_annotations"> </td> 423</tr> 424<tr> 425<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-SITE-DV:CAPS"></a>GST_VIDEO_CHROMA_SITE_DV</p></td> 426<td class="enum_member_description"> 427<p>DV style cositing</p> 428</td> 429<td class="enum_member_annotations"> </td> 430</tr> 431</tbody> 432</table></div> 433</div> 434</div> 435<hr> 436<div class="refsect2"> 437<a name="GstVideoChromaFlags"></a><h3>enum GstVideoChromaFlags</h3> 438<p>Extra flags that influence the result from <a class="link" href="gst-plugins-base-libs-GstVideoChroma.html#gst-video-chroma-resample-new" title="gst_video_chroma_resample_new ()"><code class="function">gst_video_chroma_resample_new()</code></a>.</p> 439<div class="refsect3"> 440<a name="GstVideoChromaFlags.members"></a><h4>Members</h4> 441<div class="informaltable"><table class="informaltable" width="100%" border="0"> 442<colgroup> 443<col width="300px" class="enum_members_name"> 444<col class="enum_members_description"> 445<col width="200px" class="enum_members_annotations"> 446</colgroup> 447<tbody> 448<tr> 449<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-FLAG-NONE:CAPS"></a>GST_VIDEO_CHROMA_FLAG_NONE</p></td> 450<td class="enum_member_description"> 451<p>no flags</p> 452</td> 453<td class="enum_member_annotations"> </td> 454</tr> 455<tr> 456<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-FLAG-INTERLACED:CAPS"></a>GST_VIDEO_CHROMA_FLAG_INTERLACED</p></td> 457<td class="enum_member_description"> 458<p>the input is interlaced</p> 459</td> 460<td class="enum_member_annotations"> </td> 461</tr> 462</tbody> 463</table></div> 464</div> 465</div> 466<hr> 467<div class="refsect2"> 468<a name="GstVideoChromaMethod"></a><h3>enum GstVideoChromaMethod</h3> 469<p>Different subsampling and upsampling methods</p> 470<div class="refsect3"> 471<a name="GstVideoChromaMethod.members"></a><h4>Members</h4> 472<div class="informaltable"><table class="informaltable" width="100%" border="0"> 473<colgroup> 474<col width="300px" class="enum_members_name"> 475<col class="enum_members_description"> 476<col width="200px" class="enum_members_annotations"> 477</colgroup> 478<tbody> 479<tr> 480<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-METHOD-NEAREST:CAPS"></a>GST_VIDEO_CHROMA_METHOD_NEAREST</p></td> 481<td class="enum_member_description"> 482<p>Duplicates the chroma samples when 483 upsampling and drops when subsampling</p> 484</td> 485<td class="enum_member_annotations"> </td> 486</tr> 487<tr> 488<td class="enum_member_name"><p><a name="GST-VIDEO-CHROMA-METHOD-LINEAR:CAPS"></a>GST_VIDEO_CHROMA_METHOD_LINEAR</p></td> 489<td class="enum_member_description"> 490<p>Uses linear interpolation to reconstruct 491 missing chroma and averaging to subsample</p> 492</td> 493<td class="enum_member_annotations"> </td> 494</tr> 495</tbody> 496</table></div> 497</div> 498</div> 499<hr> 500<div class="refsect2"> 501<a name="GstVideoChromaResample"></a><h3>GstVideoChromaResample</h3> 502<pre class="programlisting">typedef struct _GstVideoChromaResample GstVideoChromaResample;</pre> 503</div> 504</div> 505</div> 506<div class="footer"> 507<hr>Generated by GTK-Doc V1.28</div> 508</body> 509</html>