pub enum VideoFrameFormat {
Rgb888Indexed8 = 1,
}Expand description
The format of the frames emitted via [yield_video_frame].
Variants§
Rgb888Indexed8 = 1
Indexed RGB colors.
Format: [ has_palette(1) | palette(256*3) | frame(width*height) ].
Each frame starts with has_palette flag that defines whether the pallete is present or
not. 0 means the palette is not present and one should use the palette from the previous
frames. It is an error to transmit the first frame without a palette. 1 means the palette
is present.
The pallete has 256 colors and each color has 3 components. Each color in the palette is encoded as a sequence of red, green, blue components, each component occupies 8 bits.
The frame itself goes after the palette. It is encoded as a sequence of 8-bit indices into
the palette in row-major order, there are width * height indices in total.
Trait Implementations§
Source§impl Clone for VideoFrameFormat
impl Clone for VideoFrameFormat
Source§fn clone(&self) -> VideoFrameFormat
fn clone(&self) -> VideoFrameFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more