avifDecoderNextImage interface take a lot time · Issue #44 · SDWebImage/SDWebImageAVIFCoder · GitHub
Skip to content

avifDecoderNextImage interface take a lot time #44

Open

Description

截屏2022-11-01 16 53 49

Unit of time milliseconds
iphone x: avifDecoderNextImage: 397.489014--SDCreateCGImageFromAVIF: 1.329102
iphone 11 pro max: avifDecoderNextImage: 279.439941--SDCreateCGImageFromAVIF: 1.563965

Activity

  1. dreampiggy commented on Dec 16, 2022

    @dreampiggy
    Collaborator

    This avifDecoderNextImage seems used for AVIF animated image (really rare but supported).

    I think this need more information to test and increase performance. May need libavif's upstream help :)

  2. dreampiggy commented on May 16, 2023

    @dreampiggy
    Collaborator

    Known issue for animated AVIF. But we have no better way to avoid this.

    A possible way is like using the internal API of AOM like https://github.com/SDWebImage/SDWebImageWebPCoder

    Which calculate a latest reusable frame index and canvas without re-scan, but it's complicated and I have no free time to complete.

  3. dreampiggy commented on Sep 28, 2023

    @dreampiggy
    Collaborator

    You can have a try by different AVIF codec (for decoding)

    From v0.11.0, we support using SDImageCoderAVIFDecodeCodecChoice to chooce codec at runtime. You can install all 4 AVIF decoding codec and compare them one by one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions