MediaCodecs.MPEG4.ADTS (MediCodecs v0.7.0)
View SourceModule for parsing and serializing ADTS (Audio Data Transport Stream) packets.
Summary
Types
@type t() :: %MediaCodecs.MPEG4.ADTS{ audio_object_type: non_neg_integer(), channels: 0..8, frames: binary(), frames_count: non_neg_integer(), sampling_frequency: non_neg_integer() }
Functions
Parses an ADTS packet from a binary stream.
This function returns:
{:ok, packet, unprocessed}
if the packet is successfully parsed withunprocessed
as the remaining unprocessed binary.:more
if more data is needed to complete the parsing.{:error, :invalid_packet}
if the packet is invalid or cannot be parsed.
Serializes an ADTS packet into a binary.