[FFmpeg-devel] [GSOC] [PATCH] avfilter: add panorama filter

Eugene Lyapustin unishifft at gmail.com
Sat Apr 13 22:37:34 EEST 2019


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



More information about the ffmpeg-devel mailing list