Skip to main content

picture_sink

Function picture_sink 

Source
fn picture_sink(latest: Arc<Mutex<Option<Frame>>>) -> Result<Element, String>
Expand description

Where a video’s pictures go: converted to RGBA with square pixels, scaled down until neither side is over FRAME_MAX_SIDE, and the latest kept in latest for whoever takes it. A frame nobody took is dropped for the next: what is shown is what is current.