defocus-modules/lib/utils.c
Kevin Trogant 4b26cec390 actually trace the dumb test image
does not take plane rotation into account!
2023-06-19 17:27:23 +02:00

11 lines
250 B
C

#include <defocus/defocus.h>
#include <math.h>
DF_API float df_max_f32(const float *list, unsigned int count)
{
float max = -INFINITY;
for (unsigned int i = 0; i < count; ++i)
max = (max < list[i]) ? list[i] : max;
return max;
}