public abstract class MediaFilter extends Object implements FormatFilter
| Constructor and Description |
|---|
MediaFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessBitstream(Context c,
Item item,
Bitstream generatedBitstream)
Perform any post-processing of the generated bitstream *after* this
filter has already been run.
|
boolean |
preProcessBitstream(Context c,
Item item,
Bitstream source,
boolean verbose)
Perform any pre-processing of the source bitstream *before* the actual
filtering takes place in MediaFilterManager.processBitstream().
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBundleName, getDescription, getDestinationStream, getFilteredName, getFormatStringpublic boolean preProcessBitstream(Context c, Item item, Bitstream source, boolean verbose) throws Exception
Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.
preProcessBitstream in interface FormatFilterc - contextitem - item containing bitstream to processsource - source bitstream to be processedverbose - verbose modeException - if errorpublic void postProcessBitstream(Context c, Item item, Bitstream generatedBitstream) throws Exception
Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for some reason.
postProcessBitstream in interface FormatFilterc - contextitem - item containing bitstream to processgeneratedBitstream - the bitstream which was generated by
this filter.ExceptionCopyright © 2017 DuraSpace. All rights reserved.