1 /*
2  * pngformat.h:
3  * Png file handling.
4  *
5  * Copyright (c) 2012 David Suárez.
6  * Email: david.sephirot@gmail.com
7  *
8  */
9 
10 #ifndef __PNGFORMAT_H__
11 #define __PNGFORMAT_H__
12 
13 #ifdef HAVE_CONFIG_H
14     #include <config.h>
15 #endif
16 #include "compat/compat.h"
17 
18 #define PNG_CODE_LEN 4
19 #define PNG_CRC_LEN  4
20 #define PNG_SIG_LEN  8
21 
22 struct png_chunk {
23    uint32_t datalen;
24    unsigned char code[PNG_CODE_LEN];
25 };
26 
27 #endif /*__PNGFORMAT_H__ */
28