GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

processImage(synchronously: false) doesn't callback with image

Open shizam opened this issue 4 years ago • 0 comments

Using the sample code from GPUImage2 for processImage() works if you provide synchronously: true but if its synchronously: false it will never call the callback:

let toonFilter = SmoothToonFilter()
let testImage = UIImage(named:"WID-small.jpg")!
let pictureInput = PictureInput(image:testImage)
let pictureOutput = PictureOutput()
pictureOutput.imageAvailableCallback = {image in
    // Do something with image
}
pictureInput --> toonFilter --> pictureOutput
pictureInput.processImage(synchronously: false) // <--- If set to `true` imageAvailableCallback is never called

shizam avatar Apr 30 '20 16:04 shizam