Nem értem.
az elso dolog amit egy cuccnal nezek az az examplesItt most az a gondod, a példafájlok könyvtárát nem "examples"-nek, hanem "samples"-nek neveztem? Vagy nem értem.
'szom akar kodban tudni hogy rajojjek hogy is kene pontosan hasznalniMiért kéne turkálnod? Inkább a README-t kéne elolvasni. Mindjárt a repó README legelején egy nyúlfarknyi 5 soros "mégis mi a fasz ez" bevezető után máris jön az "Usage", a teljes API dokumentációval, de idemásolom a kedvedért:
In exactly one of your source files, define QOI2_IMPLEMENTATION and include the header: #define QOI2_IMPLEMENTATION #include "qoi2.h" To provide your own malloc(), you can define QOI2_MALLOC (free() and memset() not used by QOI2). You can also define QOI2_DECODER_ONLY or QOI2_ENCODER_ONLY to configure which parts to include (by default both included). The library has only two API functions: uint32_t *qoi2_decode(const uint8_t *buf, int *w, int *h, int size); Uncompress a QOI 2.0 stream of size bytes into a newly allocated 32 bit pixel buffer, returns its dimensions in w and h. It is the caller responsibility to free the returned buffer when they're done using it. uint8_t *qoi2_encode(const uint32_t *buf, int w, int h, int *size); Compress a 32 bit RGBA pixel buffer of w x h pixels, returns a newly allocated QOI 2.0 stream buffer and its size in size. It is the caller responsibility to free the returned buffer when they're done using it.Ennyi. Nincs több függvény, csak ez a kettő, és define-ból sincs több, csak az a négy. Faék egyszerű.