Quote:
Originally Posted by STaRGaZeR
I agree with madshi, the best solution would be a compile time option. Very few lines of code to make everyone happy. Can you make those patches and send them, madshi?
|
While I think it's worth a try (with some convincing it might get accepted in FFmpeg), this definitely is not the best option.
What I expect the developers to want you to do is to only support float output for decoders that use float internally, but also add scale/bias options so that decoders that are capable of it will apply these to the output "for free", and then use that to implement a very fast float -> 16 bit int conversion outside the codec like the one that is currently done inside it (also means you get volume control for free).
As you can see this will be a bit of effort, just deciding on the precise design will take some time.