最好的方式来显示图像序列作为电影在Adobe AIR [英] Best way to show image sequence as a movie in Adobe AIR
问题描述
我需要显示的图像序列作为电影的Adobe AIR应用程序 - 即把大量的图片作为视频帧,并显示结果。现在我要试着简单地加载它们,并显示在一个影片剪辑,但是这可能是太慢。任何先进的理念如何使它发挥作用?图像位于硬盘驱动器还是挺快的网络共享上,所以带宽应该够了。可以有成千上万的人,所以preloading一切记忆似乎并不可行。
I need to show an image sequence as a movie in an Adobe AIR application - i.e. treat lots of images as video frames and show the result. For now I am going to try simply loading them and displaying in a movie clip but this might be too slow. Any advanced ideas how to make it work? Images are located on a hard drive or very fast network share, so the bandwidth should be enough. There can be thousands of them, so preloading everything to memory doesn't seem feasible.
Adobe AIR的不是100%确定,我愿意接受其他的想法如何创建用于此目的的速度不够快一个跨平台的桌面应用程序。
Adobe AIR is not 100% decided, I am open to other ideas how to create a cross-platform desktop application for this purpose quickly enough.
推荐答案
在情况下,图像并不大,但是你有很多人也可以是有趣的单位图组序列(点菜的纹理映射)。这样你就可以在比如说加载,含有比如说,50个图像形成2秒视频播放,25 fps的一个位图。
In case the images aren't big but you have a lots of them it can be interesting to group sequences on single bitmaps (à la mipmap). This way you can load in say, one bitmap containing say, 50 images forming 2 seconds of video playback at 25 fps.
这是因为要限制坪和握手造成缓慢的量的方法是特别有用的在线,但我认为它也可以以优化装卸和内存访问是有益的。
This is method is specially useful online as you want to limit the amount of pings and handshakes causing slowness but I reckon it can also be useful in order to optimize loading, unloading and memory access.
这篇关于最好的方式来显示图像序列作为电影在Adobe AIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!