Hey all,
so I am trying to decode an mjpeg file and have found that the file is built like this:
-> first 5 bytes are the number of bytes for the first image
-> 5 bytes (after the initial 5 + # for the first image) are the number fo bytes for the second image
-> and so on until the file is done
I am using NSData to load the file into an object, and used a range and subDataWithRange to create another NSData object which holds the size for the first picture. I'm stuck at how to convert that second NSData object into an int number that can be used to traverse the mjpeg file.
Any thoughts?
Dan
so I am trying to decode an mjpeg file and have found that the file is built like this:
-> first 5 bytes are the number of bytes for the first image
-> 5 bytes (after the initial 5 + # for the first image) are the number fo bytes for the second image
-> and so on until the file is done
I am using NSData to load the file into an object, and used a range and subDataWithRange to create another NSData object which holds the size for the first picture. I'm stuck at how to convert that second NSData object into an int number that can be used to traverse the mjpeg file.
Any thoughts?
Dan