View Source Membrane.Buffer.Metric behaviour (Membrane Core v0.10.2)
Specifies API for metrics that analyze data in terms of a given unit
Link to this section Summary
Link to this section Types
@type unit_t() :: :buffers | :bytes
Link to this section Callbacks
@callback buffer_size_approximation() :: pos_integer()
@callback buffers_size( [ %Membrane.Buffer{ dts: term(), metadata: term(), payload: term(), pts: term() } ] | [] ) :: non_neg_integer()
@callback split_buffers( [ %Membrane.Buffer{ dts: term(), metadata: term(), payload: term(), pts: term() } ] | [], non_neg_integer() ) :: {[ %Membrane.Buffer{ dts: term(), metadata: term(), payload: term(), pts: term() } ] | [], [ %Membrane.Buffer{ dts: term(), metadata: term(), payload: term(), pts: term() } ] | []}