Trait afi::EncoderV [−][src]
pub trait EncoderV where
Self: Sized, { fn new(video: &Video) -> Self; fn run(&mut self, frame: &VFrame) -> Vec<u8>; fn end(self) -> Vec<u8>; }
A trait for implementing encoding video (use only with non-audio formats).
Required Methods
fn new(video: &Video) -> Self
Create a new encoder for this video.
fn run(&mut self, frame: &VFrame) -> Vec<u8>
Encode a frame (24fps) and return appended data.
fn end(self) -> Vec<u8>
Finish the encoding and return appended data.