Home
last modified time | relevance | path

Searched refs:Bytes (Results 1 – 25 of 140) sorted by relevance

123456

/webrtc/rtp/src/codecs/vp9/
H A Dvp9_test.rs10 Bytes::new(), in test_vp9_packet_unmarshal()
46 Bytes::new(), in test_vp9_packet_unmarshal()
53 Bytes::new(), in test_vp9_packet_unmarshal()
92 Bytes::new(), in test_vp9_packet_unmarshal()
99 Bytes::new(), in test_vp9_packet_unmarshal()
120 Bytes::new(), in test_vp9_packet_unmarshal()
141 Bytes::new(), in test_vp9_packet_unmarshal()
148 Bytes::new(), in test_vp9_packet_unmarshal()
155 Bytes::new(), in test_vp9_packet_unmarshal()
183 Bytes::new(), in test_vp9_packet_unmarshal()
[all …]
/webrtc/rtp/src/codecs/h264/
H A Dh264_test.rs8 let empty = Bytes::from_static(&[]); in test_h264_payload()
11 let large_payload = Bytes::from_static(&[ in test_h264_payload()
16 Bytes::from_static(&[0x1c, 0x80, 0x01, 0x02, 0x03]), in test_h264_payload()
81 let large_payload = Bytes::from_static(&[ in test_h264_packet_unmarshal()
85 let large_payload_avc = Bytes::from_static(&[ in test_h264_packet_unmarshal()
121 let data = Bytes::from_static(&[]); in test_h264_packet_unmarshal()
125 let data = Bytes::from_static(&[0x00, 0x00]); in test_h264_packet_unmarshal()
197 let empty_nalu = Bytes::from_static(&[]); in test_h264_partition_head_checker_is_partition_head()
203 let single_nalu = Bytes::from_static(&[1, 0]); in test_h264_partition_head_checker_is_partition_head()
246 Bytes::from_static(&[ in test_h264_payloader_payload_sps_and_pps_handling()
[all …]
H A Dmod.rs9 use bytes::{BufMut, Bytes, BytesMut};
14 sps_nalu: Option<Bytes>,
15 pps_nalu: Option<Bytes>,
37 pub static ANNEXB_NALUSTART_CODE: Bytes = Bytes::from_static(&[0x00, 0x00, 0x00, 0x01]);
40 fn next_ind(nalu: &Bytes, start: usize) -> (isize, isize) { in next_ind() argument
55 fn emit(&mut self, nalu: &Bytes, mtu: usize, payloads: &mut Vec<Bytes>) { in emit() argument
83 payloads.push(Bytes::from(stap_a_nalu)); in emit()
164 fn payload(&mut self, mtu: usize, payload: &Bytes) -> Result<Vec<Bytes>> { in payload() argument
210 fn depacketize(&mut self, packet: &Bytes) -> Result<Bytes> { in depacketize() argument
287 Ok(Bytes::new()) in depacketize()
[all …]
/webrtc/rtp/src/codecs/vp8/
H A Dvp8_test.rs8 let empty_bytes = Bytes::from_static(&[]); in test_vp8_unmarshal()
18 let small_bytes = Bytes::from_static(&[0x00, 0x11]); in test_vp8_unmarshal()
113 Bytes::from_static(&[0x91, 0x91]), in test_vp8_payload()
117 Bytes::from_static(&[0x10, 0x90]), in test_vp8_payload()
118 Bytes::from_static(&[0x00, 0x90]), in test_vp8_payload()
119 Bytes::from_static(&[0x00, 0x90]), in test_vp8_payload()
122 Bytes::from_static(&[0x10, 0x91]), in test_vp8_payload()
123 Bytes::from_static(&[0x00, 0x91]), in test_vp8_payload()
136 Bytes::from_static(&[0x91, 0x91]), in test_vp8_payload()
155 Bytes::from_static(&[0x91, 0x91]), in test_vp8_payload()
[all …]
/webrtc/rtcp/src/goodbye/
H A Dgoodbye_test.rs8 Bytes::from_static(&[ in test_goodbye_unmarshal()
15 reason: Bytes::from_static(b"FOO"), in test_goodbye_unmarshal()
21 Bytes::from_static(&[ in test_goodbye_unmarshal()
28 reason: Bytes::from_static(b""), in test_goodbye_unmarshal()
34 Bytes::from_static(&[ in test_goodbye_unmarshal()
41 reason: Bytes::from_static(b""), in test_goodbye_unmarshal()
47 Bytes::from_static(&[ in test_goodbye_unmarshal()
60 Bytes::from_static(&[ in test_goodbye_unmarshal()
73 Bytes::from_static(&[ in test_goodbye_unmarshal()
85 Bytes::from_static(&[ in test_goodbye_unmarshal()
[all …]
/webrtc/rtcp/src/source_description/
H A Dsource_description_test.rs8 Bytes::from_static(&[]), in test_source_description_unmarshal()
14 Bytes::from_static(&[ in test_source_description_unmarshal()
23 Bytes::from_static(&[ in test_source_description_unmarshal()
33 Bytes::from_static(&[ in test_source_description_unmarshal()
44 Bytes::from_static(&[ in test_source_description_unmarshal()
55 Bytes::from_static(&[ in test_source_description_unmarshal()
67 Bytes::from_static(&[ in test_source_description_unmarshal()
78 Bytes::from_static(&[ in test_source_description_unmarshal()
94 Bytes::from_static(&[ in test_source_description_unmarshal()
105 Bytes::from_static(&[ in test_source_description_unmarshal()
[all …]
/webrtc/rtp/src/packet/
H A Dpacket_test.rs6 use bytes::{Bytes, BytesMut};
17 let raw_pkt = Bytes::from_static(&[ in test_basic()
110 payload: Bytes::from_static(&[]), in test_extension()
128 let raw_pkt = Bytes::from_static(&[ in test_padding()
175 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_one_byte_extension()
217 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_one_byte_two_extension_of_two_bytes()
413 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_two_byte_extension()
516 let raw_pkt = Bytes::from_static(&[ in test_rfc8285_two_byte_multiple_extension_with_large_extension()
924 Bytes::from_static(&[ in test_rfc8285_one_byte_set_extension_should_error_when_payload_too_large()
1047 Bytes::from_static(&[ in test_rfc8285_two_byte_set_extension_should_error_when_payload_too_large()
[all …]
/webrtc/rtp/src/codecs/h265/
H A Dh265_test.rs7 raw_header: Bytes, in test_h265_nalu_header()
171 raw: Bytes, in test_h265_single_nalunit_packet()
179 raw: Bytes::from_static(&[]), in test_h265_single_nalunit_packet()
277 raw: Bytes, in test_h265_aggregation_packet()
347 raw: Bytes::from_static(&[ in test_h265_aggregation_packet()
357 raw: Bytes::from_static(&[ in test_h265_aggregation_packet()
368 raw: Bytes::from_static(&[ in test_h265_aggregation_packet()
466 raw: Bytes, in test_h265_fragmentation_unit_packet()
633 raw: Bytes, in test_h265_paci_packet()
691 raw: Bytes::from_static(&[ in test_h265_paci_packet()
[all …]
H A Dmod.rs3 use bytes::Bytes;
107 payload: Bytes,
166 pub fn payload(&self) -> Bytes { in payload() argument
193 nal_unit: Bytes,
210 pub fn nal_unit(&self) -> Bytes { in nal_unit() argument
233 nal_unit: Bytes,
439 payload: Bytes,
538 phes: Bytes,
541 payload: Bytes,
593 pub fn phes(&self) -> Bytes { in phes() argument
[all …]
/webrtc/srtp/src/context/
H A Dsrtp_test.rs4 use bytes::Bytes;
9 encrypted: Bytes,
13 …static ref RTP_TEST_CASE_DECRYPTED: Bytes = Bytes::from_static(&[0x00, 0x01, 0x02, 0x03, 0x04, 0x0…
17 encrypted: Bytes::from_static(&[
24 encrypted: Bytes::from_static(&[
31 encrypted: Bytes::from_static(&[
38 encrypted: Bytes::from_static(&[
45 encrypted: Bytes::from_static(&[
61 let master_key = Bytes::from_static(&[ in build_test_context()
65 let master_salt = Bytes::from_static(&[ in build_test_context()
[all …]
H A Dsrtcp_test.rs4 use bytes::{Buf, Bytes, BytesMut};
10 encrypted: Bytes,
11 decrypted: Bytes,
15 static ref RTCP_TEST_MASTER_KEY: Bytes = Bytes::from_static(&[
20 static ref RTCP_TEST_MASTER_SALT: Bytes = Bytes::from_static(&[
28 encrypted: Bytes::from_static(&[
35 decrypted: Bytes::from_static(&[
45 encrypted: Bytes::from_static(&[
52 decrypted: Bytes::from_static(&[
62 encrypted: Bytes::from_static(&[
[all …]
H A Dcontext_test.rs4 use bytes::Bytes;
208 static ref MASTER_KEY: Bytes = Bytes::from_static(&[
212 static ref MASTER_SALT: Bytes = Bytes::from_static(&[
215 static ref DECRYPTED_RTP_PACKET: Bytes = Bytes::from_static(&[
219 static ref ENCRYPTED_RTP_PACKET: Bytes = Bytes::from_static(&[
224 static ref DECRYPTED_RTCP_PACKET: Bytes = Bytes::from_static(&[
228 static ref ENCRYPTED_RTCP_PACKET: Bytes = Bytes::from_static(&[
/webrtc/sctp/src/chunk/
H A Dchunk_test.rs111 static ORG_UNRECOGNIZED_CHUNK: Bytes =
115 static ref RAW_IN: Bytes = {
186 static CHUNK_FORWARD_TSN_BYTES: Bytes =
194 Bytes::from_static(&[ in test_chunk_forward_tsn_success()
218 Bytes::from_static(&[ in test_chunk_forward_tsn_unmarshal_failure()
237 static TEST_CHUNK_RECONFIG_PARAM_A: Bytes = Bytes::from_static(&[
242 static TEST_CHUNK_RECONFIG_PARAM_B: Bytes = Bytes::from_static(&[
473 let raw_pkt = Bytes::from_static(&[ in test_init_chunk()
511 let raw_pkt = Bytes::from_static(&[ in test_init_ack()
527 let raw_pkt = Bytes::from_static(&[ in test_chrome_chunk1_init()
[all …]
/webrtc/sctp/src/param/
H A Dparam_test.rs11 (Bytes::from_static(&[0x0, 0x1]), ParamType::HeartbeatInfo), in test_parse_param_type_success()
12 (Bytes::from_static(&[0x0, 0xd]), ParamType::OutSsnResetReq), in test_parse_param_type_success()
28 static PARAM_HEADER_BYTES: Bytes = Bytes::from_static(&[0x0, 0x1, 0x0, 0x4]);
57 Bytes::from_static(&[0x0, 0xd, 0x0, 0x3]), in test_param_header_unmarshal_failure()
75 static PARAM_FORWARD_TSN_SUPPORTED_BYTES: Bytes = Bytes::from_static(&[0xc0, 0x0, 0x0, 0x4]);
111 static CHUNK_RECONFIG_PARAM_A: Bytes = Bytes::from_static(&[
115 static CHUNK_RECONFIG_PARAM_B: Bytes = Bytes::from_static(&[
156 ("param too short", Bytes::from_static(&[0x0, 0xd, 0x0, 0x4])), in test_param_outgoing_reset_request_failure()
173 static CHUNK_RECONFIG_RESPONCE: Bytes =
202 Bytes::from_static(&[0x0, 0x10, 0x0, 0x4]), in test_param_reconfig_response_failure()
[all …]
/webrtc/rtp/src/codecs/opus/
H A Dmod.rs9 use bytes::Bytes;
15 fn payload(&mut self, mtu: usize, payload: &Bytes) -> Result<Vec<Bytes>> { in payload() argument
33 fn depacketize(&mut self, packet: &Bytes) -> Result<Bytes> { in depacketize() argument
41 fn is_partition_head(&self, _payload: &Bytes) -> bool { in is_partition_head()
45 fn is_partition_tail(&self, _marker: bool, _payload: &Bytes) -> bool { in is_partition_tail()
H A Dopus_test.rs8 let empty_bytes = Bytes::from_static(&[]); in test_opus_unmarshal()
13 let raw_bytes = Bytes::from_static(&[0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x90]); in test_opus_unmarshal()
23 let empty = Bytes::from_static(&[]); in test_opus_payload()
24 let payload = Bytes::from_static(&[0x90, 0x90, 0x90]); in test_opus_payload()
46 opus.is_partition_head(&Bytes::from_static(&[0x00, 0x00])), in test_opus_is_partition_head()
/webrtc/media/src/io/ivf_reader/
H A Divf_reader_test.rs2 use bytes::Bytes;
6 fn build_ivf_container(frames: &[Bytes]) -> Bytes { in build_ivf_container() argument
15 let header = Bytes::from_static(&[ in build_ivf_container()
62 let valid_frame1 = Bytes::from_static(&[ in test_ivf_reader_parse_valid_frames()
70 let valid_frame2 = Bytes::from_static(&[ in test_ivf_reader_parse_valid_frames()
86 Bytes::from_static(&[0xDE, 0xAD, 0xBE, 0xEF,]), in test_ivf_reader_parse_valid_frames()
102 Bytes::from_static(&[ in test_ivf_reader_parse_valid_frames()
118 let incomplete_frame = Bytes::from_static(&[ in test_ivf_reader_parse_incomplete_frame_header()
137 let incomplete_frame = Bytes::from_static(&[ in test_ivf_reader_parse_incomplete_frame_payload()
/webrtc/srtp/src/cipher/
H A Dmod.rs4 use bytes::Bytes;
46 ) -> Result<Bytes>; in encrypt_rtp() argument
54 ) -> Result<Bytes>; in decrypt_rtp() argument
57 fn encrypt_rtcp(&mut self, payload: &[u8], srtcp_index: usize, ssrc: u32) -> Result<Bytes>; in encrypt_rtcp() argument
60 fn decrypt_rtcp(&mut self, payload: &[u8], srtcp_index: usize, ssrc: u32) -> Result<Bytes>; in decrypt_rtcp() argument
/webrtc/rtcp/src/sender_report/
H A Dsender_report_test.rs8 Bytes::from_static(&[]), in test_sender_report_unmarshal()
14 Bytes::from_static(&[ in test_sender_report_unmarshal()
43 profile_extensions: Bytes::from_static(&[]), in test_sender_report_unmarshal()
49 Bytes::from_static(&[ in test_sender_report_unmarshal()
68 Bytes::from_static(&[ in test_sender_report_unmarshal()
87 Bytes::from_static(&[ in test_sender_report_unmarshal()
105 profile_extensions: Bytes::from_static(&[ in test_sender_report_unmarshal()
176 profile_extensions: Bytes::from_static(&[]), in test_sender_report_roundtrip()
210 profile_extensions: Bytes::from_static(&[1, 2, 3, 4]), in test_sender_report_roundtrip()
/webrtc/rtcp/src/receiver_report/
H A Dreceiver_report_test.rs8 Bytes::from_static(&[ in test_receiver_report_unmarshal()
29 profile_extensions: Bytes::new(), in test_receiver_report_unmarshal()
35 Bytes::from_static(&[ in test_receiver_report_unmarshal()
58 profile_extensions: Bytes::from_static(&[ in test_receiver_report_unmarshal()
66 Bytes::from_static(&[ in test_receiver_report_unmarshal()
78 Bytes::from_static(&[ in test_receiver_report_unmarshal()
94 Bytes::from_static(&[ in test_receiver_report_unmarshal()
109 Bytes::from_static(&[]), in test_receiver_report_unmarshal()
172 profile_extensions: Bytes::from_static(&[]), in test_receiver_report_roundtrip()
/webrtc/rtcp/src/payload_feedbacks/receiver_estimated_maximum_bitrate/
H A Dreceiver_estimated_maximum_bitrate_test.rs2 use bytes::Bytes;
12 let expected = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_marshal()
23 let mut input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_unmarshal()
42 let input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_truncate()
70 let expected = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_truncate()
95 let expected = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_overflow()
115 let mut input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_overflow()
/webrtc/rtcp/src/payload_feedbacks/full_intra_request/
H A Dfull_intra_request_test.rs2 use bytes::Bytes;
9 Bytes::from_static(&[ in test_full_intra_request_unmarshal()
28 Bytes::from_static(&[ in test_full_intra_request_unmarshal()
55 Bytes::from_static(&[0x00, 0x00, 0x00, 0x00]), in test_full_intra_request_unmarshal()
61 Bytes::from_static(&[ in test_full_intra_request_unmarshal()
70 Bytes::from_static(&[ in test_full_intra_request_unmarshal()
82 Bytes::from_static(&[ in test_full_intra_request_unmarshal()
180 Bytes::from_static(&[ in test_full_intra_request_unmarshal_header()
/webrtc/rtcp/src/payload_feedbacks/picture_loss_indication/
H A Dpicture_loss_indication_test.rs2 use bytes::Bytes;
9 Bytes::from_static(&[ in test_picture_loss_indication_unmarshal()
22 Bytes::from_static(&[0x81, 0xce, 0x00, 0x00]), in test_picture_loss_indication_unmarshal()
28 Bytes::from_static(&[ in test_picture_loss_indication_unmarshal()
36 Bytes::from_static(&[ in test_picture_loss_indication_unmarshal()
46 Bytes::from_static(&[ in test_picture_loss_indication_unmarshal()
134 Bytes::from_static(&[ in test_picture_loss_indication_unmarshal_header()
/webrtc/rtcp/src/transport_feedbacks/transport_layer_cc/
H A Dtransport_layer_cc_test.rs2 use bytes::Bytes;
10 Bytes::from_static(&[0, 0xDD]), in test_transport_layer_cc_run_length_chunk_unmarshal()
288 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
314 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
368 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
422 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
473 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
526 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
588 Bytes::from_static(&[ in test_transport_layer_cc_unmarshal()
637 Bytes::from_static(&[ in test_transport_layer_cc_marshal()
[all …]
/webrtc/rtcp/src/transport_feedbacks/rapid_resynchronization_request/
H A Drapid_resynchronization_request_test.rs2 use bytes::Bytes;
9 Bytes::from_static(&[ in test_rapid_resynchronization_request_unmarshal()
22 Bytes::from_static(&[ in test_rapid_resynchronization_request_unmarshal()
32 Bytes::from_static(&[ in test_rapid_resynchronization_request_unmarshal()
47 Bytes::from_static(&[]), in test_rapid_resynchronization_request_unmarshal()

123456