Methods Summary |
---|
public boolean | checkFormat(javax.media.Format format)
Dimension inSize = ((VideoFormat) format).getSize();
if (!inSize.equals(outputFormat.getSize()) ) {
videoResized();
}
return true;
|
protected javax.media.Format | getInputFormat()
return inputFormat;
|
protected javax.media.Format[] | getMatchingOutputFormats(javax.media.Format in)
return new Format[0];
|
public java.lang.String | getName()
return PLUGIN_NAME;
|
protected javax.media.Format | getOutputFormat()
return outputFormat;
|
public javax.media.Format[] | getSupportedInputFormats()
return supportedInputFormats;
|
public javax.media.Format[] | getSupportedOutputFormats(javax.media.Format in)
// null input format
if (in == null) {
return defaultOutputFormats;
}
// mismatch input format
if ( !(in instanceof VideoFormat ) ||
(matches(in,supportedInputFormats) == null) ) {
return new Format[0];
}
// match input format
return getMatchingOutputFormats(in);
|
public javax.media.Format | setInputFormat(javax.media.Format format)
if ( !(format instanceof VideoFormat) ||
(null == matches(format, supportedInputFormats)) )
return null;
inputFormat = (VideoFormat)format;
return format;
|
public javax.media.Format | setOutputFormat(javax.media.Format format)
// This methods assumes setInputFormat has already been called.
if ( !(format instanceof VideoFormat) ||
(null == matches(format, getMatchingOutputFormats(inputFormat))) )
return null;
outputFormat = (VideoFormat)format;
return format;
|
protected void | updateOutput(javax.media.Buffer outputBuffer, javax.media.Format format, int length, int offset)
outputBuffer.setFormat(format);
outputBuffer.setLength(length);
outputBuffer.setOffset(offset);
|
protected void | videoResized()
|