Skip to content

malt03/DebugMenuGPUImageDumper

Repository files navigation

DebugMenuGPUImageDumper

Platform Language CocoaPods License

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Output Example

<GPUImageVideoCamera: 0x156570ff0>
└<GPUImageToonFilter: 0x156645c00>
 └<GPUImageMonochromeFilter: 0x156646370>
  └<GPUImageView: 0x156584ee0; frame = (0 0; 375 667); autoresize = W+H; layer = <CAEAGLLayer: 0x156585130>>

Usage

Initialize

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  DebugHead.sharedInstance.prepare(menuClasses: [DebugMenuGPUImageDumper.self])
  return true
}

Initialize root GPUImage instance

GPUImageDumper.sharedInstance.appendRootInstance(videoCamera)

or

class MyGPUImageVideoCamera: GPUImageVideoCamera {
  override init() {
    super.init()
    GPUImageDumper.sharedInstance.appendRootInstance(self)
  }
}

Installation

DebugMenuGPUImageDumper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DebugMenuGPUImageDumper"

Author

Koji Murata, malt.koji@gmail.com

License

DebugMenuGPUImageDumper is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published