From 33f24fa184257572cd7924e2e7d0c256af102644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 28 Nov 2021 19:15:24 +0100 Subject: Update comments --- fastiv-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fastiv-io.c') diff --git a/fastiv-io.c b/fastiv-io.c index 90560fe..c40b589 100644 --- a/fastiv-io.c +++ b/fastiv-io.c @@ -272,8 +272,6 @@ load_wuffs_frame(struct load_wuffs_frame_context *ctx, GError **error) // Starting to modify pixel data directly. Probably an unnecessary call. cairo_surface_flush(surface); - // TODO(p): Composite/combine frames as intended. - // wuffs_base__image_config__first_frame_is_opaque() is problematic here. status = wuffs_base__image_decoder__decode_frame(ctx->dec, &pb, ctx->src, WUFFS_BASE__PIXEL_BLEND__SRC, ctx->workbuf, NULL); if (!wuffs_base__status__is_ok(&status)) { @@ -476,6 +474,8 @@ open_wuffs( // Wuffs maps tRNS to BGRA in `decoder.decode_trns?`, we should be fine. // wuffs_base__pixel_format__transparency() doesn't reflect the image file. + // TODO(p): See if wuffs_base__image_config__first_frame_is_opaque() causes + // issues with animations, and eventually ensure an alpha-capable format. bool opaque = wuffs_base__image_config__first_frame_is_opaque(&ctx.cfg); // Wuffs' API is kind of awful--we want to catch deep RGB and deep grey. -- cgit v1.2.3