summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1data.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-03-11 11:07:14 +0100
committerNiklas Haas <git@haasn.dev>2022-04-11 17:29:57 +0200
commit4a580975d4b978894d20dd443163cc8b6a2dbf2a (patch)
treec4b6832599b26caffa078eafe1e8ebbd4d5c0e6a /libavcodec/truemotion1data.h
parentd6d46a2c508be0bc603874b49997a06a44feed7b (diff)
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/truemotion1data.h')
0 files changed, 0 insertions, 0 deletions