• Niklas Haas's avatar
    lavfi: add vf_iccdetect for parsing ICC profiles · 2cb0cebd
    Niklas Haas authored
    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: 's avatarNiklas Haas <git@haasn.dev>
    2cb0cebd
vf_iccdetect.c 4.14 KB