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

AOExtInspector

Inspect a file extension

Synopsis:

static AOExtInspector media_filter =
{
    RateExtension
};

Description:

This interface defines the functionality required to determine if an inspector's filter can process data from or to a file stream with the given extension. It defines a single function:

RateExtension()

int32_t (*RateExtension)(const char *extension);

This function should return a rating, from 0 to 100, of how sure you are that the filter can process data in a file with the extension, where 100 is the best rating. You can use this function 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:

AoFormatInspector, AoMimetypeInspector, AoStreamInspector

Extending the Multimedia Framework.