j2d.video.flv.impl
Class Capturer

java.lang.Object
  extended by j2d.video.flv.impl.Capturer
All Implemented Interfaces:
Capture

public class Capturer
extends java.lang.Object
implements Capture


Constructor Summary
Capturer(java.io.OutputStream os, java.awt.Dimension caputreSize)
           
 
Method Summary
 java.awt.image.BufferedImage newFrame()
          Creates new frame optimized for this capturer
 void writeFrame(java.awt.image.BufferedImage image, int timestamp)
          Writes Image to capture stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Capturer

public Capturer(java.io.OutputStream os,
                java.awt.Dimension caputreSize)
         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

newFrame

public java.awt.image.BufferedImage newFrame()
Description copied from interface: Capture
Creates new frame optimized for this capturer

Specified by:
newFrame in interface Capture
Returns:
BufferedImage that can be written to, optimized for this capturer

writeFrame

public void writeFrame(java.awt.image.BufferedImage image,
                       int timestamp)
                throws java.io.IOException
Description copied from interface: Capture
Writes Image to capture stream

Specified by:
writeFrame in interface Capture
Parameters:
image - Image to write
timestamp - Time stamp in milliseconds
Throws:
java.io.IOException