add png_types.nim

This commit is contained in:
andri lim 2020-04-13 20:56:40 +07:00
parent 6f1374d4c5
commit f5580d7d77
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

14
nimPNG/png_types.nim Normal file
View File

@ -0,0 +1,14 @@
type
PNGFilterStrategy* = enum
#every filter at zero
LFS_ZERO,
#Use filter that gives minimum sum, as described in the official PNG filter heuristic.
LFS_MINSUM,
#Use the filter type that gives smallest Shannon entropy for this scanLine. Depending
#on the image, this is better or worse than minsum.
LFS_ENTROPY,
#Brute-force-search PNG filters by compressing each filter for each scanLine.
#Experimental, very slow, and only rarely gives better compression than MINSUM.
LFS_BRUTE_FORCE,
#use predefined_filters buffer: you specify the filter type for each scanLine
LFS_PREDEFINED