• Niklas Haas's avatar
    avfilter/vf_blackdetect: support full-range YUV · 8e2f61ef
    Niklas Haas authored
    This filter currently makes the distinction between limited and full
    range by testing for the deprecated YUVJ pixel formats at link setup
    time. This is deprecated and should be improved to perform the detection
    based on the per-frame metadata.
    
    Rewrite it to calculate the black pixel threshold at the time of
    filtering a frame, when metadata about the frame's color range is known.
    Doing it this way has the small side benefit of being able to handle
    streams with variable metadata, and is not a meaningful performance
    cost.
    Signed-off-by: 's avatarNiklas Haas <git@haasn.dev>
    8e2f61ef
vf_blackdetect.c 9.57 KB