Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 6d445a7e34cab500c4a729b1f6c7a5fd > files > 159

lib64gstreamer-plugins-base0.10-devel-0.10.17-3mdv2008.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gstvideo</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GStreamer Base Plugins 0.10 Library Reference Manual">
<link rel="up" href="gstreamer-video.html" title="Video Library">
<link rel="prev" href="gstreamer-video.html" title="Video Library">
<link rel="next" href="gst-plugins-base-libs-gstvideosink.html" title="gstvideosink">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gstreamer-plugins-base.html" title="Part&#160;I.&#160;GStreamer Base Plugins Libraries">
<link rel="chapter" href="gstreamer-audio.html" title="Audio Library">
<link rel="chapter" href="gstreamer-cdda.html" title="CDDA Library">
<link rel="chapter" href="gstreamer-ffft.html" title="FFT Library">
<link rel="chapter" href="gstreamer-floatcast.html" title="FloatCast Library">
<link rel="chapter" href="gstreamer-interfaces.html" title="Interfaces Library">
<link rel="chapter" href="gstreamer-netbuffer.html" title="Network Buffer Library">
<link rel="chapter" href="gstreamer-riff.html" title="Riff Media Library">
<link rel="chapter" href="gstreamer-rtp.html" title="RTP Library">
<link rel="chapter" href="gstreamer-rtsp.html" title="RTSP Library">
<link rel="chapter" href="gstreamer-sdp.html" title="SDP Library">
<link rel="chapter" href="gstreamer-tag.html" title="Tag Support Library">
<link rel="chapter" href="gstreamer-base-utils.html" title="Base Utils Library">
<link rel="chapter" href="gstreamer-video.html" title="Video Library">
<link rel="part" href="gstreamer-libs-hierarchy.html" title="Part&#160;II.&#160;Object Hierarchy">
<link rel="index" href="api-index.html" title="Index">
</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="gstreamer-video.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="gstreamer-video.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 Base Plugins 0.10 Library Reference Manual</th>
<td><a accesskey="n" href="gst-plugins-base-libs-gstvideosink.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2755902" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2757100" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gst-plugins-base-libs-gstvideo"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2755902"></a><span class="refentrytitle">gstvideo</span>
</h2>
<p>gstvideo &#8212; Support library for video operations</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gst/video/video.h&gt;


#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BLUE-MASK-15:CAPS">GST_VIDEO_BLUE_MASK_15</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BLUE-MASK-15-INT:CAPS">GST_VIDEO_BLUE_MASK_15_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BLUE-MASK-16:CAPS">GST_VIDEO_BLUE_MASK_16</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BLUE-MASK-16-INT:CAPS">GST_VIDEO_BLUE_MASK_16_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE1-MASK-24:CAPS">GST_VIDEO_BYTE1_MASK_24</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE1-MASK-24-INT:CAPS">GST_VIDEO_BYTE1_MASK_24_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE1-MASK-32:CAPS">GST_VIDEO_BYTE1_MASK_32</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE1-MASK-32-INT:CAPS">GST_VIDEO_BYTE1_MASK_32_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE2-MASK-24:CAPS">GST_VIDEO_BYTE2_MASK_24</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE2-MASK-24-INT:CAPS">GST_VIDEO_BYTE2_MASK_24_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE2-MASK-32:CAPS">GST_VIDEO_BYTE2_MASK_32</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE2-MASK-32-INT:CAPS">GST_VIDEO_BYTE2_MASK_32_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE3-MASK-24:CAPS">GST_VIDEO_BYTE3_MASK_24</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE3-MASK-24-INT:CAPS">GST_VIDEO_BYTE3_MASK_24_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE3-MASK-32:CAPS">GST_VIDEO_BYTE3_MASK_32</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE3-MASK-32-INT:CAPS">GST_VIDEO_BYTE3_MASK_32_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE4-MASK-32:CAPS">GST_VIDEO_BYTE4_MASK_32</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-BYTE4-MASK-32-INT:CAPS">GST_VIDEO_BYTE4_MASK_32_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-ABGR:CAPS">GST_VIDEO_CAPS_ABGR</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-ARGB:CAPS">GST_VIDEO_CAPS_ARGB</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-BGR:CAPS">GST_VIDEO_CAPS_BGR</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-BGRA:CAPS">GST_VIDEO_CAPS_BGRA</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-BGRx">GST_VIDEO_CAPS_BGRx</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-BGRx-HOST-ENDIAN">GST_VIDEO_CAPS_BGRx_HOST_ENDIAN</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-RGB:CAPS">GST_VIDEO_CAPS_RGB</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-RGBA:CAPS">GST_VIDEO_CAPS_RGBA</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-RGB-15:CAPS">GST_VIDEO_CAPS_RGB_15</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-RGB-16:CAPS">GST_VIDEO_CAPS_RGB_16</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-RGBx">GST_VIDEO_CAPS_RGBx</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-YUV:CAPS">GST_VIDEO_CAPS_YUV</a>                  (fourcc)
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-xBGR">GST_VIDEO_CAPS_xBGR</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-xRGB">GST_VIDEO_CAPS_xRGB</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-xRGB-HOST-ENDIAN">GST_VIDEO_CAPS_xRGB_HOST_ENDIAN</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-FPS-RANGE:CAPS">GST_VIDEO_FPS_RANGE</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-GREEN-MASK-15:CAPS">GST_VIDEO_GREEN_MASK_15</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-GREEN-MASK-15-INT:CAPS">GST_VIDEO_GREEN_MASK_15_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-GREEN-MASK-16:CAPS">GST_VIDEO_GREEN_MASK_16</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-GREEN-MASK-16-INT:CAPS">GST_VIDEO_GREEN_MASK_16_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-RED-MASK-15:CAPS">GST_VIDEO_RED_MASK_15</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-RED-MASK-15-INT:CAPS">GST_VIDEO_RED_MASK_15_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-RED-MASK-16:CAPS">GST_VIDEO_RED_MASK_16</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-RED-MASK-16-INT:CAPS">GST_VIDEO_RED_MASK_16_INT</a>
#define             <a href="gst-plugins-base-libs-gstvideo.html#GST-VIDEO-SIZE-RANGE:CAPS">GST_VIDEO_SIZE_RANGE</a>
enum                <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a>;
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-calculate-display-ratio">gst_video_calculate_display_ratio</a>   (guint *dar_n,
                                                         guint *dar_d,
                                                         guint video_width,
                                                         guint video_height,
                                                         guint video_par_n,
                                                         guint video_par_d,
                                                         guint display_par_n,
                                                         guint display_par_d);
