1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>videocrop</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7
<link rel="start" href="index.html" title="GStreamer Bad Plugins 0.10 Plugins Reference Manual">
8
<link rel="up" href="ch01.html" title="gst-plugins-bad Elements">
9
<link rel="prev" href="gst-plugins-bad-plugins-trm.html" title="trm">
10
<link rel="next" href="gst-plugins-bad-plugins-wavpackdec.html" title="wavpackdec">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="ch01.html" title="gst-plugins-bad Elements">
14
<link rel="chapter" href="ch02.html" title="gst-plugins-bad Plugins">
16
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
19
<td><a accesskey="p" href="gst-plugins-bad-plugins-trm.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22
<th width="100%" align="center">GStreamer Bad Plugins 0.10 Plugins Reference Manual</th>
23
<td><a accesskey="n" href="gst-plugins-bad-plugins-wavpackdec.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
25
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id53676" class="shortcut">Top</a>
27
<a href="#id296222" class="shortcut">Description</a>
29
<a href="#id310885" class="shortcut">Object Hierarchy</a>
31
<a href="#id310921" class="shortcut">Properties</a></nobr></td></tr>
33
<div class="refentry" lang="en">
34
<a name="gst-plugins-bad-plugins-videocrop"></a><div class="titlepage"></div>
35
<div class="refnamediv"><table width="100%"><tr>
38
<a name="id53676"></a><span class="refentrytitle">videocrop</span>
40
<p>videocrop — Crops video into a user-defined region</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv">
46
<a name="GstVideoCrop"></a><pre class="synopsis">
50
<a href="gst-plugins-bad-plugins-videocrop.html#GstVideoCrop-struct">GstVideoCrop</a>;
54
<div class="refsect1" lang="en">
55
<a name="id310885"></a><h2>Object Hierarchy</h2>
56
<pre class="synopsis">
65
<div class="refsect1" lang="en">
66
<a name="id310921"></a><h2>Properties</h2>
67
<pre class="synopsis">
69
"<a href="gst-plugins-bad-plugins-videocrop.html#GstVideoCrop--bottom">bottom</a>" gint : Read / Write
70
"<a href="gst-plugins-bad-plugins-videocrop.html#GstVideoCrop--left">left</a>" gint : Read / Write
71
"<a href="gst-plugins-bad-plugins-videocrop.html#GstVideoCrop--right">right</a>" gint : Read / Write
72
"<a href="gst-plugins-bad-plugins-videocrop.html#GstVideoCrop--top">top</a>" gint : Read / Write
75
<div class="refsect1" lang="en">
76
<a name="id296222"></a><h2>Description</h2>
79
<div class="refsect2" lang="en">
80
<a name="id296235"></a><p>
81
This element crops video frames, meaning it can remove parts of the
82
picture on the left, right, top or bottom of the picture and output
83
a smaller picture than the input picture, with the unwanted parts at the
87
The videocrop element is similar to the videobox element, but its main
88
goal is to support a multitude of formats as efficiently as possible.
89
Unlike videbox, it cannot add borders to the picture and unlike videbox
90
it will always output images in exactly the same format as the input image.
93
If there is nothing to crop, the element will operate in pass-through mode.
96
Note that no special efforts are made to handle chroma-subsampled formats
97
in the case of odd-valued cropping and compensate for sub-unit chroma plane
98
shifts for such formats in the case where the "left" or "top" property is
99
set to an odd number. This doesn't matter for most use cases, but it might
102
<h3>Example launch line</h3>
105
<pre class="programlisting">
106
gst-launch -v videotestsrc ! videocrop top=42 left=1 right=4 bottom=0 ! ximagesink
111
<div class="refsect2" lang="en">
112
<a name="id300468"></a><h3>Element Information</h3>
113
<div class="variablelist">
114
<span class="term">plugin</span>
115
<a href="gst-plugins-bad-plugins-plugin-videocrop.html#plugin-videocrop">videocrop</a>
117
<a href="gst-plugins-bad-plugins-plugin-videocrop.html#plugin-videocrop">videocrop</a>
118
<a href="gst-plugins-bad-plugins-plugin-videocrop.html#plugin-videocrop">videocrop</a><span class="term">author</span>Tim-Philipp Müller <tim centricular net>Tim-Philipp Müller <tim centricular net><span class="term">class</span>Filter/Effect/VideoFilter/Effect/Video<table border="0">
119
<col align="left" valign="top">
123
<span class="term">plugin</span></td>
125
<a href="gst-plugins-bad-plugins-plugin-videocrop.html#plugin-videocrop">videocrop</a>
130
<span class="term">author</span></td>
131
<td>Tim-Philipp Müller <tim centricular net></td>
135
<span class="term">class</span></td>
136
<td>Filter/Effect/Video</td>
146
<div class="refsect1" lang="en">
147
<a name="id300536"></a><h2>Details</h2>
148
<div class="refsect2" lang="en">
149
<a name="id300547"></a><h3>
150
<a name="GstVideoCrop-struct"></a>GstVideoCrop</h3>
151
<a class="indexterm" name="id300559"></a><pre class="programlisting">typedef struct _GstVideoCrop GstVideoCrop;</pre>
157
<div class="refsect1" lang="en">
158
<a name="id300575"></a><h2>Property Details</h2>
159
<div class="refsect2" lang="en">
160
<a name="id300586"></a><h3>
161
<a name="GstVideoCrop--bottom"></a>The "<code class="literal">bottom</code>" property</h3>
162
<a class="indexterm" name="id312540"></a><pre class="programlisting"> "bottom" gint : Read / Write</pre>
163
<p>Pixels to crop at bottom.</p>
164
<p>Allowed values: >= 0</p>
165
<p>Default value: 0</p>
168
<div class="refsect2" lang="en">
169
<a name="id312568"></a><h3>
170
<a name="GstVideoCrop--left"></a>The "<code class="literal">left</code>" property</h3>
171
<a class="indexterm" name="id312583"></a><pre class="programlisting"> "left" gint : Read / Write</pre>
172
<p>Pixels to crop at left.</p>
173
<p>Allowed values: >= 0</p>
174
<p>Default value: 0</p>
177
<div class="refsect2" lang="en">
178
<a name="id312611"></a><h3>
179
<a name="GstVideoCrop--right"></a>The "<code class="literal">right</code>" property</h3>
180
<a class="indexterm" name="id312625"></a><pre class="programlisting"> "right" gint : Read / Write</pre>
181
<p>Pixels to crop at right.</p>
182
<p>Allowed values: >= 0</p>
183
<p>Default value: 0</p>
186
<div class="refsect2" lang="en">
187
<a name="id312654"></a><h3>
188
<a name="GstVideoCrop--top"></a>The "<code class="literal">top</code>" property</h3>
189
<a class="indexterm" name="id312669"></a><pre class="programlisting"> "top" gint : Read / Write</pre>
190
<p>Pixels to crop at top.</p>
191
<p>Allowed values: >= 0</p>
192
<p>Default value: 0</p>
195
<div class="refsect1" lang="en">
196
<a name="id312699"></a><h2>See Also</h2>