Trait afi::EncoderAV

source ·
pub trait EncoderAVwhere
    Self: Sized,
{ fn new(video: &Video, audio: &Audio) -> Self; fn run(&mut self, audio: &mut Audio, video: &mut Video) -> Vec<u8>; fn end(self) -> Vec<u8>; }
Expand description

A trait for implementing encoding audio and video together.

Required Methods§

Create a new encoder for this audiovideo

Encode a frame (2000 samples / 24fps) and return appended data.

Finish the encoding and return appended data.

Implementors§