Home
last modified time | relevance | path

Searched refs:encoded_len (Results 1 – 25 of 40) sorted by relevance

12

/external/webrtc/modules/audio_coding/codecs/opus/
Daudio_decoder_opus.cc59 size_t encoded_len, in DecodeInternal() argument
66 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
74 size_t encoded_len, in DecodeRedundantInternal() argument
78 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal()
80 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
86 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal()
99 size_t encoded_len) const { in PacketDuration()
100 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration()
104 size_t encoded_len) const { in PacketDurationRedundant()
105 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant()
[all …]
Daudio_decoder_multi_channel_opus_impl.cc105 size_t encoded_len, in DecodeInternal() argument
112 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
122 size_t encoded_len, in DecodeRedundantInternal() argument
126 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal()
128 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
134 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal()
148 size_t encoded_len) const { in PacketDuration()
149 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration()
154 size_t encoded_len) const { in PacketDurationRedundant()
155 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant()
[all …]
Daudio_decoder_opus.h35 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
37 size_t encoded_len) const override;
38 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override;
44 size_t encoded_len,
49 size_t encoded_len,
Daudio_decoder_multi_channel_opus_impl.h38 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
40 size_t encoded_len) const override;
41 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override;
50 size_t encoded_len,
55 size_t encoded_len,
/external/webrtc/modules/audio_coding/codecs/g722/
Daudio_decoder_g722.cc37 size_t encoded_len, in DecodeInternal() argument
44 WebRtcG722_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
61 size_t encoded_len) const { in PacketDuration()
63 return static_cast<int>(2 * encoded_len / Channels()); in PacketDuration()
87 size_t encoded_len, in DecodeInternal() argument
94 uint8_t* encoded_deinterleaved = new uint8_t[encoded_len]; in DecodeInternal()
95 SplitStereoPacket(encoded, encoded_len, encoded_deinterleaved); in DecodeInternal()
98 encoded_len / 2, decoded, &temp_type); in DecodeInternal()
100 dec_state_right_, &encoded_deinterleaved[encoded_len / 2], in DecodeInternal()
101 encoded_len / 2, &decoded[decoded_len], &temp_type); in DecodeInternal()
[all …]
Daudio_decoder_g722.h29 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
35 size_t encoded_len,
57 size_t encoded_len,
69 size_t encoded_len,
/external/webrtc/api/audio_codecs/
Daudio_decoder.cc84 size_t encoded_len, in Decode() argument
90 rtc::MsanCheckInitialized(rtc::MakeArrayView(encoded, encoded_len)); in Decode()
91 int duration = PacketDuration(encoded, encoded_len); in Decode()
96 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in Decode()
101 size_t encoded_len, in DecodeRedundant() argument
107 rtc::MsanCheckInitialized(rtc::MakeArrayView(encoded, encoded_len)); in DecodeRedundant()
108 int duration = PacketDurationRedundant(encoded, encoded_len); in DecodeRedundant()
113 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundant()
118 size_t encoded_len, in DecodeRedundantInternal() argument
122 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
[all …]
Daudio_decoder.h106 size_t encoded_len,
115 size_t encoded_len,
152 virtual int PacketDuration(const uint8_t* encoded, size_t encoded_len) const;
158 size_t encoded_len) const;
163 virtual bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const;
177 size_t encoded_len,
183 size_t encoded_len,
/external/webrtc/modules/audio_coding/codecs/g711/
Daudio_decoder_pcm.cc38 size_t encoded_len, in DecodeInternal() argument
44 size_t ret = WebRtcG711_DecodeU(encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
50 size_t encoded_len) const { in PacketDuration()
52 return static_cast<int>(encoded_len / Channels()); in PacketDuration()
73 size_t encoded_len, in DecodeInternal() argument
79 size_t ret = WebRtcG711_DecodeA(encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
85 size_t encoded_len) const { in PacketDuration()
87 return static_cast<int>(encoded_len / Channels()); in PacketDuration()
Daudio_decoder_pcm.h34 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
40 size_t encoded_len,
58 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
64 size_t encoded_len,
/external/webrtc/modules/audio_coding/neteq/tools/
Dfake_decode_from_file.cc68 size_t encoded_len, in DecodeInternal() argument
74 const int samples_to_decode = PacketDuration(encoded, encoded_len); in DecodeInternal()
77 if (encoded_len == 0) { in DecodeInternal()
87 RTC_CHECK_GE(encoded_len, 12); in DecodeInternal()
126 size_t encoded_len) const { in PacketDuration()
128 encoded_len < 8 + sizeof(uint32_t) in PacketDuration()
132 encoded_len < 4 + sizeof(uint32_t) in PacketDuration()
136 encoded_len == 0 || in PacketDuration()
Dfake_decode_from_file.h50 size_t encoded_len,
55 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
Dconstant_pcm_packet_source.cc34 size_t encoded_len = WebRtcPcm16b_Encode(&sample_value, 1, encoded_sample_); in ConstantPcmPacketSource() local
35 RTC_CHECK_EQ(2U, encoded_len); in ConstantPcmPacketSource()
/external/webrtc/modules/audio_coding/codecs/pcm16b/
Daudio_decoder_pcm16b.cc40 size_t encoded_len, in DecodeInternal() argument
45 size_t ret = WebRtcPcm16b_Decode(encoded, encoded_len, decoded); in DecodeInternal()
60 size_t encoded_len) const { in PacketDuration()
62 return static_cast<int>(encoded_len / (2 * Channels())); in PacketDuration()
Daudio_decoder_pcm16b.h31 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
37 size_t encoded_len,
/external/rust/crates/quiche/deps/boringssl/src/crypto/base64/
Dbase64_test.cc254 const size_t encoded_len = strlen(t.encoded); in TEST_P() local
256 std::vector<uint8_t> out(encoded_len); in TEST_P()
258 for (size_t chunk_size = 1; chunk_size <= encoded_len; chunk_size++) { in TEST_P()
264 for (size_t i = 0; i < encoded_len;) { in TEST_P()
265 size_t todo = encoded_len - i; in TEST_P()
281 if (i == encoded_len || in TEST_P()
282 (i + 1 == encoded_len && t.encoded[i] == '\n') || in TEST_P()
/external/boringssl/src/crypto/base64/
Dbase64_test.cc254 const size_t encoded_len = strlen(t.encoded); in TEST_P() local
256 std::vector<uint8_t> out(encoded_len); in TEST_P()
258 for (size_t chunk_size = 1; chunk_size <= encoded_len; chunk_size++) { in TEST_P()
264 for (size_t i = 0; i < encoded_len;) { in TEST_P()
265 size_t todo = encoded_len - i; in TEST_P()
281 if (i == encoded_len || in TEST_P()
282 (i + 1 == encoded_len && t.encoded[i] == '\n') || in TEST_P()
/external/rust/crates/regex/src/
Dutf8.rs160 let encoded_len = given_cp.encode_utf8(&mut tmp).len(); in prop_roundtrip() localVariable
161 let (got_cp, got_len) = decode_utf8(&tmp[..encoded_len]).unwrap(); in prop_roundtrip()
162 encoded_len == got_len && given_cp == got_cp in prop_roundtrip()
171 let encoded_len = given_cp.encode_utf8(&mut tmp).len(); in prop_roundtrip_last() localVariable
173 decode_last_utf8(&tmp[..encoded_len]).unwrap(); in prop_roundtrip_last()
174 encoded_len == got_len && given_cp == got_cp in prop_roundtrip_last()
/external/webrtc/test/
Daudio_decoder_proxy_factory.h72 size_t encoded_len, in DecodeInternal() argument
79 decoder_->PacketDuration(encoded, encoded_len) * in DecodeInternal()
81 return decoder_->Decode(encoded, encoded_len, sample_rate_hz, in DecodeInternal()
/external/rust/crates/gdbstub/src/protocol/common/
Dhex.rs106 let encoded_len = len * 2; in encode_hex_buf() localVariable
108 if buf.len() < encoded_len { in encode_hex_buf()
112 for i in 0..encoded_len { in encode_hex_buf()
129 Ok(&mut buf[..encoded_len]) in encode_hex_buf()
/external/rust/crates/quiche/deps/boringssl/src/fuzz/
Dsession.cc39 size_t encoded_len; in LLVMFuzzerTestOneInput() local
41 if (!SSL_SESSION_to_bytes(session.get(), &encoded, &encoded_len)) { in LLVMFuzzerTestOneInput()
/external/webrtc/modules/audio_coding/neteq/
Dneteq_decoder_plc_unittest.cc47 size_t encoded_len, in DecodeInternal() argument
51 RTC_CHECK_EQ(encoded_len / 2, 20 * sample_rate_hz_ / 1000); in DecodeInternal()
55 RTC_CHECK(input_->Read(encoded_len / 2, decoded)); in DecodeInternal()
58 return encoded_len / 2; in DecodeInternal()
Dneteq_network_stats_unittest.cc96 size_t encoded_len) const override { in PacketDuration()
102 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override { in PacketHasFec()
118 size_t encoded_len, in DecodeInternal() argument
/external/webrtc/modules/audio_coding/codecs/isac/
Daudio_decoder_isac_t_impl.h40 size_t encoded_len, in DecodeInternal() argument
47 T::DecodeInternal(isac_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
/external/webrtc/modules/audio_coding/codecs/ilbc/
Daudio_decoder_ilbc.cc37 size_t encoded_len, in DecodeInternal() argument
43 int ret = WebRtcIlbcfix_Decode(dec_state_, encoded, encoded_len, decoded, in DecodeInternal()

12