Home
last modified time | relevance | path

Searched refs:nalus (Results 1 – 6 of 6) sorted by relevance

/xiu/protocol/rtsp/src/rtp/
H A Dutils.rs76 pub fn find_start_code(nalus: &[u8]) -> Option<usize> { in find_start_code()
82 nalus: &mut BytesMut, in split_annexb_and_process()
85 while !nalus.is_empty() { in split_annexb_and_process()
97 nalus.split_to(second_pos) in split_annexb_and_process()
99 nalus.split_to(nalus.len()) in split_annexb_and_process()
125 fn find_start_code(nalus: &[u8]) -> Option<usize> { in find_start_code()
132 let mut nalus = BytesMut::new(); in test_annexb_split() localVariable
133 nalus.extend_from_slice(&[ in test_annexb_split()
138 while !nalus.is_empty() { in test_annexb_split()
152 nalus.split_to(second_pos) in test_annexb_split()
[all …]
H A Drtp_h265.rs143 async fn pack(&mut self, nalus: &mut BytesMut, timestamp: u32) -> Result<(), PackerError> { in pack()
145 utils::split_annexb_and_process(nalus, self).await?; in pack()
H A Drtp_h264.rs124 async fn pack(&mut self, nalus: &mut BytesMut, timestamp: u32) -> Result<(), PackerError> { in pack()
126 utils::split_annexb_and_process(nalus, self).await?; in pack()
/xiu/protocol/rtmp/src/remuxer/
H A Drtsp2rtmp.rs51 pub fn find_start_code(nalus: &[u8]) -> Option<usize> { in find_start_code()
53 nalus.windows(pattern.len()).position(|w| w == pattern) in find_start_code()
260 nalus: &mut BytesMut, in on_rtsp_video()
267 while !nalus.is_empty() { in on_rtsp_video()
268 if let Some(first_pos) = find_start_code(&nalus[..]) { in on_rtsp_video()
270 if let Some(distance_to_first_pos) = find_start_code(&nalus[first_pos + 3..]) { in on_rtsp_video()
272 while second_pos > 0 && nalus[second_pos - 1] == 0 { in on_rtsp_video()
275 nalus.split_to(second_pos) in on_rtsp_video()
277 nalus.split_to(nalus.len()) in on_rtsp_video()
395 nalus: Vec<BytesMut>, in gen_rtmp_video_frame_data()
[all …]
/xiu/protocol/rtsp/src/
H A Drtsp_channel.rs82 nalus: &mut BytesMut, in on_frame()
86 return packer.pack(nalus, timestamp).await; in on_frame()
/xiu/library/container/flv/src/
H A Dmpeg4_avc.rs287 … pub fn nalus_to_mpeg4avc(&mut self, nalus: Vec<BytesMut>) -> Result<BytesMut, Mpeg4AvcHevcError> { in nalus_to_mpeg4avc()
290 for nalu in nalus { in nalus_to_mpeg4avc()