CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED| Constructor and Description |
|---|
CodecChain(Codec first,
Codec second) |
| Modifier and Type | Method and Description |
|---|---|
static Codec |
createCodecChain(Codec... codecs) |
static Codec |
createCodecChain(List<Codec> codecs) |
long |
getElapsedTime() |
Format |
getInputFormat() |
Format[] |
getInputFormats()
Lists all of the input formats that this codec accepts.
|
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.
|
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.
|
String |
toString() |
public Format[] getInputFormats()
CodecgetInputFormats in interface Codecpublic Format[] getOutputFormats(Format input)
CodecgetOutputFormats in interface Codecpublic Format setInputFormat(Format input)
CodecsetInputFormat in interface Codecpublic Format getInputFormat()
getInputFormat in interface Codecpublic Format setOutputFormat(Format output)
CodecsetOutputFormat in interface Codecpublic Format getOutputFormat()
getOutputFormat in interface Codecpublic int process(Buffer in, Buffer out)
CodecCopies the data from the input buffer into the output buffer.
public String getName()
Codecpublic void reset()
Codecpublic long getElapsedTime()
public String reportElapsedTime()
Copyright © 2014. All Rights Reserved.