const GValue*       <a href="gst-plugins-base-libs-gstvideo.html#gst-video-frame-rate">gst_video_frame_rate</a>                (GstPad *pad);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-get-size">gst_video_get_size</a>                  (GstPad *pad,
                                                         gint *width,
                                                         gint *height);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-convert">gst_video_format_convert</a>            (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height,
                                                         int fps_n,
                                                         int fps_d,
                                                         GstFormat src_format,
                                                         gint64 src_value,
                                                         GstFormat dest_format,
                                                         gint64 *dest_value);
GstCaps*            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-new-caps">gst_video_format_new_caps</a>           (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height,
                                                         int framerate_n,
                                                         int framerate_d,
                                                         int par_n,
                                                         int par_d);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-component-height">gst_video_format_get_component_height</a>
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int height);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-component-offset">gst_video_format_get_component_offset</a>
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width,
                                                         int height);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-component-width">gst_video_format_get_component_width</a>
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-pixel-stride">gst_video_format_get_pixel_stride</a>   (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-row-stride">gst_video_format_get_row_stride</a>     (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width);
int                 <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-get-size">gst_video_format_get_size</a>           (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-has-alpha">gst_video_format_has_alpha</a>          (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-is-rgb">gst_video_format_is_rgb</a>             (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-is-yuv">gst_video_format_is_yuv</a>             (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);
guint32             <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-to-fourcc">gst_video_format_to_fourcc</a>          (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);
<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a>      <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-from-fourcc">gst_video_format_from_fourcc</a>        (guint32 fourcc);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-format-parse-caps">gst_video_format_parse_caps</a>         (GstCaps *caps,
                                                         <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> *format,
                                                         int *width,
                                                         int *height);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-parse-caps-framerate">gst_video_parse_caps_framerate</a>      (GstCaps *caps,
                                                         int *fps_n,
                                                         int *fps_d);
gboolean            <a href="gst-plugins-base-libs-gstvideo.html#gst-video-parse-caps-pixel-aspect-ratio">gst_video_parse_caps_pixel_aspect_ratio</a>
                                                        (GstCaps *caps,
                                                         int *par_n,
                                                         int *par_d);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2757100"></a><h2>Description</h2>
