Ivf.Writer (ivf v0.3.0)

Link to this section Summary

Functions

Append a single frame to the file.

Append a single frame with timestamp to the file.

Returns a specification to start this module under a supervisor.

Close the file and adjust the frame count in the file header.

Callback implementation for GenServer.init/1.

Initialize a new Ivf Writer.

Link to this section Types

@type packet() :: [byte(), ...] | binary()

Link to this section Functions

Link to this function

append(writer, packet)

@spec append(GenServer.server(), packet()) :: :ok

Append a single frame to the file.

Link to this function

append(writer, timestamp, packet)

@spec append(GenServer.server(), non_neg_integer(), packet()) :: :ok

Append a single frame with timestamp to the file.

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec close(GenServer.server()) :: :ok

Close the file and adjust the frame count in the file header.

Callback implementation for GenServer.init/1.

Link to this function

start_link(file_path, props, opts \\ [])

@spec start_link(binary(), Ivf.Props.t(), GenServer.options()) :: GenServer.on_start()

Initialize a new Ivf Writer.