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>GstVideoFilter: 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-GstVideoOverlayRectangle.html" title="GstVideoOverlayRectangle"> 10<link rel="next" href="gst-plugins-base-libs-GstVideoDither.html" title="GstVideoDither"> 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="#GstVideoFilter.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#GstVideoFilter.object-hierarchy" class="shortcut">Object Hierarchy</a></span> 20</td> 21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 22<td><a accesskey="u" href="gstreamer-video.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 23<td><a accesskey="p" href="gst-plugins-base-libs-GstVideoOverlayRectangle.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 24<td><a accesskey="n" href="gst-plugins-base-libs-GstVideoDither.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 25</tr></table> 26<div class="refentry"> 27<a name="GstVideoFilter"></a><div class="titlepage"></div> 28<div class="refnamediv"><table width="100%"><tr> 29<td valign="top"> 30<h2><span class="refentrytitle"><a name="GstVideoFilter.top_of_page"></a>GstVideoFilter</span></h2> 31<p>GstVideoFilter — Base class for video filters</p> 32</td> 33<td class="gallery_image" valign="top" align="right"></td> 34</tr></table></div> 35<div class="refsect1"> 36<a name="GstVideoFilter.other"></a><h2>Types and Values</h2> 37<div class="informaltable"><table class="informaltable" width="100%" border="0"> 38<colgroup> 39<col width="150px" class="name"> 40<col class="description"> 41</colgroup> 42<tbody> 43<tr> 44<td class="datatype_keyword">struct</td> 45<td class="function_name"><a class="link" href="GstVideoFilter.html#GstVideoFilter-struct" title="struct GstVideoFilter">GstVideoFilter</a></td> 46</tr> 47<tr> 48<td class="datatype_keyword">struct</td> 49<td class="function_name"><a class="link" href="GstVideoFilter.html#GstVideoFilterClass" title="struct GstVideoFilterClass">GstVideoFilterClass</a></td> 50</tr> 51</tbody> 52</table></div> 53</div> 54<div class="refsect1"> 55<a name="GstVideoFilter.object-hierarchy"></a><h2>Object Hierarchy</h2> 56<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 57 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 58 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 59 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 60 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseTransform.html#GstBaseTransform-struct">GstBaseTransform</a> 61 <span class="lineart">╰──</span> GstVideoFilter 62</pre> 63</div> 64<div class="refsect1"> 65<a name="GstVideoFilter.includes"></a><h2>Includes</h2> 66<pre class="synopsis">#include <gst/video/video.h> 67</pre> 68</div> 69<div class="refsect1"> 70<a name="GstVideoFilter.description"></a><h2>Description</h2> 71<p>Provides useful functions and a base class for video filters.</p> 72<p>The videofilter will by default enable QoS on the parent GstBaseTransform 73to implement frame dropping.</p> 74</div> 75<div class="refsect1"> 76<a name="GstVideoFilter.functions_details"></a><h2>Functions</h2> 77<p></p> 78</div> 79<div class="refsect1"> 80<a name="GstVideoFilter.other_details"></a><h2>Types and Values</h2> 81<div class="refsect2"> 82<a name="GstVideoFilter-struct"></a><h3>struct GstVideoFilter</h3> 83<pre class="programlisting">struct GstVideoFilter;</pre> 84</div> 85<hr> 86<div class="refsect2"> 87<a name="GstVideoFilterClass"></a><h3>struct GstVideoFilterClass</h3> 88<pre class="programlisting">struct GstVideoFilterClass { 89 GstBaseTransformClass parent_class; 90 91 gboolean (*set_info) (GstVideoFilter *filter, 92 GstCaps *incaps, GstVideoInfo *in_info, 93 GstCaps *outcaps, GstVideoInfo *out_info); 94 95 /* transform */ 96 GstFlowReturn (*transform_frame) (GstVideoFilter *filter, 97 GstVideoFrame *inframe, GstVideoFrame *outframe); 98 GstFlowReturn (*transform_frame_ip) (GstVideoFilter *trans, GstVideoFrame *frame); 99}; 100</pre> 101<p>The video filter class structure.</p> 102<div class="refsect3"> 103<a name="GstVideoFilterClass.members"></a><h4>Members</h4> 104<div class="informaltable"><table class="informaltable" width="100%" border="0"> 105<colgroup> 106<col width="300px" class="struct_members_name"> 107<col class="struct_members_description"> 108<col width="200px" class="struct_members_annotations"> 109</colgroup> 110<tbody> 111<tr> 112<td class="struct_member_name"><p><em class="structfield"><code><a name="GstVideoFilterClass.set-info"></a>set_info</code></em> ()</p></td> 113<td class="struct_member_description"><p>function to be called with the negotiated caps and video infos</p></td> 114<td class="struct_member_annotations"> </td> 115</tr> 116<tr> 117<td class="struct_member_name"><p><em class="structfield"><code><a name="GstVideoFilterClass.transform-frame"></a>transform_frame</code></em> ()</p></td> 118<td class="struct_member_description"><p>transform a video frame</p></td> 119<td class="struct_member_annotations"> </td> 120</tr> 121<tr> 122<td class="struct_member_name"><p><em class="structfield"><code><a name="GstVideoFilterClass.transform-frame-ip"></a>transform_frame_ip</code></em> ()</p></td> 123<td class="struct_member_description"><p>transform a video frame in place</p></td> 124<td class="struct_member_annotations"> </td> 125</tr> 126</tbody> 127</table></div> 128</div> 129</div> 130</div> 131</div> 132<div class="footer"> 133<hr>Generated by GTK-Doc V1.28</div> 134</body> 135</html>