简体   繁体   中英

Frame Animation in iPad

I wana create an animation like a movie in iPad. I have 1500 frames each frame has 640*480 width n height. I am confused about whats the best way to do it without any memory/performance issue.

I don't wana do it in openGL, more interested in Quartz.

One frame of 640x480 pixels will be 640x480x4 bytes = 1200 kilobytes. You have 1500 frames, so times 1500 = 1.7 gigabytes. That obviously will not fit in memory.

The alternative, if each frame differs only slightly from the previous one, is to store the differences between the frames. I'm not aware of any existing libraries for this. I would like to have something like that myself. ;-)

If the differences between the frames are big, then you're better off encoding it as an actual movie (MP4) and playing that back. Unfortunately, that means you have to deal with the horrible MPMoviePlayerController or going a little more low-level using AV Foundation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM