Interface IFrameEncoder<Frame>

interface IFrameEncoder<Frame = Uint8Array> {
    encode: (frame: Frame, into: ISyncWritable) => MaybePromise<void>;
    reset: () => void;
}

Type Parameters

  • Frame = Uint8Array

Implemented by

Properties

Properties

encode: (frame: Frame, into: ISyncWritable) => MaybePromise<void>

Encode a frame into a writable stream

reset: () => void

Reset the encoder, should it have any internal state