<p>
</p>
<div class="refsect2" lang="en">
<a name="id2757112"></a><p>
This library contains some helper functions and includes the 
videosink and videofilter base classes.
</p>
</div>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2757124"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2757135"></a><h3>
<a name="GST-VIDEO-BLUE-MASK-15:CAPS"></a>GST_VIDEO_BLUE_MASK_15</h3>
<a class="indexterm" name="id2757147"></a><pre class="programlisting">#define GST_VIDEO_BLUE_MASK_15 "0x001f"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757163"></a><h3>
<a name="GST-VIDEO-BLUE-MASK-15-INT:CAPS"></a>GST_VIDEO_BLUE_MASK_15_INT</h3>
<a class="indexterm" name="id2757177"></a><pre class="programlisting">#define GST_VIDEO_BLUE_MASK_15_INT 0x001f
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757192"></a><h3>
<a name="GST-VIDEO-BLUE-MASK-16:CAPS"></a>GST_VIDEO_BLUE_MASK_16</h3>
<a class="indexterm" name="id2757206"></a><pre class="programlisting">#define GST_VIDEO_BLUE_MASK_16 "0x001f"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757221"></a><h3>
<a name="GST-VIDEO-BLUE-MASK-16-INT:CAPS"></a>GST_VIDEO_BLUE_MASK_16_INT</h3>
<a class="indexterm" name="id2757234"></a><pre class="programlisting">#define GST_VIDEO_BLUE_MASK_16_INT 0x001f
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757250"></a><h3>
<a name="GST-VIDEO-BYTE1-MASK-24:CAPS"></a>GST_VIDEO_BYTE1_MASK_24</h3>
<a class="indexterm" name="id2757263"></a><pre class="programlisting">#define GST_VIDEO_BYTE1_MASK_24  "0x00FF0000"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757279"></a><h3>
<a name="GST-VIDEO-BYTE1-MASK-24-INT:CAPS"></a>GST_VIDEO_BYTE1_MASK_24_INT</h3>
<a class="indexterm" name="id2757292"></a><pre class="programlisting">#define GST_VIDEO_BYTE1_MASK_24_INT  0x00FF0000
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757308"></a><h3>
<a name="GST-VIDEO-BYTE1-MASK-32:CAPS"></a>GST_VIDEO_BYTE1_MASK_32</h3>
<a class="indexterm" name="id2757321"></a><pre class="programlisting">#define GST_VIDEO_BYTE1_MASK_32  "0xFF000000"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757336"></a><h3>
<a name="GST-VIDEO-BYTE1-MASK-32-INT:CAPS"></a>GST_VIDEO_BYTE1_MASK_32_INT</h3>
<a class="indexterm" name="id2757349"></a><pre class="programlisting">#define GST_VIDEO_BYTE1_MASK_32_INT  0xFF000000
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757365"></a><h3>
<a name="GST-VIDEO-BYTE2-MASK-24:CAPS"></a>GST_VIDEO_BYTE2_MASK_24</h3>
<a class="indexterm" name="id2757378"></a><pre class="programlisting">#define GST_VIDEO_BYTE2_MASK_24  "0x0000FF00"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757394"></a><h3>
<a name="GST-VIDEO-BYTE2-MASK-24-INT:CAPS"></a>GST_VIDEO_BYTE2_MASK_24_INT</h3>
<a class="indexterm" name="id2757407"></a><pre class="programlisting">#define GST_VIDEO_BYTE2_MASK_24_INT  0x0000FF00
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757423"></a><h3>
<a name="GST-VIDEO-BYTE2-MASK-32:CAPS"></a>GST_VIDEO_BYTE2_MASK_32</h3>
<a class="indexterm" name="id2757436"></a><pre class="programlisting">#define GST_VIDEO_BYTE2_MASK_32  "0x00FF0000"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757452"></a><h3>
<a name="GST-VIDEO-BYTE2-MASK-32-INT:CAPS"></a>GST_VIDEO_BYTE2_MASK_32_INT</h3>
<a class="indexterm" name="id2757466"></a><pre class="programlisting">#define GST_VIDEO_BYTE2_MASK_32_INT  0x00FF0000
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757481"></a><h3>
<a name="GST-VIDEO-BYTE3-MASK-24:CAPS"></a>GST_VIDEO_BYTE3_MASK_24</h3>
<a class="indexterm" name="id2757495"></a><pre class="programlisting">#define GST_VIDEO_BYTE3_MASK_24  "0x000000FF"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757511"></a><h3>
<a name="GST-VIDEO-BYTE3-MASK-24-INT:CAPS"></a>GST_VIDEO_BYTE3_MASK_24_INT</h3>
<a class="indexterm" name="id2757524"></a><pre class="programlisting">#define GST_VIDEO_BYTE3_MASK_24_INT  0x000000FF
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757540"></a><h3>
<a name="GST-VIDEO-BYTE3-MASK-32:CAPS"></a>GST_VIDEO_BYTE3_MASK_32</h3>
<a class="indexterm" name="id2757553"></a><pre class="programlisting">#define GST_VIDEO_BYTE3_MASK_32  "0x0000FF00"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757569"></a><h3>
<a name="GST-VIDEO-BYTE3-MASK-32-INT:CAPS"></a>GST_VIDEO_BYTE3_MASK_32_INT</h3>
<a class="indexterm" name="id2757582"></a><pre class="programlisting">#define GST_VIDEO_BYTE3_MASK_32_INT  0x0000FF00
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757598"></a><h3>
<a name="GST-VIDEO-BYTE4-MASK-32:CAPS"></a>GST_VIDEO_BYTE4_MASK_32</h3>
<a class="indexterm" name="id2757611"></a><pre class="programlisting">#define GST_VIDEO_BYTE4_MASK_32  "0x000000FF"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757627"></a><h3>
<a name="GST-VIDEO-BYTE4-MASK-32-INT:CAPS"></a>GST_VIDEO_BYTE4_MASK_32_INT</h3>
<a class="indexterm" name="id2757640"></a><pre class="programlisting">#define GST_VIDEO_BYTE4_MASK_32_INT  0x000000FF
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757656"></a><h3>
<a name="GST-VIDEO-CAPS-ABGR:CAPS"></a>GST_VIDEO_CAPS_ABGR</h3>
<a class="indexterm" name="id2757669"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_ABGR</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757684"></a><h3>
<a name="GST-VIDEO-CAPS-ARGB:CAPS"></a>GST_VIDEO_CAPS_ARGB</h3>
<a class="indexterm" name="id2757698"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_ARGB</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757713"></a><h3>
<a name="GST-VIDEO-CAPS-BGR:CAPS"></a>GST_VIDEO_CAPS_BGR</h3>
<a class="indexterm" name="id2757726"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_BGR</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757742"></a><h3>
<a name="GST-VIDEO-CAPS-BGRA:CAPS"></a>GST_VIDEO_CAPS_BGRA</h3>
<a class="indexterm" name="id2757754"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_BGRA</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757770"></a><h3>
<a name="GST-VIDEO-CAPS-BGRx"></a>GST_VIDEO_CAPS_BGRx</h3>
<a class="indexterm" name="id2757782"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_BGRx</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757797"></a><h3>
<a name="GST-VIDEO-CAPS-BGRx-HOST-ENDIAN"></a>GST_VIDEO_CAPS_BGRx_HOST_ENDIAN</h3>
<a class="indexterm" name="id2757810"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_BGRx_HOST_ENDIAN</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757826"></a><h3>
<a name="GST-VIDEO-CAPS-RGB:CAPS"></a>GST_VIDEO_CAPS_RGB</h3>
<a class="indexterm" name="id2757839"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_RGB</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757854"></a><h3>
<a name="GST-VIDEO-CAPS-RGBA:CAPS"></a>GST_VIDEO_CAPS_RGBA</h3>
<a class="indexterm" name="id2757868"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_RGBA</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757883"></a><h3>
<a name="GST-VIDEO-CAPS-RGB-15:CAPS"></a>GST_VIDEO_CAPS_RGB_15</h3>
<a class="indexterm" name="id2757895"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_RGB_15</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757911"></a><h3>
<a name="GST-VIDEO-CAPS-RGB-16:CAPS"></a>GST_VIDEO_CAPS_RGB_16</h3>
<a class="indexterm" name="id2757924"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_RGB_16</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757940"></a><h3>
<a name="GST-VIDEO-CAPS-RGBx"></a>GST_VIDEO_CAPS_RGBx</h3>
<a class="indexterm" name="id2757953"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_RGBx</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2757968"></a><h3>
<a name="GST-VIDEO-CAPS-YUV:CAPS"></a>GST_VIDEO_CAPS_YUV()</h3>
<a class="indexterm" name="id2757981"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_YUV(fourcc)</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term"><em class="parameter"><code>fourcc</code></em>&#160;:</span></td>
<td>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758014"></a><h3>
<a name="GST-VIDEO-CAPS-xBGR"></a>GST_VIDEO_CAPS_xBGR</h3>
<a class="indexterm" name="id2758027"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_xBGR</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758042"></a><h3>
<a name="GST-VIDEO-CAPS-xRGB"></a>GST_VIDEO_CAPS_xRGB</h3>
<a class="indexterm" name="id2758055"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_xRGB</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758070"></a><h3>
<a name="GST-VIDEO-CAPS-xRGB-HOST-ENDIAN"></a>GST_VIDEO_CAPS_xRGB_HOST_ENDIAN</h3>
<a class="indexterm" name="id2758083"></a><pre class="programlisting">#define             GST_VIDEO_CAPS_xRGB_HOST_ENDIAN</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758099"></a><h3>
<a name="GST-VIDEO-FPS-RANGE:CAPS"></a>GST_VIDEO_FPS_RANGE</h3>
<a class="indexterm" name="id2758112"></a><pre class="programlisting">#define GST_VIDEO_FPS_RANGE "(fraction) [ 0, max ]"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758128"></a><h3>
<a name="GST-VIDEO-GREEN-MASK-15:CAPS"></a>GST_VIDEO_GREEN_MASK_15</h3>
<a class="indexterm" name="id2758141"></a><pre class="programlisting">#define GST_VIDEO_GREEN_MASK_15 "0x03e0"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758157"></a><h3>
<a name="GST-VIDEO-GREEN-MASK-15-INT:CAPS"></a>GST_VIDEO_GREEN_MASK_15_INT</h3>
<a class="indexterm" name="id2758170"></a><pre class="programlisting">#define GST_VIDEO_GREEN_MASK_15_INT 0x03e0
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758186"></a><h3>
<a name="GST-VIDEO-GREEN-MASK-16:CAPS"></a>GST_VIDEO_GREEN_MASK_16</h3>
<a class="indexterm" name="id2758199"></a><pre class="programlisting">#define GST_VIDEO_GREEN_MASK_16 "0x07e0"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758214"></a><h3>
<a name="GST-VIDEO-GREEN-MASK-16-INT:CAPS"></a>GST_VIDEO_GREEN_MASK_16_INT</h3>
<a class="indexterm" name="id2758227"></a><pre class="programlisting">#define GST_VIDEO_GREEN_MASK_16_INT 0x07e0
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758243"></a><h3>
<a name="GST-VIDEO-RED-MASK-15:CAPS"></a>GST_VIDEO_RED_MASK_15</h3>
<a class="indexterm" name="id2758256"></a><pre class="programlisting">#define GST_VIDEO_RED_MASK_15 "0x7c00"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758272"></a><h3>
<a name="GST-VIDEO-RED-MASK-15-INT:CAPS"></a>GST_VIDEO_RED_MASK_15_INT</h3>
<a class="indexterm" name="id2758285"></a><pre class="programlisting">#define GST_VIDEO_RED_MASK_15_INT 0x7c00
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758301"></a><h3>
<a name="GST-VIDEO-RED-MASK-16:CAPS"></a>GST_VIDEO_RED_MASK_16</h3>
<a class="indexterm" name="id2758314"></a><pre class="programlisting">#define GST_VIDEO_RED_MASK_16 "0xf800"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758330"></a><h3>
<a name="GST-VIDEO-RED-MASK-16-INT:CAPS"></a>GST_VIDEO_RED_MASK_16_INT</h3>
<a class="indexterm" name="id2758343"></a><pre class="programlisting">#define GST_VIDEO_RED_MASK_16_INT 0xf800
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758359"></a><h3>
<a name="GST-VIDEO-SIZE-RANGE:CAPS"></a>GST_VIDEO_SIZE_RANGE</h3>
<a class="indexterm" name="id2758372"></a><pre class="programlisting">#define GST_VIDEO_SIZE_RANGE "(int) [ 1, max ]"
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758387"></a><h3>
<a name="GstVideoFormat"></a>enum GstVideoFormat</h3>
<a class="indexterm" name="id2758400"></a><pre class="programlisting">typedef enum {
  GST_VIDEO_FORMAT_UNKNOWN,
  GST_VIDEO_FORMAT_I420,
  GST_VIDEO_FORMAT_YV12,
  GST_VIDEO_FORMAT_YUY2,
  GST_VIDEO_FORMAT_UYVY,
  GST_VIDEO_FORMAT_AYUV,
  GST_VIDEO_FORMAT_RGBx,
  GST_VIDEO_FORMAT_BGRx,
  GST_VIDEO_FORMAT_xRGB,
  GST_VIDEO_FORMAT_xBGR,
  GST_VIDEO_FORMAT_RGBA,
  GST_VIDEO_FORMAT_BGRA,
  GST_VIDEO_FORMAT_ARGB,
  GST_VIDEO_FORMAT_ABGR,
  GST_VIDEO_FORMAT_RGB,
  GST_VIDEO_FORMAT_BGR
} GstVideoFormat;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758422"></a><h3>
<a name="gst-video-calculate-display-ratio"></a>gst_video_calculate_display_ratio ()</h3>
<a class="indexterm" name="id2758438"></a><pre class="programlisting">gboolean            gst_video_calculate_display_ratio   (guint *dar_n,
                                                         guint *dar_d,
                                                         guint video_width,
                                                         guint video_height,
                                                         guint video_par_n,
                                                         guint video_par_d,
                                                         guint display_par_n,
                                                         guint display_par_d);</pre>
