Skip to content

Commit

Permalink
Refresh lodepng FFI cdecls
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe authored and Frenzie committed Sep 2, 2019
1 parent 51bde57 commit 639de5f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ffi/lodepng_h.lua
Expand Up @@ -7,11 +7,13 @@ enum LodePNGColorType {
LCT_PALETTE = 3,
LCT_GREY_ALPHA = 4,
LCT_RGBA = 6,
LCT_MAX_OCTET_VALUE = 255,
};
typedef enum LodePNGColorType LodePNGColorType;
typedef struct LodePNGDecompressSettings LodePNGDecompressSettings;
struct LodePNGDecompressSettings {
unsigned int ignore_adler32;
unsigned int ignore_nlen;
unsigned int (*custom_zlib)(unsigned char **, size_t *, const unsigned char *, size_t, const LodePNGDecompressSettings *);
unsigned int (*custom_inflate)(unsigned char **, size_t *, const unsigned char *, size_t, const LodePNGDecompressSettings *);
const void *custom_context;
Expand All @@ -28,10 +30,14 @@ struct LodePNGDecoderSettings {
typedef struct LodePNGDecoderSettings LodePNGDecoderSettings;
enum LodePNGFilterStrategy {
LFS_ZERO = 0,
LFS_MINSUM = 1,
LFS_ENTROPY = 2,
LFS_BRUTE_FORCE = 3,
LFS_PREDEFINED = 4,
LFS_ONE = 1,
LFS_TWO = 2,
LFS_THREE = 3,
LFS_FOUR = 4,
LFS_MINSUM = 5,
LFS_ENTROPY = 6,
LFS_BRUTE_FORCE = 7,
LFS_PREDEFINED = 8,
};
typedef enum LodePNGFilterStrategy LodePNGFilterStrategy;
typedef struct LodePNGCompressSettings LodePNGCompressSettings;
Expand Down

0 comments on commit 639de5f

Please sign in to comment.