Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

AOMimetypeInspector

Rate a MIME type

Synopsis:

static AOMimetypeInspector media_filter =
{
    RateMimetype
};

Description:

This interface defines the functions required to determine if an filter can process data from a stream with the given mimetype. It defines a single function:

RateMimetype()

int32_t (*RateMimetype)(const char *mimetype);

This function should return a rating, from 0 to 100, of how sure you are that your addon can process data with the given mimetype. You can use RateMimetype() before you create a handle for a filter.


Note: As a guideline, multimedia rating functions in existing addons return 80 when they can process data.

Classification:

Neutrino

See also:

AoExtInspector, AoFormatInspector, AoStreamInspector

Extending the Multimedia Framework.