[FFmpeg-devel] [PATCH] avcodec/mjpegenc: support writing ICC profiles

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Mar 10 16:31:37 EET 2022

Niklas Haas:
> From: Niklas Haas <git at haasn.dev>
> This is mostly straightforward. The major complication is that, as a
> result of the 16-bit chunk size limitation, ICC profiles may need to be
> split up into multiple chunks.
> We also need to make sure to allocate enough extra space in the packet
> to fit the ICC profile, so modify both mpegvideo_enc.c and ljpegenc.c to
> take into account this extra overhead.
> Signed-off-by: Niklas Haas <git at haasn.dev>
> ---
> I will submit a FATE patch and test separately. (We do not currently
> have any JPGs with embedded ICC profiles in the test suite)


- Andreas

More information about the ffmpeg-devel mailing list