<p>
Given the Pixel Aspect Ratio and size of an input video frame, and the 
pixel aspect ratio of the intended display device, calculates the actual 
display ratio the video will be rendered with.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dar_n</code></em>&#160;:</span></td>
<td> Numerator of the calculated display_ratio
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>dar_d</code></em>&#160;:</span></td>
<td> Denominator of the calculated display_ratio
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>video_width</code></em>&#160;:</span></td>
<td> Width of the video frame in pixels
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>video_height</code></em>&#160;:</span></td>
<td> Height of the video frame in pixels
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>video_par_n</code></em>&#160;:</span></td>
<td> Numerator of the pixel aspect ratio of the input video.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>video_par_d</code></em>&#160;:</span></td>
<td> Denominator of the pixel aspect ratio of the input video.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>display_par_n</code></em>&#160;:</span></td>
<td> Numerator of the pixel aspect ratio of the display device
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>display_par_d</code></em>&#160;:</span></td>
<td> Denominator of the pixel aspect ratio of the display device
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> A boolean indicating success and a calculated Display Ratio in the 
dar_n and dar_d parameters. 
The return value is FALSE in the case of integer overflow or other error. 

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.7
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758669"></a><h3>
<a name="gst-video-frame-rate"></a>gst_video_frame_rate ()</h3>
<a class="indexterm" name="id2758681"></a><pre class="programlisting">const GValue*       gst_video_frame_rate                (GstPad *pad);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>pad</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758739"></a><h3>
<a name="gst-video-get-size"></a>gst_video_get_size ()</h3>
<a class="indexterm" name="id2758752"></a><pre class="programlisting">gboolean            gst_video_get_size                  (GstPad *pad,
                                                         gint *width,
                                                         gint *height);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>pad</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2758850"></a><h3>
