[FFmpeg-devel] Optimised math functions in FFMPEG?

Paul B Mahol onemda at gmail.com
Sun Aug 15 16:31:36 EEST 2021


On Sun, Aug 15, 2021 at 3:27 PM Nicolas George <george at nsup.org> wrote:

> 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.
>


If you convert to/from linear light inside filter, that is wrong thing to
do.


>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list