Structure.fixateFieldNearestInt

bool fixateFieldNearestInt(string fieldName, int target)

Fixates a #GstStructure by changing the given field to the nearest integer to target that is a subset of the existing field.

Parameters

fieldNamea field in structure
targetthe target value of the fixation

Returns

true if the structure could be fixated