<a name="gst-video-format-convert"></a>gst_video_format_convert ()</h3>
<a class="indexterm" name="id2758866"></a><pre class="programlisting">gboolean            gst_video_format_convert            (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height,
                                                         int fps_n,
                                                         int fps_d,
                                                         GstFormat src_format,
                                                         gint64 src_value,
                                                         GstFormat dest_format,
                                                         gint64 *dest_value);</pre>
<p>
Converts among various <span class="type">GstFormat</span> types.  This function handles
GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT.  For
raw video, GST_FORMAT_DEFAULT corresponds to video frames.  This
function can be to handle pad queries of the type GST_QUERY_CONVERT.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> the height of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>fps_n</code></em>&#160;:</span></td>
<td> frame rate numerator
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>fps_d</code></em>&#160;:</span></td>
<td> frame rate denominator
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>src_format</code></em>&#160;:</span></td>
<td> <span class="type">GstFormat</span> of the <em class="parameter"><code>src_value</code></em>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>src_value</code></em>&#160;:</span></td>
<td> value to convert
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>dest_format</code></em>&#160;:</span></td>
<td> <span class="type">GstFormat</span> of the <em class="parameter"><code>dest_value</code></em>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>dest_value</code></em>&#160;:</span></td>
<td> pointer to destination value
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if the conversion was successful.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2759157"></a><h3>
<a name="gst-video-format-new-caps"></a>gst_video_format_new_caps ()</h3>
<a class="indexterm" name="id2759173"></a><pre class="programlisting">GstCaps*            gst_video_format_new_caps           (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height,
                                                         int framerate_n,
                                                         int framerate_d,
                                                         int par_n,
                                                         int par_d);</pre>
