| /webrtc/media/src/audio/buffer/ |
| H A D | layout.rs | 47 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 D | receiver_estimated_maximum_bitrate_test.rs | 6 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 D | uri_test.rs | 48 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 D | socket_addr_ext.rs | 76 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 D | h264_reader_test.rs | 6 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 D | description_test.rs | 37 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 D | README.md | 28 * 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 D | h264_test.rs | 54 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 D | cipher_suite_tls_psk_with_aes_128_gcm_sha256.rs | 87 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() 89 cg.decrypt(input) in decrypt()
|
| H A D | cipher_suite_aes_128_gcm_sha256.rs | 104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() 106 cg.decrypt(input) in decrypt()
|
| H A D | cipher_suite_aes_256_cbc_sha.rs | 104 fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>> { in decrypt() 106 cg.decrypt(input) in decrypt()
|
| H A D | cipher_suite_aes_128_ccm.rs | 109 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 D | generic_test.rs | 58 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 D | replay_detector_test.rs | 253 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 D | abs_send_time_extension_test.rs | 56 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 D | utilities.rs | 54 let input = std::io::stdin(); in chat() localVariable 55 let mut reader = BufReader::new(input.lock()); in chat()
|
| H A D | lib.rs | 94 let input = std::io::stdin(); in chat() localVariable 95 let mut reader = BufReader::new(input.lock()); in chat()
|
| /webrtc/srtp/src/cipher/ |
| H A D | mod.rs | 38 fn get_rtcp_index(&self, input: &[u8]) -> usize; in get_rtcp_index()
|
| H A D | cipher_aead_aes_gcm.rs | 129 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 D | cipher_aes_cm_hmac_sha1.rs | 161 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 D | message_test.rs | 62 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 D | srtcp_test.rs | 238 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 D | packet_test.rs | 1136 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 D | buffer.rs | 339 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 D | README.md | 54 A video should start playing in your browser above the input boxes.
|