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

Anton Khirnov anton at khirnov.net
Fri May 20 18:50:29 EEST 2022


Quoting James Almer (2022-05-20 13:53:35)
> > 
> > 3. avpriv_ vs av_
> >      avpriv is evil, it combines the pain of ABI/API compatibility while the
> >      public cant use it
> 
> Not making it public allows us to not commit to a fixed design *now*.
> Unless there's a clear need for this to be part of the public API, i 
> don't think it's a good idea to do so. This change is being made because 
> this API is afaict needed in lavc, and not by some project using lavu.

The commit message claims it will be used in lavc and lavf. Seems to me
like a strong sign that it really should be public.

As far as I'm concerned, avpriv should not exist at all.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list