|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.AbstractCodec
public abstract class AbstractCodec
AbstractCodec.
| Field Summary | |
|---|---|
protected Format |
inputFormat
|
protected Format[] |
inputFormats
|
protected java.lang.String |
name
|
protected Format |
outputFormat
|
protected Format[] |
outputFormats
|
| Fields inherited from interface org.monte.media.Codec |
|---|
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED |
| Constructor Summary | |
|---|---|
AbstractCodec(Format[] supportedInputOutputFormats)
|
|
AbstractCodec(Format[] supportedInputFormats,
Format[] supportedOutputFormats)
|
|
| Method Summary | |
|---|---|
Format |
getInputFormat()
|
Format[] |
getInputFormats()
Lists all of the input formats that this codec accepts. |
java.lang.String |
getName()
Returns a human readable name of the codec. |
Format |
getOutputFormat()
|
Format[] |
getOutputFormats(Format input)
Lists all of the output formats that this codec can generate with the provided input format. |
void |
reset()
Empty implementation of the reset method. |
Format |
setInputFormat(Format f)
Sets the input format. |
Format |
setOutputFormat(Format f)
Sets the output format. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.monte.media.Codec |
|---|
process |
| Field Detail |
|---|
protected Format[] inputFormats
protected Format[] outputFormats
protected Format inputFormat
protected Format outputFormat
protected java.lang.String name
| Constructor Detail |
|---|
public AbstractCodec(Format[] supportedInputFormats,
Format[] supportedOutputFormats)
public AbstractCodec(Format[] supportedInputOutputFormats)
| Method Detail |
|---|
public Format[] getInputFormats()
Codec
getInputFormats in interface Codecpublic Format[] getOutputFormats(Format input)
Codec
getOutputFormats in interface Codecpublic Format setInputFormat(Format f)
Codec
setInputFormat in interface Codecpublic Format setOutputFormat(Format f)
Codec
setOutputFormat in interface Codecpublic Format getInputFormat()
getInputFormat in interface Codecpublic Format getOutputFormat()
getOutputFormat in interface Codecpublic java.lang.String getName()
Codec
getName in interface Codecpublic void reset()
reset in interface Codecpublic java.lang.String toString()
toString in class java.lang.Object
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||