On 13.04.2019 19:30, Moritz Barsnick wrote:
On Sat, Apr 13, 2019 at 15:50:14 +0300, Eugene Lyapustin wrote:
+static inline int equal(double a, double b, double epsilon)
+{
+ return fabs(a - b) < epsilon;
+}
+
+static inline int smaller(double a, double b, double epsilon)
+{
+ return ((a - b) < 0.0) && (!equal(a, b, epsilon));
+}
If something comparable doesn't already exist, these could become
macros similar to FF_MAX/MIX et.al.
These functions are local, so that change should not make much
difference. Correct me if I'm wrong :)
Thanks for comments,
Eugene Lyapustin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".