pub struct VideoEncodeConfig {Show 13 fields
pub profile: VideoEncodeProfile,
pub width: u32,
pub height: u32,
pub frame_rate: u32,
pub gop_size: u32,
pub rate_control: VideoRateControl,
pub bitrate: u32,
pub max_bitrate: u32,
pub constant_qp: u32,
pub quality_level: u32,
pub async_depth: u32,
pub max_b_frames: u32,
pub max_dpb_slots: u32,
}Fields§
§profile: VideoEncodeProfile§width: u32§height: u32§frame_rate: u32§gop_size: u32§rate_control: VideoRateControl§bitrate: u32§max_bitrate: u32§constant_qp: u32§quality_level: u32§async_depth: u32§max_b_frames: u32§max_dpb_slots: u32Requested DPB ring depth. 0 selects the donor’s two-slot ping-pong.
Implementations§
Source§impl VideoEncodeConfig
impl VideoEncodeConfig
Sourcepub const fn new(profile: VideoEncodeProfile, width: u32, height: u32) -> Self
pub const fn new(profile: VideoEncodeProfile, width: u32, height: u32) -> Self
Construct the donor’s default encode settings for a visible extent.
Sourcepub fn validate_for_device(
self,
caps: VideoEncodeCapabilities,
) -> Result<VideoEncodePlan>
pub fn validate_for_device( self, caps: VideoEncodeCapabilities, ) -> Result<VideoEncodePlan>
Validate this request against the exact queried codec profile.
The returned coded extent and resolved peak bitrate are inputs to a future session. No device resource is allocated by this method.
§Errors
Returns an error for an unsupported profile, invalid geometry or rate control, arithmetic overflow, or device limits that cannot admit the requested stream.
Trait Implementations§
Source§impl Clone for VideoEncodeConfig
impl Clone for VideoEncodeConfig
impl Copy for VideoEncodeConfig
Source§impl Debug for VideoEncodeConfig
impl Debug for VideoEncodeConfig
impl Eq for VideoEncodeConfig
Source§impl PartialEq for VideoEncodeConfig
impl PartialEq for VideoEncodeConfig
impl StructuralPartialEq for VideoEncodeConfig
Auto Trait Implementations§
impl Forget for VideoEncodeConfig
impl Freeze for VideoEncodeConfig
impl Move for VideoEncodeConfig
impl RefUnwindSafe for VideoEncodeConfig
impl Send for VideoEncodeConfig
impl Sync for VideoEncodeConfig
impl Unpin for VideoEncodeConfig
impl UnsafeUnpin for VideoEncodeConfig
impl UnwindSafe for VideoEncodeConfig
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