videoCenterRect

fnvoid videoCenterRect(gstvideo.types.VideoRectangle src, gstvideo.types.VideoRectangle dst, out gstvideo.types.VideoRectangle result, bool scaling)

Takes src rectangle and position it at the center of dst rectangle with or without scaling. It handles clipping if the src rectangle is bigger than the dst one and scaling is set to FALSE.

Parameters

srca pointer to #GstVideoRectangle describing the source area
dsta pointer to #GstVideoRectangle describing the destination area
resulta pointer to a #GstVideoRectangle which will receive the result area
scalinga #gboolean indicating if scaling should be applied or not