mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-15 22:11:01 +00:00
video: Add VideoOverlayComposition::add_rectangle()
to add new rectangles after construction
Usually it is more convenient to provide them all via an iterator during construction but in some cases this might be nicer.
This commit is contained in:
parent
a0e192edb9
commit
4e3882f429
1 changed files with 7 additions and 0 deletions
|
@ -303,6 +303,13 @@ impl VideoOverlayCompositionRef {
|
|||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "gst_video_overlay_composition_add_rectangle")]
|
||||
pub fn add_rectangle(&mut self, rect: &VideoOverlayRectangleRef) {
|
||||
unsafe {
|
||||
ffi::gst_video_overlay_composition_add_rectangle(self.as_mut_ptr(), rect.as_mut_ptr());
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "get_seqnum")]
|
||||
#[doc(alias = "gst_video_overlay_composition_get_seqnum")]
|
||||
pub fn seqnum(&self) -> u32 {
|
||||
|
|
Loading…
Reference in a new issue