AVAnimator mvid转换 [英] AVAnimator mvid conversion
问题描述
是否无法直接在iOS中播放 apng
文件?
Is there no way to play an apng
file directly in iOS?
我试过 AVAnimator
,但其解决方案是转换 apng
文件到 mvid
然后逐帧播放然后减少文件存储空间,它会压缩 mvid
档案进入 7z
。
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
.
所以,我的问题是,
- 我对
AVAnimator
有什么意义吗? - 还有其他吗?解决方案除
AVAnimator
之外?
- Am I right about what
AVAnimator
does? - Is there any other solution apart from
AVAnimator
for this?
推荐答案
是的,这就是如何实现apng文件格式的解压缩,除了没有7z解压缩。解压缩来自.apng,与zlib压缩的.png格式基本相同。该压缩格式被解码为原始图像数据,然后逐帧显示动画。这是可以在移动客户端上实现的唯一方法。在iOS应用程序中没有其他方法可以播放apng,我在实现AVAnimator的APNG支持之前查看了所有可用的内容。
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.
这篇关于AVAnimator mvid转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!