mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +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
52e09fd83d
commit
60cd874db7
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 = "get_seqnum")]
|
||||||
#[doc(alias = "gst_video_overlay_composition_get_seqnum")]
|
#[doc(alias = "gst_video_overlay_composition_get_seqnum")]
|
||||||
pub fn seqnum(&self) -> u32 {
|
pub fn seqnum(&self) -> u32 {
|
||||||
|
|
Loading…
Reference in a new issue