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

Leo Izen leo.izen at gmail.com
Tue May 24 18:47:58 EEST 2022



On 5/24/22 11:28, Vittorio Giovara wrote:
> 
> 
> On Mon, May 23, 2022 at 11:02 PM Leo Izen <leo.izen at gmail.com 
> <mailto:leo.izen at gmail.com>> wrote:
> 
>     This commit moves some of the functionality from avfilter/colorspace
>     into avutil/csp and exposes it as a public API so it can be used by
>     libavcodec and/or libavformat. It also converts those structs from
>     double values to AVRational to make regression testing easier and
>     more consistent
> 
> 
> which places did you have in mind to use this api in avcodec and avformat?
> also wouldn't callers be interested in accessory functions like 
> ff_matrix_invert_3x3 if they are dealing with color spaces?
> -- 
> Vittorio

Once this is merged I plan on using it in the libjxl encoder wrapper. As 
for the other functions, they aren't needed at this time but they could 
always be exported at a later date if required.

- Leo Izen (thebombzen)


More information about the ffmpeg-devel mailing list