[MPlayer-dev-eng] New remove logo filter
Yartrebo
yartrebo at earthlink.net
Mon Feb 7 05:09:02 CET 2005
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
logo.
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
used.
I've got both the source and before and after pictures (JPEG format) on
the FTP server over here:
ftp://mplayerhq.hu/MPlayer/incoming/yartrebo/pictures+source.zip
The source code is also attached.
I've be very appreciative of any feedback.
Sincerely,
Robert Edele
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trainer_program_(requires_allegro_library).c
Type: text/x-csrc
Size: 10750 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050206/97b9984b/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_remove_logo.c
Type: text/x-csrc
Size: 20776 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050206/97b9984b/attachment-0001.c>
More information about the MPlayer-dev-eng
mailing list