libspng
libspng copied to clipboard
Encoder conformance
From https://www.w3.org/TR/2003/REC-PNG-20031110/#15ConformanceEncoder:
-
[x] All PNG datastreams that are generated by the PNG encoder are conforming PNG datastreams.
-
[ ] When encoding input samples that have a sample depth that cannot be directly represented in PNG, the encoder scales the samples up to the next higher sample depth that is allowed by PNG. The data are scaled in such a way that the high-order bits match the original data.
-
[ ] Numbers greater than 127 are used when encoding experimental or private definitions of values for any of the method or type fields.