Is it possible to use CGDataProviderCreateSequential() and CGDataProviderSequentialCallbacks to read the data in from a CGImageRef sequentially?
Currently I use CGDataProviderCopyData to get the data but that reads in all the data at once and eats up too much memory:
CFDataRef dataref = CGDataProviderCopyData(CGImageGetDataProvider(imgRef));
Or is there any other way to sequentially read in the bytes of a cgimageref?