[FFmpeg-devel] [PATCH v2 0/3] Proper color support in PNG

Leo Izen leo.izen at gmail.com
Tue Jan 17 20:50:48 EET 2023


This series of patches fixes our incorrect cHRM handling
in PNGs and properly supports sRGB and cICP chunks in PNGs
as well.

Leo Izen (3):
  avcodec/png: use libavutil/csp.h for cHRM chunks
  avcodec/pngdec: support decoding sRGB chunks
  avcodec/png: support cICP chunks

 libavcodec/pngdec.c          | 87 +++++++++++++++++++++++++++---------
 libavcodec/pngenc.c          | 61 ++++++++++---------------
 tests/ref/fate/png-icc       |  2 +-
 tests/ref/fate/png-side-data | 13 +-----
 4 files changed, 92 insertions(+), 71 deletions(-)

-- 
2.39.0



More information about the ffmpeg-devel mailing list