Added 2 new effects, Changed order of parameters of

all effect that have a color key parameter.
(r = p0, g = p1, b = p2 ). Also some bugs were fixed
and default values have been changed of various effects.



git-svn-id: svn://code.dyne.org/veejay/trunk@274 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2005-04-08 19:47:52 +00:00
parent 4674ec8104
commit 8ccbfa1de7
28 changed files with 1134 additions and 507 deletions

View File

@@ -69,12 +69,12 @@ typedef struct
static blob_t *blobs_;
static uint8_t **blob_;
static uint8_t *blob_image_;
static int blob_ready_ = 0;
static int blob_ready_ = 0;
static int blob_radius_ = 16;
static int blob_dradius_ = 0;
static int blob_sradius_ = 0;
static int blob_num_ = 50;
static int blob_type_ = 1;
static int blob_num_ = 50;
static int blob_type_ = 1;
vj_effect *blob_init(int w, int h)
{
@@ -83,7 +83,7 @@ vj_effect *blob_init(int w, int h)
ve->defaults = (int *) vj_malloc(sizeof(int) * ve->num_params); /* default values */
ve->limits[0] = (int *) vj_malloc(sizeof(int) * ve->num_params); /* min */
ve->limits[1] = (int *) vj_malloc(sizeof(int) * ve->num_params); /* max */
ve->limits[0][0] = 0;
ve->limits[0][0] = 1;
ve->limits[1][0] = 360; // radius
ve->limits[0][1] = 1;
ve->limits[1][1] = 100; // num blobs
@@ -124,6 +124,7 @@ int blob_malloc(int w, int h)
{
blob_[i] = (uint8_t*) vj_malloc(sizeof(uint8_t) * blob_dradius_ );
if(!blob_[i]) return 0;
memset( blob_[i], 0 , blob_dradius_ );
}
blobs_ = (blob_t*) vj_malloc(sizeof(blob_t) * blob_num_ );
@@ -131,7 +132,6 @@ int blob_malloc(int w, int h)
blob_image_ = (uint8_t*) vj_malloc(sizeof(uint8_t) * w * h );
if(!blob_image_) return 0;
for( i = -blob_radius_ ; i < blob_radius_ ; ++ i )
{
@@ -172,6 +172,8 @@ void blob_free()
free(blobs_);
if(blob_image_)
free(blob_image_);
blobs_ = NULL;
blob_image_ = NULL;
}
typedef void (*blob_func)(int s, int width);