rtengine: added rescale.h header with rescaleBilinear and rescaleNearest

taken from tmo_fattal02.cc and moved in their own header to allow reuse
This commit is contained in:
Alberto Griggio
2018-10-03 15:07:24 +02:00
parent ae12a4186c
commit 39728c3286
3 changed files with 106 additions and 58 deletions

View File

@@ -267,11 +267,11 @@ public:
ar_realloc(w, h);
memcpy(data, copy, w * h * sizeof(T));
}
int width()
int width() const
{
return x;
}
int height()
int height() const
{
return y;
}