pub type Encoder = Box<dyn FnMut(&Image) -> (FrameFormat, Vec<u8>)>;
Encodes a rendered frame for the wire.
pub struct Encoder(/* private fields */);