videoCenterRect

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

src gstvideo.types.VideoRectangle

a pointer to #GstVideoRectangle describing the source area

dst gstvideo.types.VideoRectangle

a pointer to #GstVideoRectangle describing the destination area

result gstvideo.types.VideoRectangle

a pointer to a #GstVideoRectangle which will receive the result area

scaling bool

a #gboolean indicating if scaling should be applied or not