I get this warning Tried to overrelease a framebuffer and a black/blank image when trying to apply a filter to an image, this issue only appears on a real device (iPhone 6s) but not a the simulator (The average image size is approx 2-3MB). Is there something I'm doing wrong below.
func applyFilterOnMainImage(){
let toonFilter = SmoothToonFilter()
let pictureInput = PictureInput(image: defaultImg)
let pictureOutput = PictureOutput()
pictureOutput.imageAvailableCallback = {image in
print("Process completed")
self.mainImage.image = image
}
pictureInput --> toonFilter --> pictureOutput
pictureInput.processImage(synchronously:false)
collectionView.reloadData()
}
This warning is not present when I using a RenderView but I was wondering if there was a way to remove the black background which is present after the image is applied to the RenderView
I get this warning
Tried to overrelease a framebufferand a black/blank image when trying to apply a filter to an image, this issue only appears on a real device (iPhone 6s) but not a the simulator (The average image size is approx 2-3MB). Is there something I'm doing wrong below.This warning is not present when I using a
RenderViewbut I was wondering if there was a way to remove the black background which is present after the image is applied to theRenderView