i always get: CGImageCreate: invalid image size: 0 x 0.
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
imageFromSampleBuffer comes directly from apple:
UIImage* imageFromSampleBuffer(CMSampleBufferRef nextBuffer) { CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(nextBuffer); printf("total size:%u\n",CMSampleBufferGetTotalSampleSize(nextBuffer));
I am trying to get the length and width, basically it will print the size of the fetch buffer, knowing that the buffer itself is not flimsy, but I am not getting UIImage
source share