From ded9f0da7e545d25e7e9fb7c86b5e1e5c34f005f Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Thu, 29 Jan 2026 20:59:09 +1100 Subject: feat(png): Iterate over every scanline in the IDAT chunk --- src/format/image/png.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3