videoCenterRect
fn
void 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
src | a pointer to #GstVideoRectangle describing the source area |
dst | a pointer to #GstVideoRectangle describing the destination area |
result | a pointer to a #GstVideoRectangle which will receive the result area |
scaling | a #gboolean indicating if scaling should be applied or not |