summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-02-17 15:43:04 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-02-17 15:43:04 +1100
commit1e91f1d335e0d25b84f0b93aceff91f2f7fb9760 (patch)
tree2adc58de3f4d47f97f0dea6a48bbf5f219b984f1 /include
parentb8de9285970775d539f09f7bc81d3eae24e410e9 (diff)
feat(bmp): Implement ff_open_bmp function for BMP context initialization
Diffstat (limited to 'include')
-rw-r--r--include/tinyff/image/bmp.h7
1 files changed, 7 insertions, 0 deletions
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);