默认的Camera iPhone应用程序如何保存照片如此快速? [英] How does the default Camera iPhone app manages to save a photo so fast?

查看:169
本文介绍了默认的Camera iPhone应用程序如何保存照片如此快速?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我已经设法创建一个应用程序的iPhone,需要多个图像,每个之间约3秒的间隔。我在一个单独的线程异步处理每个图像,一切是伟大的,直到它到了保存在iPhone磁盘上的图像的时刻。然后使用JPEG表示将图像保存到磁盘大约需要12秒。

So far I've managed to create an app for iPhone that takes multiple images with about a 3 second interval between each. I`m processing each image in a separate thread asynchronously and everything is great till it gets to the moment for saving the image on the iPhone disk. Then it takes about 12 seconds to save the image to the disk using JPEG representation.

苹果如何做到这一点,他们如何管理如此快速地保存单个图像磁盘有什么技巧,他们正在使用?我看到动画会分散用户一段时间,但仍然需要的时间低于12秒!

How does Apple do it, how do they manage to save a single image so fast to the disk is there a trick they are using? I saw that the animations distract the user for a while, but still the time needed is below 12 seconds!

提前感谢。

推荐答案

我没有尝试过,但我不会那么肯定,苹果不使用相同的方法。苹果设计理念的很大一部分依赖于隐藏来自用户的操作中断。苹果代码可能需要与你的一样多的时间,但只是简单地隐藏整个保存时间从用户的感觉。

I haven't tried this but I wouldn't be so sure that Apple isn't using the same methods. A big part of the Apple design philosophy relies on hiding operational interruptions from the user. The Apple code may take as much time as yours but simply be adroit at hiding the entire save time from the perception of the user.

如果有人不能告诉你苹果真的节省了更多的时间,我建议你考虑伪装节省时间的方法。

If someone can't tell you how Apple actually does save faster I would suggest looking at ways to disguise the save time.

这篇关于默认的Camera iPhone应用程序如何保存照片如此快速?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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