pub struct FecHeader<'buf> { /* fields omitted */ }
The set of headers values in a SMPTE 2022-1 packet.
wrap the given byte-slice in a FecHeader
object, or return a FecHeaderError if the given
slice does not represent a valid header.
Returns a FecHeader
, and the remaining payload data from the given slice immediately
following the header.
Returns the length in bytes of the headers this object represents.
24 bit value of the minimum sequence number of media packets associated with this FEC packet
The length of media packets associated with this FEC packet
Flag indicating if this header includes extension fields (must be true
for SMPTE 2022-1
packets
Field allowing recovery of the payload type of media packets associated with this FEC
packet
Set to all-zeros for SMPTE 2022-1 streams
Used to recover the timestamp field of any packets associated with this FEC packet
Orientation::Column
for FEC packets from the first FEC stream, and Orientation::Row
for
FEC packets from the second FEC stream.
In the spec this header field is named D
.
3-bit value indicating which error-correcting code is chosen, but always set to 0
for
SMPTE 2022-1 streams.
Packets with an unrecognized value to be ignored.
3-bit value always set to 0
for SMPTE 2022-1 streams.
Selects the media packets associated with this FEC packet.
Equal to the the L
parameter for the first FEC stream, and always equal to 1
for
the second FEC stream.
The number of media packets associated with this FEC packet.
This is the NA
field from the spec, equal to the D
parameter or FEC packets belonging
to the first FEC stream, and equal to the L
parameter or FEC packets belonging
to the second FEC stream.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static