From 1f00b2bb4a9a3f54a4915908eb5bef511798ff14 Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 26 Jul 2002 03:24:24 +0000 Subject: [PATCH] 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 --- DOCS/documentation.html | 72 +++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/DOCS/documentation.html b/DOCS/documentation.html index 48b4e4f9be..1567518da4 100644 --- a/DOCS/documentation.html +++ b/DOCS/documentation.html @@ -1064,19 +1064,19 @@ screen, although input works with xawtv or similar, then try to use the

2.6.1. Overview

-

Both MPlayer and MEncoder supports using a universal - video filter layer, which comprises of numerous plugins - listed and +

Both MPlayer and MEncoder support using a universal + video filter layer, which comprises numerous plugins that are listed and explained below. These plugins can perform various actions on the image, - such as rescale, crop black borders (useful not only for encoding but for - playing too, since black borders increase bus usage, and cropping these - can boost playing speed on slow boards), expand image (for SVCDs).

+ such as rescaling, cropping black borders (useful not only for encoding but + for playback, too, since black borders increase bus usage and cropping these + can boost playback speed on slow boards) and expanding the image (for SVCDs).

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 - playing RGB data on xv and xmga outputs, amongst - others. (see the Scale filter)

+ between the various RGB and YUV formats when necessary. This enables for + example playing RGB data on xv and xmga video output + drivers among other things (see the Scale filter).

-

The layer also does Direct Rendering between the plugins, to +

The filter layer also does Direct Rendering between the plugins, to maximize the speed.

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

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 - values, like x and y are both set to the center of - the screen, and width and height> will be set to - the movie's width and height.

+ values, e.g. x and y are both set to the center of + the screen and width and height> will be set to + the width and height of the movie.

Filters are queued starting from libvo, so filter1 will be the - last called filter (after that libvo comes, or when using MEncoder, + last filter called (after that comes libvo, or when using MEncoder, encoding).

-

You can get the list of available video filters with the
- "mplayer -vop help" command line.

+

You can get the list of available video filters with the command

+ +

  mplayer -vop help

2.6.3. Crop

Description:

-

Crops the given part of the image, and discards the rest. Useful for - removing black bands of widescreen movies.

+

Crops the given part of the image and discards the rest. Useful for removing + black bands from widescreen movies.

Usage:

@@ -1117,12 +1118,10 @@ screen, although input works with xawtv or similar, then try to use the

Description:

-

Expands (NOT scales) movie resolution to the given value, and places the - unscaled original to x y. For movies not containing - black bands, this can be used to add them. This is good when creating SVCDs, - or using with the - SDL video output which can place - subtitles in these bands.

+

Expands (not scales) movie resolution to the given value and places + the unscaled original at coordinates x y. For movies + not containing black bands, this can be used to add them. This is good when + creating SVCDs or for placing subtitles or the OSD in these bands.

Usage:

@@ -1147,8 +1146,8 @@ screen, although input works with xawtv or similar, then try to use the

Description:

-

Simply flips image. Useful for some old codecs which can output only - flipped image (these are autodetected).

+

Simply flips the image upside down. Useful for some old codecs which can only + output a flipped image (these are autodetected).

Usage:

@@ -1159,9 +1158,9 @@ screen, although input works with xawtv or similar, then try to use the

Description:

-

This filter is NOT image format converter. It just forces the next filter - (or libvo) which image format to use. Useful for cards with slow YV12, like - tdfx and Savage4. For real conversion, use the Scale filter.

+

This filter is not an image format converter. It just forces the next + filter (or libvo) to use the given format. Useful for cards with slow YV12, + like tdfx and Savage4. For real conversion, use the scale filter.

Usage:

@@ -1188,7 +1187,7 @@ screen, although input works with xawtv or similar, then try to use the

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' - option)

+ option).

Usage:

@@ -1199,8 +1198,8 @@ screen, although input works with xawtv or similar, then try to use the

Description:

-

Rotates (flips) image. Parameter 'x' (values: 0-3) controls horizontal and - vertical mirroring.

+

Rotates (flips) the image. The parameter x (values: 0-3) + controls horizontal and vertical mirroring.

Usage:

@@ -1215,7 +1214,7 @@ screen, although input works with xawtv or similar, then try to use the quality of the scaler with the -sws option, see the man page. Nice quality implies speed loss.

-

NOTE: calling this filter with no options means colorspace +

Note: Calling this filter with no options means colorspace conversion! This is useful for codecs which can't output in the needed format for the specified video output device. These are hopefully 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

Description:

-

Calculates needed cropping parameters. It will print the recommended -vop - option to stdout.

+

Calculates necessary cropping parameters. It will print the recommended + -vop crop parameters to stdout. You can adjust the threshold of + what is detected as border and what as picture with the limit + parameter. limit is a number from 0 to 255 that defaults to 24. + At 0 it detects everything as picture, at 255 everything as border.

Usage:

-

  -vop cropdetect

+

  -vop cropdetect[=limit]

3. Usage