<p>
Creates a new <span class="type">GstCaps</span> object based on the parameters provided.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> the <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> describing the raw video format
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>framerate_n</code></em>&#160;:</span></td>
<td> numerator of frame rate
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>framerate_d</code></em>&#160;:</span></td>
<td> denominator of frame rate
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>par_n</code></em>&#160;:</span></td>
<td> numerator of pixel aspect ratio
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>par_d</code></em>&#160;:</span></td>
<td> denominator of pixel aspect ratio
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new <span class="type">GstCaps</span> object, or NULL if there was an error
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2759398"></a><h3>
<a name="gst-video-format-get-component-height"></a>gst_video_format_get_component_height ()</h3>
<a class="indexterm" name="id2759414"></a><pre class="programlisting">int                 gst_video_format_get_component_height
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int height);</pre>
<p>
Calculates the height of the component.  See
<em class="parameter"><code>gst_video_format_get_row_stride</code></em> for a description
of the component index.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>component</code></em>&#160;:</span></td>
<td> the component index
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> the height of video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> height of component <em class="parameter"><code>component</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2759550"></a><h3>
<a name="gst-video-format-get-component-offset"></a>gst_video_format_get_component_offset ()</h3>
<a class="indexterm" name="id2759567"></a><pre class="programlisting">int                 gst_video_format_get_component_offset
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width,
                                                         int height);</pre>
