iphone - Displaying a YUV formatted video stream in iOS -


I am writing an iOS application that receives live video streams from analog security cameras. I can get the video stream from our server application and decode it on the phone in its ownership format. Decoder leaves me with raw YUV (Y'CrCb technically) data I do not really know how to display this information (or even how) is the best way.

I have read that I should manually convert to RGB and show something like a UIImageView, but it seems quite possible that the video stream can be up to 30 fps, whenever the crooks

I have also read to use OpenGL with YUV information to create and display 2G textures. Unfortunately I do not know where it is being started with and I'm not sure that this is the direction that I want to chase.

So my question to all of you is: What is the best way to display this information on iOS device? Second, if there is some requirement like OpenGL, then anybody can suggest a good tutorial, book, code sampling or any other learning resource so that I can learn more about it.

Thanks in advance.

The best way to actually do GPU is to work. I know that it is possible with a shady program, but clearly I do not speak OpenGL, however, help can be there.

Comments