From 0a08ae14f69f5179c5d8990c41d1d8dbb63be346 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 12 May 2013 21:11:25 +0000 Subject: LinearUpscale: postfixed with InPlace to differentiate from a future src/dst version git-svn-id: http://mc-server.googlecode.com/svn/trunk@1479 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LinearUpscale.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/LinearUpscale.h') diff --git a/source/LinearUpscale.h b/source/LinearUpscale.h index c20e3d3bb..f8ba45350 100644 --- a/source/LinearUpscale.h +++ b/source/LinearUpscale.h @@ -15,13 +15,19 @@ However, upscaling usually requires generating the "1 +" in each direction. Upscaling is implemented in templates, so that it's compatible with multiple datatypes. Therefore, there is no cpp file. + +InPlace upscaling works on a single array and assumes that the values to work on have already +been interspersed into the array to the cell boundaries. +Specifically, a_Array[x * a_AnchorStepX + y * a_AnchorStepY] contains the anchor value. + +Regular upscaling takes two arrays and "moves" the input from src to dst; src is expected packed. */ /// Linearly interpolates values in the array between the equidistant anchor points; universal data type -template void ArrayLinearUpscale2D( +template void ArrayLinearUpscale2DInPlace( TYPE * a_Array, int a_SizeX, int a_SizeY, // Dimensions of the array int a_AnchorStepX, int a_AnchorStepY // Distances between the anchor points in each direction -- cgit v1.2.3