<p>
Calculates the offset (in bytes) of the first pixel of the component
with index <em class="parameter"><code>component</code></em>.  For packed formats, this will typically be a
small integer (0, 1, 2, 3).  For planar formats, this will be a
(relatively) large offset to the beginning of the second or third
component planes.  See <em class="parameter"><code>gst_video_format_get_row_stride</code></em> for a description
of the component index.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>component</code></em>&#160;:</span></td>
<td> the component index
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> the height of video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> offset of component <em class="parameter"><code>component</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2759734"></a><h3>
<a name="gst-video-format-get-component-width"></a>gst_video_format_get_component_width ()</h3>
<a class="indexterm" name="id2759751"></a><pre class="programlisting">int                 gst_video_format_get_component_width
                                                        (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width);</pre>
<p>
Calculates the width of the component.  See
<em class="parameter"><code>gst_video_format_get_row_stride</code></em> for a description
of the component index.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>component</code></em>&#160;:</span></td>
<td> the component index
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> width of component <em class="parameter"><code>component</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2759887"></a><h3>
<a name="gst-video-format-get-pixel-stride"></a>gst_video_format_get_pixel_stride ()</h3>
<a class="indexterm" name="id2759904"></a><pre class="programlisting">int                 gst_video_format_get_pixel_stride   (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component);</pre>
<p>
Calculates the pixel stride (number of bytes from one pixel to the
pixel to its immediate left) for the video component with an index
of <em class="parameter"><code>component</code></em>.  See <em class="parameter"><code>gst_video_format_get_row_stride</code></em> for a description
of the component index.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>component</code></em>&#160;:</span></td>
<td> the component index
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> pixel stride of component <em class="parameter"><code>component</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760025"></a><h3>
<a name="gst-video-format-get-row-stride"></a>gst_video_format_get_row_stride ()</h3>
<a class="indexterm" name="id2760041"></a><pre class="programlisting">int                 gst_video_format_get_row_stride     (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int component,
                                                         int width);</pre>
<p>
Calculates the row stride (number of bytes from one row of pixels to
the next) for the video component with an index of <em class="parameter"><code>component</code></em>.  For
YUV video, Y, U, and V have component indices of 0, 1, and 2,
respectively.  For RGB video, R, G, and B have component indicies of
0, 1, and 2, respectively.  Alpha channels, if present, have a component
index of 3.  The <em class="parameter"><code>width</code></em> parameter always represents the width of the
video, not the component.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>component</code></em>&#160;:</span></td>
<td> the component index
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> row stride of component <em class="parameter"><code>component</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760187"></a><h3>
<a name="gst-video-format-get-size"></a>gst_video_format_get_size ()</h3>
<a class="indexterm" name="id2760204"></a><pre class="programlisting">int                 gst_video_format_get_size           (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format,
                                                         int width,
                                                         int height);</pre>
