I have an application where we want the user to either be able to run it using the camera on their phone (and feed the camera bytes into our library) or to use a jpeg sequence and feed those images in instead. We are planning on shipping with a few different image sequences, which will be packaged up into the assets folder on the device. Our API supports loading images either as a file path, or as the actual bytes of the image.
What is the best way to go about feeding in the jpeg images?
As I see it, I have two choices:
Thanks for your help.
Ended up using approach #2, which seemed to be ok in the end.