Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GIF image decoder and animation #40

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Commits on Sep 11, 2024

  1. Extend twin_pixmap_t to Support gif animation

    To enable support for GIF animations, I have extended the twin_pixmap_t
    structure. The twin_pixmap_t now includes a new pointer to the new
    twin_animation_t structure, which manages multiple frames and their
    timing information for animated image.
    
    To manipulate twin_animation_t, the following APIs have been added.
    - twin_animation_get_current_delay : Retrieves the display duration of
    the current frame.
    - twin_animation_get_current_frame : Obtains the current frame for
    display.
    - twin_animation_advance_frame : Advances the animation to the next
    frame. If the animation is looping, it will return to the first frame
    after the last one.
    - twin_animation_destroy : Frees the memory allocated for the animation,
    including all associated frames.
    
    To show the new features, a demo application has been developed. This
    application supports both animated images and static images, and serves
    as a practical example of how to utilize the new animation capabilities.
    ndsl7109256 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    241ecd1 View commit details
    Browse the repository at this point in the history