public class TrimTimeCodec extends AbstractCodec
PassThroughCodec
passes through all buffers in the specified time
range.inputFormat, inputFormats, name, outputFormat, outputFormats
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED
Constructor and Description |
---|
TrimTimeCodec() |
Modifier and Type | Method and Description |
---|---|
Rational |
getEndTime() |
Rational |
getStartTime() |
int |
process(Buffer in,
Buffer out)
Performs the media processing defined by this codec.
|
void |
setEndTime(Rational newValue)
Sets the end time of the buffers.
|
Format |
setInputFormat(Format f)
Sets the input format.
|
void |
setStartTime(Rational newValue)
Sets the start time of the buffers.
|
getInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setOutputFormat, toString
public void setStartTime(Rational newValue)
newValue
- Start time. Specify null, to pass through all buffers.public Rational getStartTime()
public Rational getEndTime()
public void setEndTime(Rational newValue)
newValue
- Start time. Specify null, to pass through all buffers.public Format setInputFormat(Format f)
Codec
setInputFormat
in interface Codec
setInputFormat
in class AbstractCodec