[FFmpeg-devel] Optimised math functions in FFMPEG?

Nicolas George george at nsup.org
Sun Aug 15 16:27:22 EEST 2021


Paul Buxton (12021-08-15):
> I have my filter working nicely but it is a little slow. I have
> parallelised it where possible, but it is still a bit heavy. I am wondering
> if there are any optimised implementations/approximations of some math
> functions built in that I should use instead of the standard library
> implementations.
> Specifically any of
> pow()
> exp()
> log()
> 
> I have done a quick grep of the code but can't see any likely contenders.

I am not aware we have those. The kind of optimization you can do
depends a lot on your use case. Please give a little details.

If you want to speed your filter up, the best would be to make it work
with integers. It would also allow to make reliable unit tests.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210815/982e5593/attachment.sig>


More information about the ffmpeg-devel mailing list