summaryrefslogtreecommitdiff
path: root/include/tinyff/image/png.h
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-10 19:34:14 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-10 19:34:14 +1100
commit30568b2d0f38b73646bbc32f95259f74354660d4 (patch)
tree08d25fef203837c5da3c99903eb7bde4ef5c8de6 /include/tinyff/image/png.h
parent4507e8caa27156c25b0bfb10c034f15378dab254 (diff)
refactor(common): Add a context base for every ff_*_ctx
Diffstat (limited to 'include/tinyff/image/png.h')
-rw-r--r--include/tinyff/image/png.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tinyff/image/png.h b/include/tinyff/image/png.h
index 05d5846..6941b42 100644
--- a/include/tinyff/image/png.h
+++ b/include/tinyff/image/png.h
@@ -25,6 +25,8 @@ typedef enum {
} ff_png_mode;
typedef struct {
+ FF_BASE
+
// Raw stream handle
ff_stream *raw;
@@ -52,9 +54,6 @@ typedef struct {
uint8_t* palette;
uint32_t palette_size;
- bool valid;
- ff_result last_error;
-
} ff_png_ctx;
// Small BpP helper function