Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 31) sorted by relevance

12

/webrtc/media/src/audio/buffer/
H A Dlayout.rs47 assert_eq!(input.len(), output.len()); in deinterleaved_by()
48 assert_eq!(input.len() % channels, 0); in deinterleaved_by()
50 let frames = input.len() / channels; in deinterleaved_by()
77 assert_eq!(input.len(), output.len()); in interleaved_by()
78 assert_eq!(input.len() % channels, 0); in interleaved_by()
80 let frames = input.len() / channels; in interleaved_by()
99 let mut output = vec![0; input.len()]; in interleaved_1_channel()
113 let mut output = vec![0; input.len()]; in deinterleaved_1_channel()
127 let mut output = vec![0; input.len()]; in interleaved_2_channel()
141 let mut output = vec![0; input.len()]; in deinterleaved_2_channel()
[all …]
/webrtc/rtcp/src/payload_feedbacks/receiver_estimated_maximum_bitrate/
H A Dreceiver_estimated_maximum_bitrate_test.rs6 let input = ReceiverEstimatedMaximumBitrate { in test_receiver_estimated_maximum_bitrate_marshal() localVariable
16 let output = input.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_marshal()
23 let mut input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_unmarshal() localVariable
36 let packet = ReceiverEstimatedMaximumBitrate::unmarshal(&mut input).unwrap(); in test_receiver_estimated_maximum_bitrate_unmarshal()
42 let input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_truncate() localVariable
53 let mut buf = input.clone(); in test_receiver_estimated_maximum_bitrate_truncate()
59 assert_eq!(output, input); in test_receiver_estimated_maximum_bitrate_truncate()
69 assert_ne!(output, input); in test_receiver_estimated_maximum_bitrate_truncate()
115 let mut input = Bytes::from_static(&[ in test_receiver_estimated_maximum_bitrate_overflow() localVariable
118 let packet = ReceiverEstimatedMaximumBitrate::unmarshal(&mut input).unwrap(); in test_receiver_estimated_maximum_bitrate_overflow()
/webrtc/stun/src/uri/
H A Duri_test.rs48 for (name, input, output, expected_str) in tests { in test_parse_uri()
49 let out = Uri::parse_uri(input)?; in test_parse_uri()
61 for (name, input) in tests { in test_parse_uri()
62 let result = Uri::parse_uri(input); in test_parse_uri()
/webrtc/ice/src/udp_mux/
H A Dsocket_addr_ext.rs76 Ok(input) => u16::from_le_bytes(*input), in decode()
95 Ok(input) => Ipv6Addr::from(*input), in decode()
99 Ok(input) => u16::from_le_bytes(*input), in decode()
104 Ok(input) => u32::from_le_bytes(*input), in decode()
109 Ok(input) => u32::from_le_bytes(*input), in decode()
/webrtc/media/src/io/h264_reader/
H A Dh264_reader_test.rs6 let test_function = |input: &[u8]| { in test_data_does_not_start_with_h264header()
7 let mut reader = H264Reader::new(Cursor::new(input), 1_048_576); in test_data_does_not_start_with_h264header()
42 let test_function = |input: &[u8]| { in test_eof()
43 let mut reader = H264Reader::new(Cursor::new(input), 1_048_576); in test_eof()
/webrtc/sdp/src/description/
H A Ddescription_test.rs37 let input = CANONICAL_MARSHAL_SDP; in test_unmarshal_marshal() localVariable
38 let mut reader = Cursor::new(input.as_bytes()); in test_unmarshal_marshal()
41 assert_eq!(output, input); in test_unmarshal_marshal()
582 let input = "v=0\r\no=0 0 0 IN IP4 0\r\ns=0\r\nc=IN IP4\r\nt=0 0\r\n"; in test_unmarshal_non_nil_address() localVariable
583 let mut reader = Cursor::new(input); in test_unmarshal_non_nil_address()
587 assert_eq!(output.as_str(), input); in test_unmarshal_non_nil_address()
589 panic!("{}", input); in test_unmarshal_non_nil_address()
/webrtc/examples/examples/broadcast/
H A DREADME.md28 * Copy the string in the first input labelled `Browser base64 Session Description`
30 …minal application will respond with an answer, paste this into the second input field in your brow…
37 * Copy the string in the first input labelled `Browser base64 Session Description`
39 …minal application will respond with an answer, paste this into the second input field in your brow…
/webrtc/webrtc/src/rtp_transceiver/fmtp/h264/
H A Dh264_test.rs54 for (name, input, expected) in tests { in test_h264_fmtp_parse()
55 let f = parse("video/h264", input); in test_h264_fmtp_parse()
/webrtc/dtls/src/cipher_suite/
H A Dcipher_suite_tls_psk_with_aes_128_gcm_sha256.rs87 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt()
89 cg.decrypt(input) in decrypt()
H A Dcipher_suite_aes_128_gcm_sha256.rs104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt()
106 cg.decrypt(input) in decrypt()
H A Dcipher_suite_aes_256_cbc_sha.rs104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt()
106 cg.decrypt(input) in decrypt()
H A Dcipher_suite_aes_128_ccm.rs109 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt()
111 ccm.decrypt(input) in decrypt()
/webrtc/webrtc/src/rtp_transceiver/fmtp/generic/
H A Dgeneric_test.rs58 for (name, input, expected) in tests { in test_generic_fmtp_parse()
59 let f = parse("generic", input); in test_generic_fmtp_parse()
/webrtc/util/src/replay_detector/
H A Dreplay_detector_test.rs253 for (name, windows_size, max_seq, input, valid, expected, mut expected_wrap) in tests { in test_replay_detector()
267 for (i, seq) in input.iter().enumerate() { in test_replay_detector()
/webrtc/rtp/src/extension/abs_send_time_extension/
H A Dabs_send_time_extension_test.rs56 let input = UNIX_EPOCH in test_ntp_conversion() localVariable
59 let diff = input.duration_since(output).unwrap().as_nanos() as i128; in test_ntp_conversion()
/webrtc/dtls/examples/hub/src/
H A Dutilities.rs54 let input = std::io::stdin(); in chat() localVariable
55 let mut reader = BufReader::new(input.lock()); in chat()
H A Dlib.rs94 let input = std::io::stdin(); in chat() localVariable
95 let mut reader = BufReader::new(input.lock()); in chat()
/webrtc/srtp/src/cipher/
H A Dmod.rs38 fn get_rtcp_index(&self, input: &[u8]) -> usize; in get_rtcp_index()
H A Dcipher_aead_aes_gcm.rs129 fn get_rtcp_index(&self, input: &[u8]) -> usize { in get_rtcp_index()
130 let pos = input.len() - 4; in get_rtcp_index()
131 let val = BigEndian::read_u32(&input[pos..]); in get_rtcp_index()
H A Dcipher_aes_cm_hmac_sha1.rs161 fn get_rtcp_index(&self, input: &[u8]) -> usize { in get_rtcp_index()
162 let tail_offset = input.len() - (self.auth_tag_len() + SRTCP_INDEX_SIZE); in get_rtcp_index()
163 (BigEndian::read_u32(&input[tail_offset..tail_offset + SRTCP_INDEX_SIZE]) & !(1 << 31)) in get_rtcp_index()
/webrtc/stun/src/message/
H A Dmessage_test.rs62 for (input, output) in tests { in test_message_type_value()
63 let b = input.value(); in test_message_type_value()
96 for (input, output) in tests { in test_message_type_read_value()
98 m.read_value(input); in test_message_type_read_value()
597 for (input, output) in tests { in test_is_message()
598 let got = is_message(&input); in test_is_message()
/webrtc/srtp/src/context/
H A Dsrtcp_test.rs238 for input in &inputs { in test_encrypt_rtcp_separation()
239 let encrypted = encrypt_context.encrypt_rtcp(input)?; in test_encrypt_rtcp_separation()
/webrtc/rtp/src/packet/
H A Dpacket_test.rs1136 input: Bytes, field
1146 input: Bytes::from_static(&[ in test_unmarshal_error_handling()
1157 input: Bytes::from_static(&[ in test_unmarshal_error_handling()
1168 input: Bytes::from_static(&[ in test_unmarshal_error_handling()
1179 input: Bytes::from_static(&[ in test_unmarshal_error_handling()
1191 input: Bytes::from_static(&[ in test_unmarshal_error_handling()
1203 let result = Header::unmarshal(&mut test_case.input); in test_unmarshal_error_handling()
/webrtc/media/src/audio/
H A Dbuffer.rs339 let input: Buffer<i32, Interleaved> = Buffer::new(input_samples, channels); in deinterleaved_from_interleaved() localVariable
341 let output = Buffer::<i32, Deinterleaved>::from(input); in deinterleaved_from_interleaved()
354 let input: Buffer<i32, Deinterleaved> = Buffer::new(input_samples, channels); in interleaved_from_deinterleaved() localVariable
356 let output = Buffer::<i32, Interleaved>::from(input); in interleaved_from_deinterleaved()
/webrtc/examples/examples/rtp-to-webrtc/
H A DREADME.md54 A video should start playing in your browser above the input boxes.

12