diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-08 17:45:23 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-08 17:45:23 +0000 |
commit | bb4ba2586d4cfe9302278a427ee4cf7a89aef53b (patch) | |
tree | e48d17b2acafd26e2367c33d96d56cf58eb1f858 /converter/other/qoi.h | |
parent | 4b091760fddc73ffc877563b445599db21557e78 (diff) | |
download | netpbm-mirror-bb4ba2586d4cfe9302278a427ee4cf7a89aef53b.tar.gz netpbm-mirror-bb4ba2586d4cfe9302278a427ee4cf7a89aef53b.tar.xz netpbm-mirror-bb4ba2586d4cfe9302278a427ee4cf7a89aef53b.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4736 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/qoi.h')
-rw-r--r-- | converter/other/qoi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/converter/other/qoi.h b/converter/other/qoi.h index 52ee95e2..4bd7c024 100644 --- a/converter/other/qoi.h +++ b/converter/other/qoi.h @@ -82,6 +82,8 @@ qoi_colorHash(qoi_Rgba const x) { (x.rgba.r*3 + x.rgba.g*5 + x.rgba.b*7 + x.rgba.a*11) % QOI_INDEX_SIZE; } + + static __inline__ void qoi_clearQoiIndex(qoi_Rgba * index) { @@ -89,6 +91,8 @@ qoi_clearQoiIndex(qoi_Rgba * index) { } + + #define QOI_MAGIC_SIZE 4 static char const qoi_magic[QOI_MAGIC_SIZE + 1] = {'q','o','i','f','\0'}; |