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(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() |
public Format[] getInputFormats()
Codec
getInputFormats
in interface Codec
public Format[] getOutputFormats(Format input)
Codec
getOutputFormats
in interface Codec
public Format setInputFormat(Format input)
Codec
setInputFormat
in interface Codec
public Format getInputFormat()
getInputFormat
in interface Codec
public Format setOutputFormat(Format output)
Codec
setOutputFormat
in interface Codec
public Format getOutputFormat()
getOutputFormat
in interface Codec
public int process(Buffer in, Buffer out)
Codec
Copies the data from the input buffer into the output buffer.
public java.lang.String getName()
Codec
public void reset()
Codec
public java.lang.String toString()
toString
in class java.lang.Object
public long getElapsedTime()
public java.lang.String reportElapsedTime()