diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-01-29 20:59:09 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-01-29 20:59:09 +1100 |
| commit | ded9f0da7e545d25e7e9fb7c86b5e1e5c34f005f (patch) | |
| tree | f34eba24b3e5ea676e3574d2b6b7801f1277ed0f /src/format/image/png.c | |
| parent | 3989489a3a786aeb87dbdf30d6468f7fe7438759 (diff) | |
feat(png): Iterate over every scanline in the IDAT chunk
Diffstat (limited to 'src/format/image/png.c')
| -rw-r--r-- | src/format/image/png.c | 13 |
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; } |
