diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-21 14:38:29 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-21 14:38:29 +0000 |
commit | 2e73a5e69f0227f15c6049ef805a9b8c20166e2b (patch) | |
tree | a76597e387b3748bb06290e7980e432711d72670 /src/post/goom/convolve_fx.c | |
parent | 5ef0b5f10d0ee154a8add83c7c19d8557898226f (diff) | |
download | xine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.gz xine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.bz2 |
new goom2k4-dev18 includes almost all of my warning fixes
(the goom team is quite fast in applying my patches :) )
some files are still slightly patched from the release version, but I will
get this sorted out so we will soon use a completely unmodified version
of goom
it compiles almost warningless now (the remaining warnings are introduced by
lex/yacc and I plan to simply ignore them)
the Makefile.am distclean-hack is also obsolete now, since the offending
files have been renamed
CVS patchset: 6828
CVS date: 2004/07/21 14:38:29
Diffstat (limited to 'src/post/goom/convolve_fx.c')
-rw-r--r-- | src/post/goom/convolve_fx.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/post/goom/convolve_fx.c b/src/post/goom/convolve_fx.c index 518875824..c73b541f9 100644 --- a/src/post/goom/convolve_fx.c +++ b/src/post/goom/convolve_fx.c @@ -8,10 +8,19 @@ #include <string.h> static const char DEF_SCRIPT[] = -"float goom = Sound.Goom_Detection;\n" -"float factor = Bright_Flash.Factor;\n" -"(0.8 < goom)? factor = factor + Sound.Goom_Power * 1.5;\n" -"Bright_Flash.Factor = factor * 0.96;\n"; +"-> config;\n" +"-> main;\n" +"\n" +"<config>\n" +" float INCREASE_RATE = 150%;\n" +" float DECAY_RATE = 96%;\n" +"\n" +"<main>\n" +" (Sound.Goom_Detection > 0.8) ?\n" +" Bright_Flash.Factor = Bright_Flash.Factor + Sound.Goom_Power * INCREASE_RATE;\n" +"\n" +" Bright_Flash.Factor = Bright_Flash.Factor * DECAY_RATE;\n" +"\n"; #define MAX 2.0f @@ -123,7 +132,7 @@ static void convolve_apply(VisualFX *_this, Pixel *src, Pixel *dest, PluginInfo info->methods.create_output_with_brightness(src,dest,info->screen.size,iff); } -VisualFX convolve_create() { +VisualFX convolve_create(void) { VisualFX vfx = { init: convolve_init, free: convolve_free, |