Struct nvenc::InitParamsBuilder
source · pub struct InitParamsBuilder { /* private fields */ }
Implementations§
source§impl InitParamsBuilder
impl InitParamsBuilder
pub fn new(encode: GUID, width: u32, height: u32) -> InitParamsBuilder
pub fn dar_width(self, width: u32) -> InitParamsBuilder
pub fn dar_height(self, height: u32) -> InitParamsBuilder
pub fn preset_guid(self, preset: GUID) -> InitParamsBuilder
pub fn set_encode_config(self, config: EncodeConfig) -> InitParamsBuilder
sourcepub fn set_framerate(self, num: u32, den: u32) -> InitParamsBuilder
pub fn set_framerate(self, num: u32, den: u32) -> InitParamsBuilder
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 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