Y4mReader (y4m v0.2.1)

Read properties and frames from a *.y4m file

Link to this section Summary

Functions

Return iterator over all frames in this file stream.

Read the next frame.

Read file header from the IO device and return Y4mReader.

Link to this section Functions

Link to this function

iter_frames(dec)

@spec iter_frames(%Y4mReader{file: term(), properties: term()}) :: Enumerable.t()

Return iterator over all frames in this file stream.

Link to this function

next_frame(dec)

@spec next_frame(%Y4mReader{file: term(), properties: term()}) ::
  :eof | [binary()] | {:error, atom()}

Read the next frame.

@spec read(atom() | pid()) ::
  %Y4mReader{file: term(), properties: term()} | {:invalid_header, binary()}

Read file header from the IO device and return Y4mReader.