VideoOverlayRectangle.setRenderRectangle

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.

class VideoOverlayRectangle
void
setRenderRectangle

Parameters

renderX int

render X position of rectangle on video

renderY int

render Y position of rectangle on video

renderWidth uint

render width of rectangle

renderHeight uint

render height of rectangle