23 #ifndef _RPNG_COMMON_H 24 #define _RPNG_COMMON_H 31 #define GOTO_END_ERROR() do { \ 32 fprintf(stderr, "[RPNG]: Error in line %d.\n", __LINE__); \ 38 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) 42 0x89,
'P',
'N',
'G', 0x0d, 0x0a, 0x1a, 0x0a,
uint8_t interlace
Definition: rpng_internal.h:53
static const uint8_t png_magic[8]
Definition: rpng_internal.h:41
uint32_t width
Definition: rpng_internal.h:47
uint8_t depth
Definition: rpng_internal.h:49
Definition: rpng_internal.h:45
uint32_t height
Definition: rpng_internal.h:48
uint8_t compression
Definition: rpng_internal.h:51
uint8_t filter
Definition: rpng_internal.h:52
uint8_t color_type
Definition: rpng_internal.h:50
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126