diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-10 19:34:14 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-10 19:34:14 +1100 |
| commit | 30568b2d0f38b73646bbc32f95259f74354660d4 (patch) | |
| tree | 08d25fef203837c5da3c99903eb7bde4ef5c8de6 /include/tinyff/image/bmp.h | |
| parent | 4507e8caa27156c25b0bfb10c034f15378dab254 (diff) | |
refactor(common): Add a context base for every ff_*_ctx
Diffstat (limited to 'include/tinyff/image/bmp.h')
| -rw-r--r-- | include/tinyff/image/bmp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tinyff/image/bmp.h b/include/tinyff/image/bmp.h index 80aaa4d..6cb0ff2 100644 --- a/include/tinyff/image/bmp.h +++ b/include/tinyff/image/bmp.h @@ -21,6 +21,8 @@ static const unsigned char BMP_SIGNATURE[2] = { }; typedef struct { + FF_BASE + // Raw stream handle ff_stream *raw; @@ -42,9 +44,6 @@ typedef struct { uint8_t* pixels; - - bool valid; - ff_result last_error; } ff_bmp_ctx; typedef ff_result (*ff_bmp_section_handler_ptr)(uint8_t *buf, size_t len, ff_bmp_ctx* ctx); |
