From aa901783a0dc07f0dc08628d3ca091a9164b0629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juha=20Vehvil=C3=A4inen?= Date: Mon, 30 Dec 2002 22:14:47 +0000 Subject: *** empty log message *** svn path=/trunk/Framestein/; revision=312 --- Plugins/2colors.cpp | 2 ++ Plugins/2colors.dll | Bin 28672 -> 36864 bytes Plugins/argument-passing.cpp | 8 +++++--- Plugins/argument-passing.dll | Bin 40960 -> 40960 bytes Plugins/black.c | 3 +++ Plugins/black.dll | Bin 28672 -> 36864 bytes Plugins/gol.c | 2 ++ Plugins/gol.dll | Bin 36864 -> 36864 bytes Plugins/green.cpp | 2 ++ Plugins/green.dll | Bin 28672 -> 36864 bytes Plugins/hist.cpp | 2 ++ Plugins/hist.dll | Bin 45056 -> 45056 bytes Plugins/makefile | 7 ++++--- Plugins/plugin.h | 4 ++++ Plugins/rgb.c | 2 ++ Plugins/rgb.dll | Bin 36864 -> 36864 bytes Plugins/shuffle.c | 2 ++ Plugins/shuffle.dll | Bin 28672 -> 36864 bytes Plugins/sonogram.cpp | 3 +++ Plugins/sonogram.dll | Bin 45056 -> 49152 bytes Plugins/subtract.cpp | 2 ++ Plugins/subtract.dll | Bin 40960 -> 40960 bytes Plugins/tile.cpp | 2 ++ Plugins/tile.dll | Bin 28672 -> 36864 bytes 24 files changed, 35 insertions(+), 6 deletions(-) (limited to 'Plugins') diff --git a/Plugins/2colors.cpp b/Plugins/2colors.cpp index b76be62..e594c2b 100644 --- a/Plugins/2colors.cpp +++ b/Plugins/2colors.cpp @@ -19,3 +19,5 @@ void perform_effect(_frame f, _args a) p.next(); } } + +INFO("go black and white") diff --git a/Plugins/2colors.dll b/Plugins/2colors.dll index ba62b0f..fbb0e4d 100644 Binary files a/Plugins/2colors.dll and b/Plugins/2colors.dll differ diff --git a/Plugins/argument-passing.cpp b/Plugins/argument-passing.cpp index d89e8c1..0247b5f 100644 --- a/Plugins/argument-passing.cpp +++ b/Plugins/argument-passing.cpp @@ -1,9 +1,11 @@ +#include "plugin.h" +#include "pixels.h" + // -// example of parsing arguments in a plugin using the arguments-class (defined in pixels.h) +INFO("example of parsing arguments in a plugin using the arguments-class") +// (defined in pixels.h) // -#include "pixels.h" - void perform_effect(_frame f, _args a) { arguments ar(a.s); diff --git a/Plugins/argument-passing.dll b/Plugins/argument-passing.dll index dfa112e..d77a64b 100644 Binary files a/Plugins/argument-passing.dll and b/Plugins/argument-passing.dll differ diff --git a/Plugins/black.c b/Plugins/black.c index 3716767..dbb672f 100644 --- a/Plugins/black.c +++ b/Plugins/black.c @@ -1,6 +1,8 @@ #include #include "plugin.h" +INFO("total blackness") + void perform_effect(_frame f, _args a) { memset(f.bits, 0, f.height*f.lpitch); @@ -11,3 +13,4 @@ void perform_copy(_frame f1, _frame f2, _args a) memset(f1.bits, 0, f1.height*f1.lpitch); memset(f2.bits, 0, f2.height*f2.lpitch); } + diff --git a/Plugins/black.dll b/Plugins/black.dll index cb8b57a..474d5ef 100644 Binary files a/Plugins/black.dll and b/Plugins/black.dll differ diff --git a/Plugins/gol.c b/Plugins/gol.c index 3349df2..222a894 100644 --- a/Plugins/gol.c +++ b/Plugins/gol.c @@ -11,6 +11,8 @@ #define BORN 1 #define DYING 2 +INFO("Conway's Game Of Life") + int aroundme(_frame f, int x, int y) { pixel16 *p; diff --git a/Plugins/gol.dll b/Plugins/gol.dll index 611f227..26fe8e9 100644 Binary files a/Plugins/gol.dll and b/Plugins/gol.dll differ diff --git a/Plugins/green.cpp b/Plugins/green.cpp index c66e3e6..53f58e5 100644 --- a/Plugins/green.cpp +++ b/Plugins/green.cpp @@ -12,3 +12,5 @@ void perform_effect(_frame f, _args a) p.next(); } } + +INFO("go green") diff --git a/Plugins/green.dll b/Plugins/green.dll index 3dc1016..d1f42d6 100644 Binary files a/Plugins/green.dll and b/Plugins/green.dll differ diff --git a/Plugins/hist.cpp b/Plugins/hist.cpp index f525db1..84c6a6e 100644 --- a/Plugins/hist.cpp +++ b/Plugins/hist.cpp @@ -13,6 +13,8 @@ #include "plugin.h" #include "pixels.h" +INFO("helper for fs.hist") + void perform_effect(_frame f, _args a) { if(!a.s) return; diff --git a/Plugins/hist.dll b/Plugins/hist.dll index 7c0bc44..30937b8 100644 Binary files a/Plugins/hist.dll and b/Plugins/hist.dll differ diff --git a/Plugins/makefile b/Plugins/makefile index dd1b028..f4e6b6c 100644 --- a/Plugins/makefile +++ b/Plugins/makefile @@ -15,9 +15,10 @@ all: noize colortv subtract xbend bend gol shuffle green \ FLAGS = /LD /Gd /GD /Ox -EFFECT = /export:perform_effect -COPY = /export:perform_copy -BOTH = /export:perform_effect /export:perform_copy +# does this suck or what? how to do it better? +EFFECT = /export:info /export:perform_effect +COPY = /export:info /export:perform_copy +BOTH = /export:info /export:perform_effect /export:perform_copy noize: cl noize.c $(FLAGS) /link $(BOTH) diff --git a/Plugins/plugin.h b/Plugins/plugin.h index 00281e5..69ed298 100644 --- a/Plugins/plugin.h +++ b/Plugins/plugin.h @@ -133,4 +133,8 @@ __inline byte klamp601(long in) return(out); } +// use this to easily describe your plugins: + +#define INFO(x) void info(char *s) { sprintf(s, x); } + #endif // #ifndef _PLUGINH diff --git a/Plugins/rgb.c b/Plugins/rgb.c index d58f784..ebe9c38 100644 --- a/Plugins/rgb.c +++ b/Plugins/rgb.c @@ -1,6 +1,8 @@ #include #include "plugin.h" +INFO("helper for fs.rgb") + void perform_effect(_frame f, _args a) { char *t; diff --git a/Plugins/rgb.dll b/Plugins/rgb.dll index ba7dfd2..76e18b7 100644 Binary files a/Plugins/rgb.dll and b/Plugins/rgb.dll differ diff --git a/Plugins/shuffle.c b/Plugins/shuffle.c index 0604595..e4254fa 100644 --- a/Plugins/shuffle.c +++ b/Plugins/shuffle.c @@ -1,6 +1,8 @@ #include #include "plugin.h" +INFO("randomly move around pixels") + void perform_effect(_frame f, _args a) { int i, o=1000, x1, y1, x2, y2, range=10; diff --git a/Plugins/shuffle.dll b/Plugins/shuffle.dll index bd5d552..d46d5aa 100644 Binary files a/Plugins/shuffle.dll and b/Plugins/shuffle.dll differ diff --git a/Plugins/sonogram.cpp b/Plugins/sonogram.cpp index 821b94a..68c86fe 100644 --- a/Plugins/sonogram.cpp +++ b/Plugins/sonogram.cpp @@ -18,6 +18,8 @@ #define SONOMAXVAL 500 #define sonotype float +INFO("helper for fs.sonogram") + int callcount=-1; void perform_effect(_frame f, _args a) @@ -80,3 +82,4 @@ void perform_effect(_frame f, _args a) } } } + diff --git a/Plugins/sonogram.dll b/Plugins/sonogram.dll index db6e132..2615d14 100644 Binary files a/Plugins/sonogram.dll and b/Plugins/sonogram.dll differ diff --git a/Plugins/subtract.cpp b/Plugins/subtract.cpp index 3172513..a088146 100644 --- a/Plugins/subtract.cpp +++ b/Plugins/subtract.cpp @@ -13,6 +13,8 @@ #include "plugin.h" #include "pixels.h" +INFO("subtract color components"); + void perform_effect(_frame f, _args a) { arguments ar(a.s); diff --git a/Plugins/subtract.dll b/Plugins/subtract.dll index 65383b3..4bab85c 100644 Binary files a/Plugins/subtract.dll and b/Plugins/subtract.dll differ diff --git a/Plugins/tile.cpp b/Plugins/tile.cpp index 47fa5ca..dd584af 100644 --- a/Plugins/tile.cpp +++ b/Plugins/tile.cpp @@ -3,6 +3,8 @@ #include "plugin.h" #include "pixels.h" +INFO("duplicate image to multiple rows and columns") + void perform_copy(_frame f1, _frame f2, _args a) { pixels px(f2); diff --git a/Plugins/tile.dll b/Plugins/tile.dll index 58a8886..7d7e565 100644 Binary files a/Plugins/tile.dll and b/Plugins/tile.dll differ -- cgit v1.2.1