From 1e91f1d335e0d25b84f0b93aceff91f2f7fb9760 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Tue, 17 Feb 2026 15:43:04 +1100 Subject: feat(bmp): Implement ff_open_bmp function for BMP context initialization --- include/tinyff/image/bmp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/tinyff') diff --git a/include/tinyff/image/bmp.h b/include/tinyff/image/bmp.h index 8c4fd56..6381cea 100644 --- a/include/tinyff/image/bmp.h +++ b/include/tinyff/image/bmp.h @@ -17,6 +17,10 @@ static const unsigned char BMP_SIGNATURE[2] = { }; typedef struct { + // Raw stream handle + ff_stream *raw; + + uint32_t file_size; // tbh, i actually have no idea why this is needed uint32_t data_offset; @@ -34,6 +38,9 @@ typedef struct { uint8_t* pixels; + + bool valid; + ff_result last_error; } ff_bmp_ctx; ff_result ff_bmp_isvalid(ff_stream *stream); -- cgit v1.2.3