pub enum Packet {
    CompressedFrame(CompressedFrame),
    TwoPassStats(FixedBuffer),
    FirstPassMbStats(FixedBuffer),
    PSNRPacket(PSNRPacket),
    Custom(FixedBuffer),
}Expand description
A packet output from the encoder in response to a call to
Encoder::encode(). The encoded bitstream consists of the
contents of compressed frame packets, but the encoder can sometimes
also produce some other ancillary information packets. For example,
when doing multi-pass encoding, or when running the PSNR analyzer,
the encoder will generate packets containing this additional
metainformation. In general, though, you only need the packets
containing the CompressedFrame data to decode a video stream.
Variants§
CompressedFrame(CompressedFrame)
A compressed video frame.
TwoPassStats(FixedBuffer)
Two-pass statistics for this frame.
FirstPassMbStats(FixedBuffer)
First pass mb statistics for this frame.
PSNRPacket(PSNRPacket)
PSNR statistics for this frame.
Custom(FixedBuffer)
Algorithm extensions.
Trait Implementations§
Source§impl PartialOrd for Packet
 
impl PartialOrd for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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