I'm encoding a single generated image on a PC to H.264, sending it over the network to the iPad and I want to decode it. The cycle on the iPad side will be:
- Grab frame from network
- Decode it.
- Display it.
However, I can't find an API that given a single buffer of a encoded frame, I can decode to the original image. I want to take advantage of the hardware decoding on the iPad.
My plan of last resort is to create a memory-mapped file, write that single frame to that file and use that file as input into MPMoviePlayerController. This is a really hacky solution.
Could anybody suggest how I can take a encoded in-memory buffer and decode it using hardware to another in-memory buffer?
Thanks