Fix HEADER_SIZE for the new header
This commit is contained in:
parent
ff542c2ae6
commit
5506399e0d
4
qoi.h
4
qoi.h
@ -81,7 +81,7 @@ you can define QOI_MALLOC and QOI_FREE before including this library.
|
|||||||
|
|
||||||
-- Data Format
|
-- Data Format
|
||||||
|
|
||||||
A QOI file has a 12 byte header, followed by any number of data "chunks".
|
A QOI file has a 14 byte header, followed by any number of data "chunks".
|
||||||
|
|
||||||
struct qoi_header_t {
|
struct qoi_header_t {
|
||||||
char magic[4]; // magic bytes "qoif"
|
char magic[4]; // magic bytes "qoif"
|
||||||
@ -278,7 +278,7 @@ void *qoi_decode(const void *data, int size, qoi_desc *desc, int channels);
|
|||||||
#define QOI_MAGIC \
|
#define QOI_MAGIC \
|
||||||
(((unsigned int)'q') << 24 | ((unsigned int)'o') << 16 | \
|
(((unsigned int)'q') << 24 | ((unsigned int)'o') << 16 | \
|
||||||
((unsigned int)'i') << 8 | ((unsigned int)'f'))
|
((unsigned int)'i') << 8 | ((unsigned int)'f'))
|
||||||
#define QOI_HEADER_SIZE 12
|
#define QOI_HEADER_SIZE 14
|
||||||
#define QOI_PADDING 4
|
#define QOI_PADDING 4
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
|
Loading…
Reference in New Issue
Block a user