vision
Class FrameAccess.PreAccessCodec

java.lang.Object
  |
  +--vision.FrameAccess.PreAccessCodec
All Implemented Interfaces:
javax.media.Codec, javax.media.Controls, javax.media.PlugIn
Direct Known Subclasses:
FrameAccess.PostAccessCodec
Enclosing class:
FrameAccess

public class FrameAccess.PreAccessCodec
extends java.lang.Object
implements javax.media.Codec

Inner class. A pass-through codec to access to individual frames.


Field Summary
(package private)  javax.media.Format input
           
(package private)  javax.media.Format output
           
protected  javax.media.Format[] supportedIns
          The code for a pass through codec.
protected  javax.media.Format[] supportedOuts
           
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
FrameAccess.PreAccessCodec()
           
 
Method Summary
(package private)  void accessFrame(javax.media.Buffer frame)
          Callback to access individual video frames.
 void close()
           
 java.lang.Object getControl(java.lang.String type)
           
 java.lang.Object[] getControls()
           
 java.lang.String getName()
           
 javax.media.Format[] getSupportedInputFormats()
           
 javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
           
 void open()
           
 int process(javax.media.Buffer in, javax.media.Buffer out)
           
 void reset()
           
 javax.media.Format setInputFormat(javax.media.Format format)
           
 javax.media.Format setOutputFormat(javax.media.Format format)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

supportedIns

protected javax.media.Format[] supportedIns
The code for a pass through codec.

supportedOuts

protected javax.media.Format[] supportedOuts

input

javax.media.Format input

output

javax.media.Format output
Constructor Detail

FrameAccess.PreAccessCodec

public FrameAccess.PreAccessCodec()
Method Detail

accessFrame

void accessFrame(javax.media.Buffer frame)
Callback to access individual video frames.

getName

public java.lang.String getName()
Specified by:
getName in interface javax.media.PlugIn

open

public void open()
Specified by:
open in interface javax.media.PlugIn

close

public void close()
Specified by:
close in interface javax.media.PlugIn

reset

public void reset()
Specified by:
reset in interface javax.media.PlugIn

getSupportedInputFormats

public javax.media.Format[] getSupportedInputFormats()
Specified by:
getSupportedInputFormats in interface javax.media.Codec

getSupportedOutputFormats

public javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
Specified by:
getSupportedOutputFormats in interface javax.media.Codec

setInputFormat

public javax.media.Format setInputFormat(javax.media.Format format)
Specified by:
setInputFormat in interface javax.media.Codec

setOutputFormat

public javax.media.Format setOutputFormat(javax.media.Format format)
Specified by:
setOutputFormat in interface javax.media.Codec

process

public int process(javax.media.Buffer in,
                   javax.media.Buffer out)
Specified by:
process in interface javax.media.Codec

getControls

public java.lang.Object[] getControls()
Specified by:
getControls in interface javax.media.Controls

getControl

public java.lang.Object getControl(java.lang.String type)
Specified by:
getControl in interface javax.media.Controls