pub struct FrameOptions {
pub pts: u64,
pub crop: Option<Region>,
pub keyframe: bool,
}Expand description
Per-frame options for VideoEncoder::encode.
Fields§
§pts: u64Presentation timestamp, returned unchanged on the matching
EncodedFrame. Any unit; the encoder never interprets it.
crop: Option<Region>The part of the source to encode, exactly the configured size.
None encodes the whole source, which must then be the configured
size.
keyframe: boolEncode this frame as a key frame (an IDR picture).
Trait Implementations§
Source§impl Clone for FrameOptions
impl Clone for FrameOptions
impl Copy for FrameOptions
Source§impl Debug for FrameOptions
impl Debug for FrameOptions
Source§impl Default for FrameOptions
impl Default for FrameOptions
impl Eq for FrameOptions
Source§impl PartialEq for FrameOptions
impl PartialEq for FrameOptions
impl StructuralPartialEq for FrameOptions
Auto Trait Implementations§
impl Freeze for FrameOptions
impl RefUnwindSafe for FrameOptions
impl Send for FrameOptions
impl Sync for FrameOptions
impl Unpin for FrameOptions
impl UnsafeUnpin for FrameOptions
impl UnwindSafe for FrameOptions
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