From 18e96d8c9dd6b0346514121facf8137f13ccd6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 26 Nov 2021 20:54:08 +0100 Subject: Allow frame iteration in both directions --- fastiv-io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fastiv-io.h') diff --git a/fastiv-io.h b/fastiv-io.h index 7bce925..20fa4f6 100644 --- a/fastiv-io.h +++ b/fastiv-io.h @@ -37,6 +37,10 @@ extern cairo_user_data_key_t fastiv_io_key_icc; /// The next frame in a sequence, as a surface, in a chain, pre-composited. /// There is no wrap-around. extern cairo_user_data_key_t fastiv_io_key_frame_next; +/// The previous frame in a sequence, as a surface, in a chain, pre-composited. +/// This is a weak pointer that wraps around, and needn't be present +/// for static images. +extern cairo_user_data_key_t fastiv_io_key_frame_previous; /// Frame duration in milliseconds as an intptr_t. extern cairo_user_data_key_t fastiv_io_key_frame_duration; /// How many times to repeat the animation, or zero for +inf, as a uintptr_t. -- cgit v1.2.3