Xav.Decoder (xav v0.2.1)
Audio/video decoder.
Summary
Types
Link to this type
codec()
@type codec() :: :opus | :vp8
Supported codecs.
@type t() :: reference()
Functions
Link to this function
decode(decoder, data, opts \\ [])
@spec decode(t(), binary(), pts: integer(), dts: integer()) :: {:ok, Xav.Frame.t()} | {:error, atom()}
Decodes an audio or video frame.
Video frames are always in the RGB format. Audio samples are always interleaved.
Link to this function
new(codec)
Creates a new decoder.