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

AOFormatInspector

Rate a format

Synopsis:

static AOFormatInspector media_filter =
{
    RateFormat
};

Description:

This interface defines the functions required to determine if a given format can be processed with this inspector's addon. It defines a single function:

RateFormat()

int32_t (*RateFormat)(const AODataFormat_t *format);

This function should return a rating, from 0 to 100, of how sure the addon is that it can process data of the given format, 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:

AoExtInspector, AoMimetypeInspector, AoStreamInspector

Extending the Multimedia Framework.