This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Rate a format
static AOFormatInspector media_filter = { RateFormat };
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:
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.
As a guideline, multimedia rating functions in existing addons return 80 when they can process data. |
Neutrino
AoExtInspector, AoMimetypeInspector, AoStreamInspector
Extending the Multimedia Framework.