summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-01-29 20:59:09 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-01-29 20:59:09 +1100
commitded9f0da7e545d25e7e9fb7c86b5e1e5c34f005f (patch)
treef34eba24b3e5ea676e3574d2b6b7801f1277ed0f /src
parent3989489a3a786aeb87dbdf30d6468f7fe7438759 (diff)
feat(png): Iterate over every scanline in the IDAT chunk
Diffstat (limited to 'src')
-rw-r--r--src/format/image/png.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c
index 3fd14d5..28f5328 100644
--- a/src/format/image/png.c
+++ b/src/format/image/png.c
@@ -162,7 +162,20 @@ ff_result ff_png_data_handler(uint8_t *buf, size_t len, ff_png_ctx *ctx)
// Now I am very inexperienced so I'm doing what I think is right
// TODO: Review this code later
+ // Iterate over every scanline
+ for (int iline = 0; iline < ctx->height; iline++) {
+ uint8_t line_filter = buf[0];
+
+ // WIP: i have to go to bed :(
+ // If anyone is reading this have a good day :)
+ }
+
+ // Ahh yes, the memory demons
+ // We must not fall before them
+ // We must study the patterns of their ways
+ // The buddha has truely been testing us
+ free(uncompressed_data);
return FF_RESULT_WARN_NO_IMPL;
}