AVAnimator mvid转换 [英] AVAnimator mvid conversion

查看:150
本文介绍了AVAnimator mvid转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否无法直接在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.

所以,我的问题是,


  1. 我对 AVAnimator 有什么意义吗?

  2. 还有其他吗?解决方案除 AVAnimator 之外?

  1. Am I right about what AVAnimator does?
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