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