Struct ndi::send::SendBuilder
source · [−]pub struct SendBuilder { /* private fields */ }
Expand description
Builder struct for Send
Implementations
sourceimpl SendBuilder
impl SendBuilder
sourcepub fn ndi_name(self, ndi_name: String) -> Self
pub fn ndi_name(self, ndi_name: String) -> Self
This is the name of the NDI source to create.
This will be the name of the NDI source on the network. For instance, if your network machine name is called “MyMachine” and you specify this parameter as “My Video”, the NDI source on the network would be “MyMachine (My Video)”.
sourcepub fn groups(self, groups: String) -> Self
pub fn groups(self, groups: String) -> Self
Specify the groups that this NDI sender should place itself into.
Groups are sets of NDI sources. Any source can be part of any number of groups, and groups are comma-separated. For instance “cameras,studio 1,10am show” would place a source in the three groups named.
sourcepub fn clock_video(self, clock_video: bool) -> Self
pub fn clock_video(self, clock_video: bool) -> Self
Specify whether video “clock” themself.
When it is clocked, video frames added will be rate-limited to match the current framerate they are submitted at. In general, if you are submitting video and audio off a single thread you should only clock one of them If you are submitting audio and video of separate threads then having both clocked can be useful. A simplified view of the how works is that, when you submit a frame, it will keep track of the time the next frame would be required at. If you submit a frame before this time, the call will wait until that time. This ensures that, if you sit in a tight loop and render frames as fast as you can go, they will be clocked at the framerate that you desire.
Note that combining clocked video and audio submission combined with asynchronous frame submission (see below) allows you to write very simple loops to render and submit NDI frames.
sourcepub fn clock_audio(self, clock_audio: bool) -> Self
pub fn clock_audio(self, clock_audio: bool) -> Self
specify whether audio “clock” themself.
See above in clock_video
Trait Implementations
sourceimpl Clone for SendBuilder
impl Clone for SendBuilder
sourcefn clone(&self) -> SendBuilder
fn clone(&self) -> SendBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SendBuilder
impl Send for SendBuilder
impl Sync for SendBuilder
impl Unpin for SendBuilder
impl UnwindSafe for SendBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more