[libpng17] Reverted recent manual change. The additional restrictions

on the order of png_set_PLTE, png_set_tRNS, and png_set_hIST are
not necessary.
This commit is contained in:
Glenn Randers-Pehrson
2015-12-01 17:23:54 -06:00
parent aacda27449
commit 37a50281cf
4 changed files with 6 additions and 18 deletions

View File

@@ -2947,7 +2947,8 @@ Some of the more important parts of the png_info are:
If you call png_set_IHDR(), the call must appear before any of the
other png_set_*() functions, because they might require access to some of
the IHDR settings.
the IHDR settings. The remaining png_set_*() functions can be called
in any order.
If you wish, you can reset the compression_type, interlace_type, or
filter_method later by calling png_set_IHDR() again; if you do this, the
@@ -2960,12 +2961,6 @@ width, height, bit_depth, and color_type must be the same in each call.
(array of png_color)
num_palette - number of entries in the palette
If you call png_set_PLTE(), the call must appear before either of
png_set_tRNS() or png_set_hIST() appears, because they require access
to the palette length.
The remaining png_set_*() functions can be called in any order.
png_set_gAMA(png_ptr, info_ptr, file_gamma);
png_set_gAMA_fixed(png_ptr, info_ptr, int_file_gamma);