Skip to content

Instantly share code, notes, and snippets.

@dsowsy
Created October 28, 2015 18:00
Show Gist options
  • Select an option

  • Save dsowsy/6ea849a5995090880775 to your computer and use it in GitHub Desktop.

Select an option

Save dsowsy/6ea849a5995090880775 to your computer and use it in GitHub Desktop.
GPUImage Still image filter example in Swift
// Posted this example because I couldn't get the example from the GPUImage page working directly.
let stillImageSource = GPUImagePicture()
let stillImageFilter = GPUImageSepiaFilter()
stillImageSource.addTarget(stillImageFilter)
stillImageFilter.useNextFrameForImageCapture()
let destImage = stillImageFilter.imageByFilteringImage(srcImage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment