Skip to main content

supply_frame

Function supply_frame 

Source
pub fn supply_frame(
    session: &mut ExtractSession,
    need: &Need,
    extractor: &mut dyn Extractor,
    supplier: &mut dyn Supplier,
) -> Result<(), DriveError>
Expand description

Answers a frame need of session from supplier, in memory extractor offers when it offers some: the supplier writes RGBA frames there, the session a frame’s luma; drive does this for every frame need.

§Errors

DriveError::Supplier for the supplier’s failure, DriveError::Session for a frame the session refuses.