Posts

Post not yet marked as solved
0 Replies
1k Views
When I tried to create CGContext from CVImageBuffer with below code CGContext(data: CVPixelBufferGetBaseAddress(pixelBuffer), width: width, height: height, bitsPerComponent: 8, bytesPerRow: CVPixelBufferGetBytesPerRow(pixelBuffer), space: CGColorSpaceCreateDeviceRGB(), bitmapInfo: CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedFirst.rawValue).union(.byteOrder32Little).rawValue) CGContext is nil with below Error CGBitmapContextCreate: invalid data bytes/row: should be at least 8640 for 8 integer bits/component, 3 components, kCGImageAlphaPremultipliedFirst. Note: This happens only with specific image buffer size like 4k, etc. And 1080p and 720p works fine. Appreciate your help in advance!
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.2k Views
My recording was stopped due to low battery and phone shutdown. When I reopen my app, the recorded ".mov video"(around 8GB) file is not moving/copying to PHPhotoLibrary and it shows internalError which is hard to understand the exact reason for denying to add the video file to PHPhotoLibrary. Error Domain=PHPhotosErrorDomain Code=-1 \"(null)\") So How to resolve such kind of internalError while adding assets to PHPhotoLibrary? Thanks & Regards, Natarajan S
Posted Last updated
.
Post not yet marked as solved
0 Replies
1k Views
How to delete the PHAsset from device permanently to get more space on device immediately? I could only find the following API to delete PHAsset from the Photos app which is moving the assets to "Recently Deleted" album which is still holding memory on the device, PHAssetChangeRequest.deleteAssets((assets as NSArray)) Is there a solution to delete assets (programmatically) from the Photos app permanently?
Posted Last updated
.