Class MediaFilter

    • Constructor Detail

      • MediaFilter

        public MediaFilter()
    • Method Detail

      • preProcessBitstream

        public boolean preProcessBitstream​(Context c,
                                           Item item,
                                           Bitstream source,
                                           boolean verbose)
                                    throws Exception
        Perform any pre-processing of the source bitstream *before* the actual filtering takes place in MediaFilterManager.processBitstream().

        Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for any reason.

        Specified by:
        preProcessBitstream in interface FormatFilter
        Parameters:
        c - context
        item - item containing bitstream to process
        source - source bitstream to be processed
        verbose - verbose mode
        Returns:
        true if bitstream processing should continue, false if this bitstream should be skipped
        Throws:
        Exception - if error
      • postProcessBitstream

        public void postProcessBitstream​(Context c,
                                         Item item,
                                         Bitstream generatedBitstream)
                                  throws Exception
        Perform any post-processing of the generated bitstream *after* this filter has already been run.

        Return true if pre-processing is successful (or no pre-processing is necessary). Return false if bitstream should be skipped for some reason.

        Specified by:
        postProcessBitstream in interface FormatFilter
        Parameters:
        c - context
        item - item containing bitstream to process
        generatedBitstream - the bitstream which was generated by this filter.
        Throws:
        Exception - if error