#fec #packet-header #mpeg-ts #pro-mpeg #2d-parity-fec #2022-1

smpte2022-1-packet

Parser for SMPTE 2022-1 packet header format

5 releases (breaking)

0.5.0 Apr 23, 2020
0.4.0 Apr 2, 2019
0.3.0 Mar 25, 2019
0.2.0 Mar 5, 2019
0.1.0 Jan 23, 2019

#345 in Video

Download history 7/week @ 2024-02-12 11/week @ 2024-02-19 16/week @ 2024-02-26 15/week @ 2024-03-04 7/week @ 2024-03-11 9/week @ 2024-03-18 73/week @ 2024-04-01

91 downloads per month
Used in 2 crates (via smpte2022-1-fec)

MIT/Apache

17KB
165 lines

Zero-copy access to the header fields of packets formatted according to SMPTE 2022-1, also know as 'Pro MPEG FEC' or '1D/2D parity FEC'.

Note this does not implement FEC encoding or decoding, just the parsing of the packet header fields. For a decoder, see the smpte2022-1-fec crate.

Header data format

syntax fec_header() {
    SNBase low bits             u16
    Length Recovery             u16
    E                           u1
    PT recovery                 u7
    Mask                        u24
    TS recovery                 u32
    N                           u1
    D                           u1
    type                        u3
    index                       u3
    Offset                      u8
    NA                          u8
    SNBase ext bits             u8
}

Dependencies

~39KB