[MPlayer-dev-eng] [PATCH] Another DOCS patch

Arpi arpi at thot.banki.hu
Thu Aug 22 00:47:14 CEST 2002


Hi,

> > 	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).
> > 
> > To me, both means the same: R<->B swapping.  If I knew it better, I'd
> > replace those <-> with something else (or I'd write an other short
> > description).
> 
> Yes, that section might use some clarification.  Anyone?

ok, it's a multifunction filter.
it has 2 functions.
function 1: (without parameters):
  it operates as a colorspace converter, just like yuy2 or scale.
  it can convert between rgb and bgr formats.
  useful between jpeg/dv (rgb) and other bgr vo/filters.
  in this mode, it does NOT change the visible colors (just the pixel
  format in memory) and it is required if you want to connect rgb and bgr
  filters/codecs/vo.
function 2: (option 'swap')
  it operates as an video effect filter, input and output colorspace is equal.
  (ie. it is NOT a colorspace converter in this mode)
  anyway it actually swaps the r and b channels, causing color inversion of
  the image. so it will result blue faces and red water...

note:
colorspace == color information encoding in the memory, including bit
packaging format and order...  colorspace conversion has no visible
effect (unless it converts to a less accurate format, like bgr32->bgr15,
but it's rather a quality loss than an video effect).


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list