[FFmpeg-devel] [PATCH] avutil/csp: create public API for colorspace structs

Niklas Haas ffmpeg at haasn.xyz
Sun May 15 21:10:46 EEST 2022


On Sun, 15 May 2022 12:49:51 -0400 "Ronald S. Bultje" <rsbultje at gmail.com> wrote:
> To explain: when I designed this stuff, I chose to keep them in float so
> that we can use the literal values from the specs, which are themselves in
> floating point. That would not be possible anymore, and would therefore
> make it slightly harder to read for a casual observer.
> 
> (Otherwise no opinion, I'm typically used to fixed-point rather than
> floating-point myself also.)
> 
> Ronald

Can you elaborate on this? Aren't almost all of these constants
represented in some notation rounded to 3-4 decimal places, in which
case a fixed point notation with denominator 10^N makes perfect sense?


More information about the ffmpeg-devel mailing list