pub struct NvEncConfig {
pub width: u32,
pub height: u32,
pub fps_num: u32,
pub fps_den: u32,
pub bitrate: u32,
pub max_bitrate: u32,
pub gop_length: u32,
pub b_frames: u32,
pub nv12_pitch: u32,
}Expand description
Encoder configuration parameters.
Passed to NvEncoder::new to configure the
NVENC session before the first frame is encoded.
Fields§
§width: u32Target frame width in pixels.
height: u32Target frame height in pixels.
fps_num: u32Framerate numerator.
fps_den: u32Framerate denominator.
bitrate: u32Average bitrate in bits/sec (0 = CQP mode).
max_bitrate: u32Peak bitrate in bits/sec (VBR mode; 0 = unconstrained).
gop_length: u32GOP length — number of frames between IDR pictures.
b_frames: u32B-frame interval (0 = no B-frames).
nv12_pitch: u32NV12 row pitch in bytes. Must match the pitch of incoming
GpuTexture frames exactly.
Trait Implementations§
Source§impl Clone for NvEncConfig
impl Clone for NvEncConfig
Source§fn clone(&self) -> NvEncConfig
fn clone(&self) -> NvEncConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NvEncConfig
impl RefUnwindSafe for NvEncConfig
impl Send for NvEncConfig
impl Sync for NvEncConfig
impl Unpin for NvEncConfig
impl UnsafeUnpin for NvEncConfig
impl UnwindSafe for NvEncConfig
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