[MPlayer-dev-eng] Chroma roll-off filter

Stanley stanleyhuangyc at yahoo.com.cn
Wed Jun 27 18:16:25 CEST 2007


For an application I was developing, I implemented a chroma roll-off 
filter for MPlayer. It can apply chroma rolling off effects.

Usage:
-vf rolloff=[level_hi (0~1)]:[level_low 
(0~1)]:[pos1]:[pos2]:[pos3]:[direction] (e.g. -vf rolloff=0.8:0.2:30:40:50)

The pos1~pos3 are in percentage (0~100) of the width of the video. The 
range of high/low level is 0~1 (float) while 0 for black and 1 for 
original brightness. The filter change chroma level (or brightness) to 
level_hi from pos1 and starts to roll off from level_hi to level_lo in 
the region between pos2 and pos3. If direction is set to 1, the effect 
is reversed.
Hoping it is useful to some of you. Suggestions welcomed.

Stanley
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070628/429085b5/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf_makefile.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070628/429085b5/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf_rolloff.c
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070628/429085b5/attachment-0001.txt>


More information about the MPlayer-dev-eng mailing list