Reviewed Filter section, added limit parameter to cropdetect, not only SDL

supports expand.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6812 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2002-07-26 03:24:24 +00:00
parent c46636cafb
commit 1f00b2bb4a
1 changed files with 37 additions and 35 deletions

View File

@ -1064,19 +1064,19 @@ screen, although input works with xawtv or similar, then try to use the
<P><A NAME=2.6.1><B>2.6.1. Overview</B></A></P> <P><A NAME=2.6.1><B>2.6.1. Overview</B></A></P>
<P>Both <B>MPlayer</B> and <B>MEncoder</B> supports using a universal <P>Both <B>MPlayer</B> and <B>MEncoder</B> support using a universal
video filter layer, which comprises of numerous plugins - listed and video filter layer, which comprises numerous plugins that are listed and
explained below. These plugins can perform various actions on the image, explained below. These plugins can perform various actions on the image,
such as rescale, crop black borders (useful not only for encoding but for such as rescaling, cropping black borders (useful not only for encoding but
playing too, since black borders increase bus usage, and cropping these for playback, too, since black borders increase bus usage and cropping these
can boost playing speed on slow boards), expand image (for SVCDs).</P> can boost playback speed on slow boards) and expanding the image (for SVCDs).</P>
<P>With this filter layer it's possible to perform fast image format conversion <P>With this filter layer it's possible to perform fast image format conversion
between the various RGB and YUV when necessary. This enables for example between the various RGB and YUV formats when necessary. This enables for
playing RGB data on <CODE>xv</CODE> and <CODE>xmga</CODE> outputs, amongst example playing RGB data on <CODE>xv</CODE> and <CODE>xmga</CODE> video output
others. (see the <A HREF="#2.6.11">Scale</A> filter)</P> drivers among other things (see the <A HREF="#2.6.11">Scale</A> filter).</P>
<P>The layer also does <B>Direct Rendering</B> between the plugins, to <P>The filter layer also does <B>Direct Rendering</B> between the plugins, to
maximize the speed. maximize the speed.
<P>Note that the postprocessing code is now also a part of the layer. It <P>Note that the postprocessing code is now also a part of the layer. It
@ -1089,24 +1089,25 @@ screen, although input works with xawtv or similar, then try to use the
<P>This sets up a filter pipeline (you can use any number of filters). Their <P>This sets up a filter pipeline (you can use any number of filters). Their
parameters are optional and if omitted, some of them are set to default parameters are optional and if omitted, some of them are set to default
values, like <CODE>x</CODE> and <CODE>y</CODE> are both set to the center of values, e.g. <CODE>x</CODE> and <CODE>y</CODE> are both set to the center of
the screen, and <CODE>width</CODE> and <CODE>height</CODE>> will be set to the screen and <CODE>width</CODE> and <CODE>height</CODE>> will be set to
the movie's width and height.</P> the width and height of the movie.</P>
<P>Filters are queued starting from libvo, so <CODE>filter1</CODE> will be the <P>Filters are queued starting from libvo, so <CODE>filter1</CODE> will be the
last called filter (after that libvo comes, or when using <B>MEncoder</B>, last filter called (after that comes libvo, or when using <B>MEncoder</B>,
encoding).</P> encoding).</P>
<P>You can get the list of available video filters with the<BR> <P>You can get the list of available video filters with the command</P>
"<CODE>mplayer -vop help</CODE>" command line.</P>
<P>&nbsp;&nbsp;<CODE>mplayer -vop help</CODE></P>
<P><A NAME=2.6.3><B>2.6.3. Crop</B></A></P> <P><A NAME=2.6.3><B>2.6.3. Crop</B></A></P>
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>Crops the given part of the image, and discards the rest. Useful for <P>Crops the given part of the image and discards the rest. Useful for removing
removing black bands of widescreen movies.</P> black bands from widescreen movies.</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1117,12 +1118,10 @@ screen, although input works with xawtv or similar, then try to use the
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>Expands (NOT scales) movie resolution to the given value, and places the <P>Expands (<B>not</B> scales) movie resolution to the given value and places
unscaled original to <CODE>x</CODE> <CODE>y</CODE>. For movies not containing the unscaled original at coordinates <CODE>x</CODE> <CODE>y</CODE>. For movies
black bands, this can be used to add them. This is good when creating SVCDs, not containing black bands, this can be used to add them. This is good when
or using with the creating SVCDs or for placing subtitles or the OSD in these bands.</P>
<A HREF="video.html#2.3.1.4">SDL video output</A> which can place
subtitles in these bands.</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1147,8 +1146,8 @@ screen, although input works with xawtv or similar, then try to use the
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>Simply flips image. Useful for some old codecs which can output only <P>Simply flips the image upside down. Useful for some old codecs which can only
flipped image (these are autodetected).</P> output a flipped image (these are autodetected).</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1159,9 +1158,9 @@ screen, although input works with xawtv or similar, then try to use the
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>This filter is NOT image format converter. It just forces the next filter <P>This filter is <B>not</B> an image format converter. It just forces the next
(or libvo) which image format to use. Useful for cards with slow YV12, like filter (or libvo) to use the given format. Useful for cards with slow YV12,
tdfx and Savage4. For real conversion, use the <CODE>Scale</CODE> filter.</P> like tdfx and Savage4. For real conversion, use the scale filter.</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1188,7 +1187,7 @@ screen, although input works with xawtv or similar, then try to use the
<P>Performs RGB 24/32 <-> BGR 24/32 colorspace conversion (default behavior) <P>Performs RGB 24/32 <-> BGR 24/32 colorspace conversion (default behavior)
or RGB 24/32 <-> RGB 24/32 conversion with R<->B swapping (with the 'swap' or RGB 24/32 <-> RGB 24/32 conversion with R<->B swapping (with the 'swap'
option)</P> option).</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1199,8 +1198,8 @@ screen, although input works with xawtv or similar, then try to use the
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>Rotates (flips) image. Parameter 'x' (values: 0-3) controls horizontal and <P>Rotates (flips) the image. The parameter <CODE>x</CODE> (values: 0-3)
vertical mirroring.</P> controls horizontal and vertical mirroring.</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
@ -1215,7 +1214,7 @@ screen, although input works with xawtv or similar, then try to use the
quality of the scaler with the <CODE>-sws</CODE> option, see the man page. quality of the scaler with the <CODE>-sws</CODE> option, see the man page.
Nice quality implies speed loss.</P> Nice quality implies speed loss.</P>
<P><B>NOTE</B>: calling this filter with no options means <B>colorspace <P><B>Note:</B> Calling this filter with no options means <B>colorspace
conversion</B>! This is useful for codecs which can't output in the needed conversion</B>! This is useful for codecs which can't output in the needed
format for the specified video output device. These are hopefully format for the specified video output device. These are hopefully
autodetected and scale filter is called to convert. In other cases, you autodetected and scale filter is called to convert. In other cases, you
@ -1263,12 +1262,15 @@ screen, although input works with xawtv or similar, then try to use the
<P><B><U>Description</U></B>:</P> <P><B><U>Description</U></B>:</P>
<P>Calculates needed cropping parameters. It will print the recommended -vop <P>Calculates necessary cropping parameters. It will print the recommended
option to stdout.</P> <CODE>-vop crop</CODE> parameters to stdout. You can adjust the threshold of
what is detected as border and what as picture with the <CODE>limit</CODE>
parameter. <CODE>limit</CODE> is a number from 0 to 255 that defaults to 24.
At 0 it detects everything as picture, at 255 everything as border.</P>
<P><B><U>Usage</U></B>:</P> <P><B><U>Usage</U></B>:</P>
<P><CODE>&nbsp;&nbsp;-vop cropdetect</CODE></P> <P><CODE>&nbsp;&nbsp;-vop cropdetect[=limit]</CODE></P>
<P><B><A NAME=3>3. Usage</A></B></P> <P><B><A NAME=3>3. Usage</A></B></P>