pub struct InitParamsBuilder { /* private fields */ }Implementations§
Source§impl InitParamsBuilder
impl InitParamsBuilder
pub fn new(encode: GUID, width: u32, height: u32) -> Self
pub fn dar_width(self, width: u32) -> Self
pub fn dar_height(self, height: u32) -> Self
pub fn preset_guid(self, preset: GUID) -> Self
pub fn set_encode_config(self, config: EncodeConfig) -> Self
Sourcepub fn set_framerate(self, num: u32, den: u32) -> Self
pub fn set_framerate(self, num: u32, den: u32) -> Self
Set the frame rate (numerator and denominator)
Note: “The frame rate has no meaning in NVENC other than deciding rate control parameters.” https://devtalk.nvidia.com/default/topic/1023473
pub fn build(self) -> Result<Pin<Box<InitParams>>, NvencError>
Auto Trait Implementations§
impl Freeze for InitParamsBuilder
impl RefUnwindSafe for InitParamsBuilder
impl !Send for InitParamsBuilder
impl !Sync for InitParamsBuilder
impl Unpin for InitParamsBuilder
impl UnsafeUnpin for InitParamsBuilder
impl UnwindSafe for InitParamsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more