Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
24
Src/Wasabi/bfc/draw/convolve.h
Normal file
24
Src/Wasabi/bfc/draw/convolve.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef _CONVOLVE_H
|
||||
#define _CONVOLVE_H
|
||||
|
||||
#include "platform/types.h"
|
||||
// world's slowest crappiest convolve :P think it sucks? write a better one
|
||||
// and send it to me
|
||||
|
||||
class Convolve3x3 {
|
||||
public:
|
||||
Convolve3x3(ARGB32 *bits, int w, int h);
|
||||
|
||||
void setPos(int x, int y, float v);
|
||||
void setMultiplier(int m);
|
||||
|
||||
void convolve();
|
||||
|
||||
private:
|
||||
ARGB32 *bits;
|
||||
int w, h;
|
||||
float vals[3][3];
|
||||
float multiplier;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue