#[repr(u32)]pub enum Format {
H264 = 1_211_250_228,
YUYV = 1_498_765_654,
YV12 = 1_498_820_914,
RGB3 = 1_380_401_715,
BGR3 = 1_111_970_355,
}Expand description
The fourCC code to capture in.
Currently supported formats are H264 and those supported by libx264.
Variants§
H264 = 1_211_250_228
H264 format. Selecting this option will disable software encoding, which is generally much faster but can reduce quality or compression ratio.
YUYV = 1_498_765_654
YUYV format. In this format, 4 bytes encode 2 pixels, with the first encoding the Y or luminance component for the first pixel, the second encoding the U or Cb component for both pixels, the third encoding the Y component for the second pixel, and the fourth encoding the V or Cr component for both pixels.
YV12 = 1_498_820_914
YV12 format. 6 bytes encode 4 pixels, with the first 4 bytes encoding the Y component for each pixel, the fith byte encoding the V component for all 4 pixels, and the last byte encoding the U component for all 4 pixels. The “12” refers to the format’s bit depth.
RGB3 = 1_380_401_715
RGB format. 3 bytes encode 1 pixel, with the first encoding the red component, the second encoding the green component, and the third encoding the blue component.
BGR3 = 1_111_970_355
BGR format. 3 bytes encode 1 pixel, with the first encoding the blue component, the second encoding the green component, and the third encoding the red component.