Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
233 views
in Technique[技术] by (71.8m points)

ios - AVAnimator mvid conversion

Is there no way to play an apng file directly in iOS?

I tried AVAnimator, but its solution is to convert the apng file to mvid and then play it frame-by-frame and then to reduce file storage space, it would compress the mvid file into 7z.

So, my question is,

  1. Am I right about what AVAnimator does?
  2. Is there any other solution apart from AVAnimator for this?
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, that is how decompression of the apng file format is implemented, except that there is no 7z decompression. Decompression is from .apng which is basically the same format as .png with zlib compression. That compressed format is decoded to raw image data and then the animation is displayed frame by frame. This is the only way it can be implemented on a mobile client. There is no other solution for playback of apng in an iOS app, I looked at everything that was available before I implemented AVAnimator's APNG support.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...