[FFmpeg-devel] [PATCH] libavutil/libavfilter:add opencl warpper and opencl deshake filter

Michael Niedermayer michaelni at gmx.at
Fri Mar 8 02:12:48 CET 2013


On Fri, Mar 08, 2013 at 01:34:10AM +0100, Stefano Sabatini wrote:
> Sorry again for the slow reply.
[...]
> 
> > +inline const float clipf(float a, float amin, float amax)
> > +{
> 
> > +    if      (a < amin) return amin;
> > +    else if (a > amax) return amax;
> > +    else               return a;
> 
> Nit: return a < amin ? amin : a > amax ? amax : a;

that would make the code harder to read for no gain


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130308/41831405/attachment.asc>


More information about the ffmpeg-devel mailing list