Skip to content

Add "missing" C API functions. - #50

Open
tjko wants to merge 1 commit into
bitbank2:masterfrom
tjko:c_api_fix
Open

Add "missing" C API functions.#50
tjko wants to merge 1 commit into
bitbank2:masterfrom
tjko:c_api_fix

Conversation

@tjko

@tjko tjko commented Jun 20, 2026

Copy link
Copy Markdown

I noticed that some of the C API functions were "missing" (declared in PNGdec.h but not found in png.inl)

int PNG_decode(PNGIMAGE *pPNG, void *pUser, int iOptions);
int PNG_getBpp(PNGIMAGE *pPNG);
int PNG_getPixelType(PNGIMAGE *pPNG);
int PNG_hasAlpha(PNGIMAGE *pPNG);
int PNG_isInterlaced(PNGIMAGE *pPNG);
void PNG_setBuffer(PNGIMAGE *pPNG, uint8_t *pBuffer);

This patch implements these, so that library usable from C...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant