|
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.converter.CodecChain
public class CodecChain
CodecChain.
| Field Summary |
|---|
| Fields inherited from interface org.monte.media.Codec |
|---|
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED |
| Constructor Summary | |
|---|---|
CodecChain(Codec first,
Codec second)
|
|
| Method Summary | |
|---|---|
static Codec |
createCodecChain(Codec... codecs)
|
static Codec |
createCodecChain(java.util.List<Codec> codecs)
|
long |
getElapsedTime()
|
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. |
int |
process(Buffer in,
Buffer out)
Performs the media processing defined by this codec. |
java.lang.String |
reportElapsedTime()
|
void |
reset()
Resets the state of the codec. |
Format |
setInputFormat(Format input)
Sets the input format. |
Format |
setOutputFormat(Format output)
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 |
| Constructor Detail |
|---|
public CodecChain(Codec first,
Codec second)
| Method Detail |
|---|
public static Codec createCodecChain(java.util.List<Codec> codecs)
public static Codec createCodecChain(Codec... codecs)
public Format[] getInputFormats()
Codec
getInputFormats in interface Codecpublic Format[] getOutputFormats(Format input)
Codec
getOutputFormats in interface Codecpublic Format setInputFormat(Format input)
Codec
setInputFormat in interface Codecpublic Format getInputFormat()
getInputFormat in interface Codecpublic Format setOutputFormat(Format output)
Codec
setOutputFormat in interface Codecpublic Format getOutputFormat()
getOutputFormat in interface Codec
public int process(Buffer in,
Buffer out)
CodecCopies the data from the input buffer into the output buffer.
process in interface Codecpublic java.lang.String getName()
Codec
getName in interface Codecpublic void reset()
Codec
reset in interface Codecpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getElapsedTime()
public java.lang.String reportElapsedTime()
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||