Xav.Frame (xav v0.1.1)
Video or audio frame.
Link to this section Summary
Functions
Converts frame to Nx tensor.
Link to this section Types
@type t() :: %Xav.Frame{ data: binary(), format: atom(), height: non_neg_integer() | nil, pts: integer(), samples: integer() | nil, type: :audio | :video, width: non_neg_integer() | nil }
Link to this section Functions
Link to this function
new(data, format, samples, pts)
Link to this function
new(data, format, width, height, pts)
@spec new(binary(), atom(), non_neg_integer(), non_neg_integer(), integer()) :: t()
Link to this function
to_nx(frame)
@spec to_nx(t()) :: Nx.Tensor.t()
Converts frame to Nx tensor.