[MPlayer-dev-eng] [PATCH] Three new filters and performance doubts
Daniel Moreno
comac2k at terra.es
Wed Jan 29 17:23:52 CET 2003
[Resent from the proper mail addres, so that the mailing list doesn't
complain about not beeing a member]
Hi!
Here I provide 2 patches to add new video filters to mplayer:
denoise3d: I call it a "3d denoiser" and it's function is similar to a
"smarth blur" followed by a "temporal denoiser", just it's quite faster,
has understable parameters and, in my tests, the results are better.
(better noise reduction with less ghosting/bluring) [BTW: default
parameter for this filter should provide a good tryout]
gamma: Apply a different gamma to each of RGB channels. (but working in
YUV) The reason: my monitor (just like mostly all monitor but insanely
expensive ones) sucks. It requires diferent gamma values for each chanel
in order to show proper white/grey balance. (ie: my .xinitrc contains a
"xgamma -rgamma 1.172 -ggamma 0.956 -bgamma 1.222" to make the monitor
show a correct 2.5 gamma) [BTW: the default values the filter uses are
the ones my monitor requires to show proper 2.0 (TV) gamma. Just take
gimp and apply a 1/those_values correction and you'll see how well I see
the videos without this filter)
the third patch whould be a saturation patch. After writting the
denoise3d I was able to watch a noise free "Bicentenial Man", but colors
were too pale and I didn't find any saturation filter for mplayer, so I
wrote one. Later I screwed it up when I decided i'd use it as the base
for the gamma filter and forgot to save it to a diferent file. :( It
should be easy to code it again, if you find it interesting.
The patches are intended to be tested separately. They'll conflict in
Makefile and vf.c.
If you think those can be usefull, I'd write proper documentation,
finish some loose ends and so on. So... just tell me.
My doubt about performance... is... I've written the gamma filter
following the eq2 one. But... this doesn't look to me like it can accept
DR. Only modified blocks should be recalculated and copyed to the
destination buffer. How should I modify the filter to make it do this? :-m
--
Daniel Moreno - ComaC
Port pa'Linux del FinalBurn: http://fblinux.emuunlim.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: denoise3d.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030129/97258c6c/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gamma.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030129/97258c6c/attachment.asc>
More information about the MPlayer-dev-eng
mailing list