summaryrefslogtreecommitdiff
path: root/libavfilter/vf_iccdetect.c
Commit message (Collapse)AuthorAgeFilesLines
* avutil/csp: create public API for colorspace structsLeo Izen2022-06-011-2/+3
| | | | | | | | | | 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. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavfi: add vf_iccdetect for parsing ICC profilesNiklas Haas2022-04-231-0/+142
This filter is designed to parse embedded ICC profiles and attempt extracting colorspace tags from them, updating the AVFrame metadata accordingly. This is intentionally made a separate filter, rather than being part of libavcodec itself, so that it's an opt-in behavior for the time being. This also gives the user more flexibility to e.g. first attach an ICC profile and then also set the colorspace tags from it. This makes #9673 possible, though not automatic. Signed-off-by: Niklas Haas <git@haasn.dev>