summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-05-21 08:36:05 +1000
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-05-21 08:36:05 +1000
commit0a2dd22857b636c4d8f89fc49b034ac0e493d1bf (patch)
treea2854a5a1790c56eaa351ae70fff2a623eef20df /include
parentb36db772c2bf9f5702633d094563661d3705e1f1 (diff)
feat(png): Make initial PNG encoder function
Diffstat (limited to 'include')
-rw-r--r--include/tinyff/image/png.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tinyff/image/png.h b/include/tinyff/image/png.h
index e24ced8..fb064db 100644
--- a/include/tinyff/image/png.h
+++ b/include/tinyff/image/png.h
@@ -79,12 +79,16 @@ ff_result ff_png_trans_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ctx
extern const ff_png_chunk_handler ff_png_chunk_handlers[];
+// Encoding helpers
+ff_result ff_write_chunk(ff_stream *stream, const char *type, uint8_t *buf, size_t len);
ff_result ff_png_isvalid(ff_ctx* ctx, ff_stream *stream);
ff_result ff_open_png(ff_ctx* ctx, ff_stream *stream, ff_png_ctx **out_ctx, ff_flag require_valid);
ff_result ff_close_png(ff_ctx* ctx, ff_png_ctx *png_ctx);
+ff_result ff_encode_png(ff_ctx* ctx, ff_png_ctx *png_ctx, ff_stream *stream);
+
ff_result ff_png_normalize(ff_ctx* ctx, ff_png_ctx *png_ctx, ff_image_ctx **out_data, ff_flag consume);
#endif