aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/bfc/draw/convolve.h
blob: aac2e237f05a95b7e08c455fe9007082efa6f124 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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