[MPlayer-dev-eng] New remove logo filter
D Richard Felker III
dalias at aerifal.cx
Wed Feb 16 01:30:35 CET 2005
On Sun, Feb 06, 2005 at 11:09:02PM -0500, Yartrebo wrote:
> Hello Everyone.
> I'm new to this mailing list, but I'm quite interested in contributing.
> I'm writing a remove_logo filter for MPlayer to replace/augment the
> existing delogo filter. It has the following features/characteristics.
> - Uses a bit mask to tell what is in the logo and is not, instead of a
> rectangle like delogo. This allows it to be much more selective in what
> it filters out.
> - The mask is augmented to tell the filter how far from the edge of the
> logo a given pixel is.
> - This is used to allow for a dynamic sized mask for the Gaussian blur,
> so that pixels near the edge of the logo get a much sharper mask, and
> the center ones get a much blurrier mask.
> The bit mask consists of a 32 bpp tga file where the red channel is set
> to zero for anything out of the logo, and non-zero for any pixel in the
> Descriptively, this filter looks a little like glass lens. The pixels
> near but right outside of the logo get stretched and blurred to fill the
> logo area. It does look quite 'glassy'.
> I've attached the source code, along with a program to generate masks
> given a frame from the video with the logo on a black background. The
> mask generation program requires Allegro to compile, but any graphics
> program that can threshold an image and write a 32bpp tga file can be
> I've got both the source and before and after pictures (JPEG format) on
> the FTP server over here:
> The source code is also attached.
> I've be very appreciative of any feedback.
> Robert Edele
would someone take a look at this? as long as it doesn't have
compiletime errors i'm ok with committing it. i spoke with the author
on irc while he was writing it and he seemed a plenty competent, so i
expect it works.
More information about the MPlayer-dev-eng