#[non_exhaustive]pub enum Gop {
Keyframe {
interval: u32,
},
}Expand description
How the encoded stream is divided into groups.
Every mode opens a group at a point a subscriber can start decoding, and
Encoder::cut opens one on demand in any of them. #[non_exhaustive]: a
later mode adds a variant here rather than replacing the field, so match
with a fallback arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Keyframe
A keyframe (an IDR with its parameter sets in band) every interval
frames, each opening a group. A subscriber joining mid-stream waits at
most that many frames for a picture it can decode.
Fields
§
interval: u32Frames per group. Must be at least 1; Encoder::new refuses 0.
Implementations§
Trait Implementations§
impl Copy for Gop
impl Eq for Gop
impl StructuralPartialEq for Gop
Auto Trait Implementations§
impl Freeze for Gop
impl RefUnwindSafe for Gop
impl Send for Gop
impl Sync for Gop
impl Unpin for Gop
impl UnsafeUnpin for Gop
impl UnwindSafe for Gop
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