Structure.fixateFieldNearestFraction

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

class Structure
bool
fixateFieldNearestFraction

Parameters

fieldName string

a field in structure

targetNumerator int

The numerator of the target value of the fixation

targetDenominator int

The denominator of the target value of the fixation

Return Value

Type: bool

TRUE if the structure could be fixated