VideoOverlayRectangle.setRenderRectangle

void setRenderRectangle(int renderX, int renderY, uint renderWidth, uint renderHeight)

Sets the render position and dimensions of the rectangle on the video. This function is mainly for elements that modify the size of the video in some way (e.g. through scaling or cropping) and need to adjust the details of any overlays to match the operation that changed the size.

rectangle must be writable, meaning its refcount must be 1. You can make the rectangles inside a #GstVideoOverlayComposition writable using [gstvideo.video_overlay_composition.VideoOverlayComposition.makeWritable] or [gstvideo.video_overlay_composition.VideoOverlayComposition.copy].

Parameters

renderXrender X position of rectangle on video
renderYrender Y position of rectangle on video
renderWidthrender width of rectangle
renderHeightrender height of rectangle