View Source MPEG.TS.PMT (MPEG.TS v2.0.0)

Program Map Table.

Summary

Types

@type stream_id_t() :: 0..8191
@type stream_t() :: %{stream_type: atom(), stream_type_id: stream_type_id_t()}
@type stream_type_id_t() :: 0..255
@type streams_t() :: %{required(stream_id_t()) => stream_t()}
@type t() :: %MPEG.TS.PMT{
  pcr_pid: 0..8191,
  program_info: list(),
  streams: streams_t()
}

Functions

@spec unmarshal_table(binary()) :: {:ok, t()} | {:error, :invalid_data}