clamp()
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/305 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1078>