]> git.sesse.net Git - ffmpeg/commit
lavfi/vf_colorchannelmixer: replace round by lrint
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 16 Dec 2015 19:34:09 +0000 (14:34 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 21 Dec 2015 16:15:31 +0000 (08:15 -0800)
commitcc37b31ad3815dfea6157eb784db7665bd990fcc
tree8d2a26fe30a4f256aa1c143726a9e19c49905e69
parentd3dbae1c7179656325d35fa2baa96a85c13dfccd
lavfi/vf_colorchannelmixer: replace round by lrint

lrint is faster here on -ftree-vectorize with GCC. This is likely simply
an artifact of GCC's rather terrible auto-vectorizer, since as per the
instruction set manuals cvtsd2si and cvttsd2si (or their vector equivalents)
have identical cycle timings.

Anyway, regardless of above, lrint is superior to round accuracy wise.

Safety guaranteed as long int has at least 32 bits.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavfilter/vf_colorchannelmixer.c