Skip to main content

EncoderV

Trait EncoderV 

Source
pub trait EncoderV
where Self: Sized,
{ // Required methods 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§

Source

fn new(video: &Video) -> Self

Create a new encoder for this video.

Source

fn run(&mut self, frame: &VFrame) -> Vec<u8>

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

Source

fn end(self) -> Vec<u8>

Finish the encoding and return appended data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§