diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/format/image/png.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c index 535c539..94454d6 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -528,6 +528,14 @@ ff_result ff_encode_png(ff_ctx *ctx, ff_png_ctx *png_ctx, ff_stream *stream) return FF_RESULT_WARN_NO_IMPL; } +ff_result ff_write_plte_chunk(ff_ctx *ctx, ff_stream *stream, ff_png_ctx *png_ctx) +{ + uint8_t* pltebuf = ctx->allocator.ff_alloc(png_ctx->palette_size * 3) + for (uint8_t entry = 0; entry < png_ctx->palette_size; entry += 4) { + + } +} + ff_result ff_png_normalize(ff_ctx *ctx, ff_png_ctx *png_ctx, ff_image_ctx **out_data, ff_flag consume) { if (png_ctx->bit_depth != 8) return FF_RESULT_WARN_NO_IMPL; |
