Structure.fixateFieldNearestFraction

bool fixateFieldNearestFraction(string fieldName, int targetNumerator, int targetDenominator)

Fixates a #GstStructure by changing the given field to the nearest fraction to target_numerator/target_denominator that is a subset of the existing field.

Parameters

fieldNamea field in structure
targetNumeratorThe numerator of the target value of the fixation
targetDenominatorThe denominator of the target value of the fixation

Returns

true if the structure could be fixated