fix Windows unity build

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-15 18:44:38 -07:00
parent 074518454c
commit 032a35e495
19 changed files with 2143 additions and 2141 deletions
@@ -14,6 +14,11 @@
namespace ImageProcessingAtom
{
float round(float x)
{
return ((x) >= 0) ? floor((x) + 0.5) : ceil((x)-0.5);
}
void calculateFilterRange(unsigned int srcFactor, int& srcFirst, int& srcLast,
unsigned int dstFactor, int dstFirst, int dstLast,
double blurFactor, class IWindowFunction<double>* windowFunction)
@@ -22,11 +22,7 @@ namespace ImageProcessingAtom
inline DataType minimum(const DataType& ths, const DataType& tht) { return (ths < tht ? ths : tht); }
template<class DataType>
inline DataType maximum(const DataType& ths, const DataType& tht) { return (ths > tht ? ths : tht); }
#ifndef round
#define round(x) ((x) >= 0) ? floor((x) + 0.5) : ceil((x) - 0.5)
#endif
/* ####################################################################################################################
*/