[FFmpeg-devel] [RFC] New swscale internal design prototype

Martin Storsjö martin at martin.st
Sun Mar 9 18:11:54 EET 2025


On Sat, 8 Mar 2025, Niklas Haas wrote:

> What are the thoughts on the float-first approach?

In general, for modern architectures, relying on floats probably is 
reasonable. (On architectures that aren't of quite as widespread interest, 
it might not be so clear cut though.)

However with the benchmark example you provided a couple of weeks ago, we 
concluded that even on x86 on modern HW, floats were faster than int16 
only in one case: When using Clang, not GCC, and when compiling with 
-mavx2, not without it. In all the other cases, int16 was faster than 
float.

After doing those benchmarks, my understanding was that you concluded that 
we probably need to keep int16 based codepaths still, then.

Did something fundamental come up since we did these benchmarks that 
changed your conclusion?

// Martin



More information about the ffmpeg-devel mailing list