fix Windows unity build
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
/* ####################################################################################################################
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user