Hi,
I am currently using a UIImageView to display a UIImage in which I stored home-made jpeg images.
Those image are computed at a quite fast rate (> 25/second), but UIImageView does not match the frame rate I expected (Actually, it is closer to 10 fps), whatever compression feature I use, and ever if I choose another image format (tried with PNG).
Then, I decided to try it another way, using the image data as an OpenGLES 2D texture : I already managed to do so with raw image files, and it was really faster than an UIImageView (I did not mesurate, but I can assume I was over 25 FPS) with the same dimensions images.
You could ask thus why I don't keep using raw images instead of JPEG files : it's because my current home-made images are JPEG-born. I can't change this.
Now, I am trying to find a way to convert my initial JPEG image (stored in a NSData object) to raw data (data only, without header), so that I can use them for my OpenGLES texture.
I know there was a way to do it, which was described here . But now, some of these functions are deprecated, and I can't find a way to have it work.
I am thus still wondering if there is a "nice" and especially fast way to convert any JPEG image to a raw representation. I know a few librairies that do such, but none of them were designed to be compiled on the iPhone OS.
If any of you have any idea about this, I'd take great attention about your answer.
Thanks for reading until the end
I am currently using a UIImageView to display a UIImage in which I stored home-made jpeg images.
Those image are computed at a quite fast rate (> 25/second), but UIImageView does not match the frame rate I expected (Actually, it is closer to 10 fps), whatever compression feature I use, and ever if I choose another image format (tried with PNG).
Then, I decided to try it another way, using the image data as an OpenGLES 2D texture : I already managed to do so with raw image files, and it was really faster than an UIImageView (I did not mesurate, but I can assume I was over 25 FPS) with the same dimensions images.
You could ask thus why I don't keep using raw images instead of JPEG files : it's because my current home-made images are JPEG-born. I can't change this.
Now, I am trying to find a way to convert my initial JPEG image (stored in a NSData object) to raw data (data only, without header), so that I can use them for my OpenGLES texture.
I know there was a way to do it, which was described here . But now, some of these functions are deprecated, and I can't find a way to have it work.
I am thus still wondering if there is a "nice" and especially fast way to convert any JPEG image to a raw representation. I know a few librairies that do such, but none of them were designed to be compiled on the iPhone OS.
If any of you have any idea about this, I'd take great attention about your answer.
Thanks for reading until the end