GST_AUDIO_FORMATS_ALL order by quality - should F64 be the preference?

Carlos Rafael Giani crg7475 at mailbox.org
Fri Oct 21 21:04:57 UTC 2022


https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/689 
fixed the order of GST_AUDIO_FORMATS_ALL to be ordered by quality 
instead of ordered by integer width, which caused formats like S8 and U8 
to be placed before much more commonly used ones like S32LE. This makes 
a lot of sense.

The new ordering however prefers F64LE and F64BE. It this really 
practical? I understand that this is according to the new criteria, but 
the vast majority of hard- and software do not actually support 64-bit 
floating point samples, so a lot of unnecessary conversions may take place.

Perhaps an order that corresponds better to what is used in the real 
world would be to prefer F32 formats first, followed by S32 formats, 
then S24_32 and S24 formats, then S16 formats, then F64 formats, then 
the rest.

Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221021/3ac6ef01/attachment.htm>


More information about the gstreamer-devel mailing list