Y4m (y4m v0.2.1)
Module for working with y4m.
Link to this section Summary
Functions
Return inifnite lazy stream over all frames in this file stream. When the end of the file is reached, the file is reopenend again restarting the stream from the besinning of the file.
Reads y4m frames from a file on disk.
Link to this section Functions
Link to this function
loop(file_path)
Return inifnite lazy stream over all frames in this file stream. When the end of the file is reached, the file is reopenend again restarting the stream from the besinning of the file.
examples
Examples
iex> Y4m.loop("my_file.y4m") |> Enum.take(4)
[
...
]
Link to this function
read(file)
@spec read(atom() | pid()) :: %Y4mReader{file: term(), properties: term()} | {:error, :invalid_header}
Reads y4m frames from a file on disk.
examples
Examples
iex> {:ok, file} = File.open("my_file.y4m")
iex> Y4m.decode(file)
%Y4MDecoder{
file: #PID<0.222.0>,
properties: %{ ... }
}