navigation: Add coordinate helper functions
authorVivienne Watermeier <vwatermeier@igalia.com>
Mon, 14 Feb 2022 13:22:29 +0000 (14:22 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 23 Mar 2022 13:14:51 +0000 (13:14 +0000)
commitf402b2e180ea5f82432c867d7367f1f5d0a54a1e
tree165962575532dfea4456df6aee0dd6a818fc7514
parent8648275601c077c33ec88ef3ae1438c4dafa3e2e
navigation: Add coordinate helper functions

Add a function to get x/y coordinates from suitable navigation events,
and one to create a copy with given coordinate values.

For e.g. translating event coordinates, this avoids having to either
switch on the event type to select the right parse function, or
having to rely on implementation details of the underlying event
structure.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1633>
subprojects/gst-plugins-base/gst-libs/gst/video/navigation.c
subprojects/gst-plugins-base/gst-libs/gst/video/navigation.h