net.jinx.video
Interface FrameProcessor

All Known Implementing Classes:
ImageSaver, MotionBlurProcessor, ScreenShotProcessor

public interface FrameProcessor

FrameProcessor provides a way to process the final image produced by SplitScreenRenderer or a View in some manner, either running it through a filter or simply making a copy of the image on disk.

API Stability: Stable.


Method Summary
 void deinit(Context opt)
          Deinitializes this FrameProcessor.
 void init(Context opt)
          Initializes this FrameProcessor.
 void process(Context context, java.awt.Rectangle viewport)
          Processes the current image in the frame buffer.
 

Method Detail

init

void init(Context opt)
Initializes this FrameProcessor.

Parameters:
opt - the Context object providing data on how rendering should proceed.

process

void process(Context context,
             java.awt.Rectangle viewport)
Processes the current image in the frame buffer.

Parameters:
context - the Context object to use for rendering.
viewport - a Rectangle describing the current bounds for rendering. If this FrameProcessor is attached to a View, this will be the view's viewport. If this FrameProcessor is attached to a SplitScreenRenderer, then viewport will represent the entire drawing area for the renderer.

deinit

void deinit(Context opt)
Deinitializes this FrameProcessor.

Parameters:
opt - the Context object providing data on how rendering should proceed.