#[repr(u8)]pub enum FrameFormat {
Webp = 1,
Jpeg = 2,
Rgba = 3,
Surface = 4,
Pcm = 5,
}Expand description
Image encoding of a binary preview frame.
Variants§
Webp = 1
WebP image.
Jpeg = 2
JPEG image.
Rgba = 3
Raw RGBA8, width * height * 4 bytes.
Surface = 4
No body: the frame was drawn directly into the transport’s surface (an OffscreenCanvas in the browser).
Pcm = 5
Signed 16-bit little-endian mono PCM. width is the sample rate,
height is 1, and the body is the samples.
Implementations§
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
impl Copy for FrameFormat
Source§impl Debug for FrameFormat
impl Debug for FrameFormat
impl Eq for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnsafeUnpin for FrameFormat
impl UnwindSafe for FrameFormat
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