aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-28 19:15:24 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-28 19:15:38 +0100
commit33f24fa184257572cd7924e2e7d0c256af102644 (patch)
treea7c8ed790f3d3349ca912d9be1d5708b264199ee
parent6fc5d7a3d7028c69c2d278f224f04831bbb83edb (diff)
downloadfiv-33f24fa184257572cd7924e2e7d0c256af102644.tar.gz
fiv-33f24fa184257572cd7924e2e7d0c256af102644.tar.xz
fiv-33f24fa184257572cd7924e2e7d0c256af102644.zip
Update comments
-rw-r--r--fastiv-io.c4
1 files changed, 2 insertions, 2 deletions
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.