blob: e9e29310c4db211c9c58b16e7244ab9f96669617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdlib.h>
#include "plugin.h"
INFO("set image data to a given value")
void perform_effect(_frame f, _args a)
{
unsigned char c;
if(!a.s) return;
c = atoi(a.s);
memset(f.bits, c, f.height*f.lpitch);
}
|