Class TSCCCodec
java.lang.Object
org.monte.media.jmf.codec.AbstractCodec
org.monte.media.jmf.codec.video.AbstractVideoDecoder
org.monte.media.jmf.codec.video.TSCCCodec
- All Implemented Interfaces:
javax.media.Codec,javax.media.Controls,javax.media.PlugIn
JMF Codec for the TechSmith Screen-Capture format.
This codec can decode24 and encode the format to/from a JMF RGBFormat
or a IndexedColorFormat.
See TechSmithCodecCore for a description of the format.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intRGB bit masksprotected static final intprotected static final intFields inherited from class org.monte.media.jmf.codec.video.AbstractVideoDecoder
defaultOutputFormats, inputFormat, outputFormat, supportedInputFormatsFields inherited from class org.monte.media.jmf.codec.AbstractCodec
controls, pluginNameFields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidcopyMetaTo(javax.media.Buffer in, javax.media.Buffer out) Copies all meta-data field from in to out.protected intdecode(javax.media.Buffer in, javax.media.Buffer out) protected intencode(javax.media.Buffer in, javax.media.Buffer out) protected javax.media.Format[]getMatchingOutputFormats(javax.media.Format input) voidopen()intprocess(javax.media.Buffer input, javax.media.Buffer output) static voidRegisters this codec with the JMF PluginManager.voidreset()Methods inherited from class org.monte.media.jmf.codec.video.AbstractVideoDecoder
getInputFormat, getOutputFormat, getSupportedInputFormats, getSupportedOutputFormats, setInputFormat, setOutputFormatMethods inherited from class org.monte.media.jmf.codec.AbstractCodec
getControl, getControls, getName, isSet, setFlag
-
Field Details
-
bMask
protected static final int bMaskRGB bit masks- See Also:
-
gMask
protected static final int gMask- See Also:
-
rMask
protected static final int rMask- See Also:
-
-
Constructor Details
-
TSCCCodec
public TSCCCodec()
-
-
Method Details
-
getMatchingOutputFormats
protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format input) - Specified by:
getMatchingOutputFormatsin classAbstractVideoDecoder
-
reset
public void reset()- Specified by:
resetin interfacejavax.media.PlugIn- Overrides:
resetin classAbstractCodec
-
process
public int process(javax.media.Buffer input, javax.media.Buffer output) -
copyMetaTo
protected void copyMetaTo(javax.media.Buffer in, javax.media.Buffer out) Copies all meta-data field from in to out. -
encode
protected int encode(javax.media.Buffer in, javax.media.Buffer out) -
decode
protected int decode(javax.media.Buffer in, javax.media.Buffer out) -
close
public void close()- Specified by:
closein interfacejavax.media.PlugIn- Overrides:
closein classAbstractCodec
-
open
public void open() throws javax.media.ResourceUnavailableException- Specified by:
openin interfacejavax.media.PlugIn- Overrides:
openin classAbstractCodec- Throws:
javax.media.ResourceUnavailableException
-
registerWithJMF
public static void registerWithJMF()Registers this codec with the JMF PluginManager.
-