iOS png压缩对翻书动画很有意义 [英] iOS png compression that makes sense for a flipbook animation

查看:100
本文介绍了iOS png压缩对翻书动画很有意义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个视频,需要以可变速度播放iPhone应用程序.但是您只能在.5X-2X左右之间更改视频播放速度.我们需要更多的控制权.

We have a video we need to play at variable speeds for an iPhone app. But you're only able to change the video playback speed between .5X-2X or so. We needed more control than that.

相反,我们将视频分成了一系列连续的PNG,然后在计时器上翻阅".

Instead we broke our videos into a consecutive series of PNG's that we "flip through" on a timer.

所有这些PNG的大小使该应用难以通过电线下载.在尊重iPhone自己的内置压缩例程的同时,如何最好地使用这种活页夹方法?我们如何才能避免这种方法带来的空间和内存损失,尤其是在较旧的iOS设备上?

The size of all these PNG's is making the app unwieldy to download over the wire. How can I best use this flipbook approach while being smart about respecting the iPhones own built-in compression routines? How can we avoid both space and memory hits from this approach, especially on older iOS devices?

目前,该应用程序太大,将近50 MB.在启动过程中,还需要一些时间来获取所有图像并将其放入NSMutableArray中.

Right now, the app is too large at almost 50 MB. It also takes a bit of time during startup to grab all the images and put it in an NSMutableArray.

推荐答案

我最终改用了jpg.

这篇关于iOS png压缩对翻书动画很有意义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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