1 pub const ANNEXB_NALU_START_CODE: [u8; 4] = [0x00, 0x00, 0x00, 0x01]; 2 3 pub type RtpNalType = u8; 4 //H264 5 pub const STAP_A: RtpNalType = 24; 6 pub const STAP_B: RtpNalType = 25; 7 pub const MTAP_16: RtpNalType = 26; 8 pub const MTAP_24: RtpNalType = 27; 9 pub const FU_A: RtpNalType = 28; 10 pub const FU_B: RtpNalType = 29; 11 // H265 12 pub const AP: RtpNalType = 48; //Aggregation Packets 13 pub const FU: RtpNalType = 49; //Fragmentation Units 14 pub const PACI: RtpNalType = 50; 15 16 pub const FU_START: u8 = 0x80; 17 pub const FU_END: u8 = 0x40; 18 19 pub const RTP_FIXED_HEADER_LEN: usize = 12; 20