Trait afi::EncoderV

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

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§