13 int i,
x,
y, ym, yp, xm, xp;
14 float c[4] = {0, 0, 0, 0}, tc[4] = {0, 0, 0, 0};
15 const float f1 = 1.0f - settings->fade;
16 const float f2 = (1.0f - f1) * 0.5f;
22 for (i = 0; i < settings->iter && (!breaked); i++) {
25 for (y = 0; y < this->
get_height() && (!breaked); y++) {
33 tbuf1.
read(tc, (settings->star_45 ? xm :
x), ym);
35 tbuf1.
read(tc, (settings->star_45 ? xp :
x), yp);
42 tbuf2.
read(tc, xm, (settings->star_45 ? yp :
y));
44 tbuf2.
read(tc, xp, (settings->star_45 ? ym :
y));
54 for (y = this->
get_height() - 1; y >= 0 && (!breaked); y--) {
57 for (x = this->
get_width() - 1; x >= 0; x--) {
62 tbuf1.
read(tc, (settings->star_45 ? xm :
x), ym);
64 tbuf1.
read(tc, (settings->star_45 ? xp :
x), yp);
71 tbuf2.
read(tc, xm, (settings->star_45 ? yp :
y));
73 tbuf2.
read(tc, xp, (settings->star_45 ? ym :
y));
void read(float *result, float x, float y, PixelSampler sampler=PixelSampler::Nearest, MemoryBufferExtend extend_x=MemoryBufferExtend::Clip, MemoryBufferExtend extend_y=MemoryBufferExtend::Clip) const