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
fieldName | a field in structure |
targetNumerator | The numerator of the target value of the fixation |
targetDenominator | The denominator of the target value of the fixation |
Returns
true if the structure could be fixated