diff options
author | Niklas Haas <git@haasn.dev> | 2022-03-11 11:07:14 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2022-04-11 17:29:57 +0200 |
commit | 4a580975d4b978894d20dd443163cc8b6a2dbf2a (patch) | |
tree | c4b6832599b26caffa078eafe1e8ebbd4d5c0e6a /libavcodec/mjpegenc.c | |
parent | d6d46a2c508be0bc603874b49997a06a44feed7b (diff) | |
download | ffmpeg-4a580975d4b978894d20dd443163cc8b6a2dbf2a.tar.gz |
avcodec/pngenc: support writing iCCP chunks
We re-use the PNGEncContext.zstream for deflate-related operations.
Other than that, the code is pretty straightforward. Special care needs
to be taken to avoid writing more than 79 characters of the profile
description (the maximum supported).
To write the (dynamically sized) deflate-encoded data, we allocate extra
space in the packet and use that directly as a scratch buffer. Modify
png_write_chunk slightly to allow pre-writing the chunk contents like
this.
Also add a FATE transcode test to ensure that the ICC profile gets
encoded correctly.
Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libavcodec/mjpegenc.c')
0 files changed, 0 insertions, 0 deletions