Struct adts_reader::AdtsHeader [] [src]

pub struct AdtsHeader<'buf> { /* fields omitted */ }

Methods

impl<'buf> AdtsHeader<'buf>
[src]

[src]

Note that this function returns Err if there is not enough data to parse the whole header, but it can return Ok even if there is not enough data in the given buffer to hold the whole of the payload that the header indicates should be present (however if there is not enough data to hold the payload, then payload() will return None).

[src]

[src]

[src]

[src]

[src]

either 1 or 0

[src]

[src]

[src]

either 1 or 0

[src]

either 1 or 0

[src]

[src]

length of this frame, including the length of the header.

[src]

Calculates the length of the frame payload from the frame_length header value, and the total size of headers in this frame -- returning None if the frame_length header had a value too small to even include the headers

[src]

[src]

The number of data blocks in the frame, a value between 1 and 4 inclusive.

(Note that in the serialised ADTS data stores the number of blocks - 1. This method returns the actual number of blocks by adding one to the serialised value.)

Most streams store a single block per ADTS frame

[src]

The payload AAC data inside this ADTS frame