Skip to main content

write_tap_frame

Function write_tap_frame 

Source
pub async fn write_tap_frame<W>(
    w: &mut W,
    format: FrameFormat,
    width: u32,
    height: u32,
    pixels: &[u8],
    ts_mono_ns: u64,
) -> Result<()>
where W: AsyncWriteExt + Unpin,
Expand description

Write one [header][pixels] tap frame to w. The shared writer the video pipeline shim and any producer use so the framing matches the reader exactly.