• J
    [libpng16] Corrected simplified API default gamma for color-mapped output, added · 59ae3898
    John Bowler 提交于
    a flag to change default. In 1.6.0 when the simplified API was used
    to produce color-mapped output from an input image with no gamma
    information the gamma assumed for the input could be different from
    that assumed for non-color-mapped output.  In particular 16-bit depth
    input files were assumed to be sRGB encoded, whereas in the 'direct'
    case they were assumed to have linear data.  This was an error.  The
    fix makes the simplified API treat all input files the same way and
    adds a new flag to the png_image::flags member to allow the
    application/user to specify that 16-bit files contain sRGB data
    rather than the default linear.
    Fixed bugs in the pngpixel and makepng test programs.
    59ae3898
pngread.c 130.3 KB