mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 21:01:30 -05:00
24 lines
415 B
C++
24 lines
415 B
C++
#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
|