RateFormat()

Updated: April 19, 2023

Synopsis:

#include <aoi.h>

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

Arguments:

format
A pointer to an AODataFormat_t structure that defines the media format you want to rate.

Description:

This function should return a rating as to how well the addon can handle the given media format. Usually this function checks the media type and four-character code (fourcc). If it has more stringent requirements, it checks the AODataFormat_t structure's corresponding union members.

Returns:

A rating from 0 to 100 for the given media format. 100 is best rating.