<p>
Calculates the total number of bytes in the raw video format.  This
number should be used when allocating a buffer for raw video.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of video
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> the height of video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> size (in bytes) of raw video format
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760327"></a><h3>
<a name="gst-video-format-has-alpha"></a>gst_video_format_has_alpha ()</h3>
<a class="indexterm" name="id2760343"></a><pre class="programlisting">gboolean            gst_video_format_has_alpha          (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);</pre>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>format</code></em> has an alpha channel
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760424"></a><h3>
<a name="gst-video-format-is-rgb"></a>gst_video_format_is_rgb ()</h3>
<a class="indexterm" name="id2760439"></a><pre class="programlisting">gboolean            gst_video_format_is_rgb             (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);</pre>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>format</code></em> represents RGB video
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760521"></a><h3>
<a name="gst-video-format-is-yuv"></a>gst_video_format_is_yuv ()</h3>
<a class="indexterm" name="id2760537"></a><pre class="programlisting">gboolean            gst_video_format_is_yuv             (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);</pre>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>format</code></em> represents YUV video
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760619"></a><h3>
<a name="gst-video-format-to-fourcc"></a>gst_video_format_to_fourcc ()</h3>
<a class="indexterm" name="id2760635"></a><pre class="programlisting">guint32             gst_video_format_to_fourcc          (<a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> format);</pre>
<p>
Converts a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> value into the corresponding FOURCC.  Only
a few YUV formats have corresponding FOURCC values.  If <em class="parameter"><code>format</code></em> has
no corresponding FOURCC value, 0 is returned.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> a <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> video format
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the FOURCC corresponding to <em class="parameter"><code>format</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760737"></a><h3>
<a name="gst-video-format-from-fourcc"></a>gst_video_format_from_fourcc ()</h3>
<a class="indexterm" name="id2760753"></a><pre class="programlisting"><a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a>      gst_video_format_from_fourcc        (guint32 fourcc);</pre>
<p>
Converts a FOURCC value into the corresponding <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>.
If the FOURCC cannot be represented by <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>,
<span class="type">GST_VIDEO_FORMAT_UNKNOWN</span> is returned.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>fourcc</code></em>&#160;:</span></td>
<td> a FOURCC value representing raw YUV video
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> describing the FOURCC value
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2760862"></a><h3>
<a name="gst-video-format-parse-caps"></a>gst_video_format_parse_caps ()</h3>
<a class="indexterm" name="id2760877"></a><pre class="programlisting">gboolean            gst_video_format_parse_caps         (GstCaps *caps,
                                                         <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat">GstVideoFormat</a> *format,
                                                         int *width,
                                                         int *height);</pre>
<p>
Determines the <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> of <em class="parameter"><code>caps</code></em> and places it in the location
pointed to by <em class="parameter"><code>format</code></em>.  Extracts the size of the video and places it
in the location pointed to by <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>.  If <em class="parameter"><code>caps</code></em> does not
reprsent one of the raw video formats listed in <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>, the
function will fail and return FALSE.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>caps</code></em>&#160;:</span></td>
<td> the <span class="type">GstCaps</span> to parse
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></td>
<td> the <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a> of the video represented by <em class="parameter"><code>caps</code></em> (output)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> the width of the video represented by <em class="parameter"><code>caps</code></em> (output)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> the height of the video represented by <em class="parameter"><code>caps</code></em> (output)
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>caps</code></em> was parsed correctly.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2761104"></a><h3>
<a name="gst-video-parse-caps-framerate"></a>gst_video_parse_caps_framerate ()</h3>
<a class="indexterm" name="id2761120"></a><pre class="programlisting">gboolean            gst_video_parse_caps_framerate      (GstCaps *caps,
                                                         int *fps_n,
                                                         int *fps_d);</pre>
<p>
Extracts the frame rate from <em class="parameter"><code>caps</code></em> and places the values in the locations
pointed to by <em class="parameter"><code>fps_n</code></em> and <em class="parameter"><code>fps_d</code></em>.  Returns TRUE if the values could be
parsed correctly, FALSE if not.
</p>
<p>
This function can be used with <span class="type">GstCaps</span> that have any media type; it
is not limited to formats handled by <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>caps</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>fps_n</code></em>&#160;:</span></td>
<td> pointer to numerator of frame rate (output)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>fps_d</code></em>&#160;:</span></td>
<td> pointer to denominator of frame rate (output)
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>caps</code></em> was parsed correctly.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2761281"></a><h3>
<a name="gst-video-parse-caps-pixel-aspect-ratio"></a>gst_video_parse_caps_pixel_aspect_ratio ()</h3>
<a class="indexterm" name="id2761297"></a><pre class="programlisting">gboolean            gst_video_parse_caps_pixel_aspect_ratio
                                                        (GstCaps *caps,
                                                         int *par_n,
                                                         int *par_d);</pre>
<p>
Extracts the pixel aspect ratio from <em class="parameter"><code>caps</code></em> and places the values in
the locations pointed to by <em class="parameter"><code>par_n</code></em> and <em class="parameter"><code>par_d</code></em>.  Returns TRUE if the
values could be parsed correctly, FALSE if not.
</p>
<p>
This function can be used with <span class="type">GstCaps</span> that have any media type; it
is not limited to formats handled by <a href="gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="type">GstVideoFormat</span></a>.
</p>
<p>
Returns:</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>caps</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>par_n</code></em>&#160;:</span></td>
<td> pointer to numerator of pixel aspect ratio (output)
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>par_d</code></em>&#160;:</span></td>
<td> pointer to denominator of pixel aspect ratio (output)
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if <em class="parameter"><code>caps</code></em> was parsed correctly.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  0.10.16

</p>
</div>
</div>
</div>
</body>
</html>