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
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 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
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. rich
On Tue, Feb 15, 2005 at 07:30:35PM -0500, D Richard Felker III wrote:
On Sun, Feb 06, 2005 at 11:09:02PM -0500, Yartrebo wrote:
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.
[...]
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.
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.
Rich, so what about applying this patch? You're the filter maintainer ;-p Diego
participants (3)
-
D Richard Felker III -
Diego Biurrun -
Yartrebo