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

Create a new encoder for this video.

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

Finish the encoding and return appended data.

Implementors