SLGPUImageOutput Class Reference

Inherits from NSObject
Declared in SLGPUImageOutput.h

Overview

SLGPUImage’s base source object

Images or frames of video are uploaded from source objects, which are subclasses of SLGPUImageOutput. These include:

Source objects upload still image frames to OpenGL ES as textures, then hand those textures off to the next objects in the processing chain.

Managing targets

– targets

Returns an array of the current targets.

- (NSArray *)targets

Declared In

SLGPUImageOutput.h

– addTarget:

Adds a target to receive notifications when new frames are available.

- (void)addTarget:(id<SLGPUImageInput>)newTarget

Parameters

newTarget

Target to be added

Discussion

The target will be asked for its next available texture.

See [SLGPUImageInput newFrameReadyAtTime:]

Declared In

SLGPUImageOutput.h

– addTarget:atTextureLocation:

Adds a target to receive notifications when new frames are available.

- (void)addTarget:(id<SLGPUImageInput>)newTarget atTextureLocation:(NSInteger)textureLocation

Parameters

newTarget

Target to be added

Discussion

See [SLGPUImageInput newFrameReadyAtTime:]

Declared In

SLGPUImageOutput.h

– removeTarget:

Removes a target. The target will no longer receive notifications when new frames are available.

- (void)removeTarget:(id<SLGPUImageInput>)targetToRemove

Parameters

targetToRemove

Target to be removed

Declared In

SLGPUImageOutput.h

– removeAllTargets

Removes all targets.

- (void)removeAllTargets

Declared In

SLGPUImageOutput.h