Home
last modified time | relevance | path

Searched refs:encoded_bytes (Results 1 – 25 of 32) sorted by relevance

12

/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Disac_unittest.cc82 int encoded_bytes; in TEST_F() local
89 encoded_bytes = WebRtcIsac_Encode(isac_codec_, speech_data_, bitstream_); in TEST_F()
90 EXPECT_EQ(0, encoded_bytes); in TEST_F()
91 encoded_bytes = WebRtcIsac_Encode(isac_codec_, speech_data_, bitstream_); in TEST_F()
92 EXPECT_EQ(0, encoded_bytes); in TEST_F()
93 encoded_bytes = WebRtcIsac_Encode(isac_codec_, speech_data_, bitstream_); in TEST_F()
94 EXPECT_EQ(0, encoded_bytes); in TEST_F()
95 encoded_bytes = WebRtcIsac_Encode(isac_codec_, speech_data_, bitstream_); in TEST_F()
96 EXPECT_EQ(0, encoded_bytes); in TEST_F()
97 encoded_bytes = WebRtcIsac_Encode(isac_codec_, speech_data_, bitstream_); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/red/
Daudio_encoder_copy_red.cc63 info.encoded_bytes + secondary_info_.encoded_bytes); in EncodeInternal()
66 if (info.encoded_bytes > 0) { in EncodeInternal()
72 if (secondary_info_.encoded_bytes > 0) { in EncodeInternal()
73 memcpy(&encoded[info.encoded_bytes], secondary_encoded_.data(), in EncodeInternal()
74 secondary_info_.encoded_bytes); in EncodeInternal()
79 secondary_encoded_.SetData(encoded, info.encoded_bytes); in EncodeInternal()
85 info.encoded_bytes = 0; in EncodeInternal()
88 info.encoded_bytes += it->encoded_bytes; in EncodeInternal()
96 secondary_info_.encoded_bytes = 0; in Reset()
Daudio_encoder_copy_red_unittest.cc93 RTC_CHECK_LE(info_.encoded_bytes, max_encoded_bytes); in Encode()
94 memcpy(encoded, payload_, info_.encoded_bytes); in Encode()
160 info.encoded_bytes = kEncodedSize; in TEST_F()
167 EXPECT_EQ(kEncodedSize, encoded_info_.encoded_bytes); in TEST_F()
170 info.encoded_bytes = 0; in TEST_F()
174 EXPECT_EQ(0u, encoded_info_.encoded_bytes); in TEST_F()
177 info.encoded_bytes = kEncodedSize; in TEST_F()
181 EXPECT_EQ(2 * kEncodedSize, encoded_info_.encoded_bytes); in TEST_F()
194 info.encoded_bytes = encode_size; in TEST_F()
203 EXPECT_EQ(1u, encoded_info_.encoded_bytes); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/test/
Disac_speed_test.cc29 size_t max_bytes, size_t* encoded_bytes);
30 virtual float DecodeABlock(const uint8_t* bit_stream, size_t encoded_bytes,
64 size_t max_bytes, size_t* encoded_bytes) { in EncodeABlock() argument
81 *encoded_bytes = static_cast<size_t>(value); in EncodeABlock()
82 assert(*encoded_bytes <= max_bytes); in EncodeABlock()
87 size_t encoded_bytes, in DecodeABlock() argument
92 value = WebRtcIsacfix_Decode(ISACFIX_main_inst_, bit_stream, encoded_bytes, in DecodeABlock()
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Dopus_interface.c302 static int16_t DetermineAudioType(OpusDecInst* inst, size_t encoded_bytes) { in DetermineAudioType() argument
305 if (encoded_bytes == 0 && inst->in_dtx_mode) { in DetermineAudioType()
307 } else if (encoded_bytes == 1) { in DetermineAudioType()
320 size_t encoded_bytes, int frame_size, in DecodeNative() argument
322 int res = opus_decode(inst->decoder, encoded, (opus_int32)encoded_bytes, in DecodeNative()
328 *audio_type = DetermineAudioType(inst, encoded_bytes); in DecodeNative()
334 size_t encoded_bytes, int16_t* decoded, in WebRtcOpus_Decode() argument
338 if (encoded_bytes == 0) { in WebRtcOpus_Decode()
339 *audio_type = DetermineAudioType(inst, encoded_bytes); in WebRtcOpus_Decode()
344 encoded_bytes, in WebRtcOpus_Decode()
[all …]
Dopus_speed_test.cc27 size_t max_bytes, size_t* encoded_bytes);
28 virtual float DecodeABlock(const uint8_t* bit_stream, size_t encoded_bytes,
61 size_t max_bytes, size_t* encoded_bytes) { in EncodeABlock() argument
68 *encoded_bytes = static_cast<size_t>(value); in EncodeABlock()
73 size_t encoded_bytes, int16_t* out_data) { in DecodeABlock() argument
77 value = WebRtcOpus_Decode(opus_decoder_, bit_stream, encoded_bytes, out_data, in DecodeABlock()
Dopus_interface.h239 size_t encoded_bytes, int16_t* decoded,
278 size_t encoded_bytes, int16_t* decoded,
/external/grpc-grpc/test/core/tsi/alts/handshaker/
Dtransport_security_common_api_test.cc67 uint8_t* encoded_bytes = static_cast<uint8_t*>(gpr_malloc(encoded_length)); in test_success() local
69 &version, encoded_bytes, encoded_length)); in test_success()
75 GPR_ASSERT(memcmp(encoded_bytes, GRPC_SLICE_START_PTR(encoded_slice), in test_success()
82 gpr_free(encoded_bytes); in test_success()
100 uint8_t* encoded_bytes = static_cast<uint8_t*>(gpr_malloc(encoded_length)); in test_failure() local
102 nullptr, encoded_bytes, encoded_length)); in test_failure()
106 &version, encoded_bytes, 0)); in test_failure()
118 gpr_free(encoded_bytes); in test_failure()
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
Daudio_encoder_cng_unittest.cc95 info.encoded_bytes = kMockReturnEncodedBytes; in ExpectEncodeCalls()
114 EXPECT_EQ(0u, encoded_info_.encoded_bytes); in CheckBlockGrouping()
120 EXPECT_EQ(kMockReturnEncodedBytes, encoded_info_.encoded_bytes); in CheckBlockGrouping()
123 encoded_info_.encoded_bytes); in CheckBlockGrouping()
275 encoded_info_.encoded_bytes); in TEST_F()
281 EXPECT_EQ(0u, encoded_info_.encoded_bytes); in TEST_F()
366 encoded_info_.encoded_bytes); in TEST_F()
370 EXPECT_EQ(0u, encoded_info_.encoded_bytes); in TEST_F()
377 info.encoded_bytes = kMockReturnEncodedBytes; in TEST_F()
380 EXPECT_EQ(kMockReturnEncodedBytes, encoded_info_.encoded_bytes); in TEST_F()
[all …]
Daudio_encoder_cng.cc225 info.encoded_bytes = encoded_bytes_tmp; in EncodePassive()
251 RTC_CHECK_GT(info.encoded_bytes, 0u) << "Encoder didn't deliver data."; in EncodeActive()
253 RTC_CHECK_EQ(info.encoded_bytes, 0u) in EncodeActive()
/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_bmp_op_test.py34 encoded_bytes = [
59 byte_string = bytes(bytearray(encoded_bytes))
69 encoded_bytes = [
134 byte_string = bytes(bytearray(encoded_bytes))
Ddecode_png_op_test.py35 encoded_bytes = [
43 byte_string = bytes(bytearray(encoded_bytes))
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/
Dunittest.cc55 int encoded_bytes = T::Encode(inst, speech_data, output->data()); in EncodePacket() local
56 if (encoded_bytes > 0 || duration_ms >= 60) { in EncodePacket()
57 EXPECT_GT(encoded_bytes, 0); in EncodePacket()
58 EXPECT_LE(static_cast<size_t>(encoded_bytes), output->size()); in EncodePacket()
59 output->SetSize(encoded_bytes); in EncodePacket()
/external/webrtc/webrtc/modules/audio_coding/codecs/tools/
Daudio_codec_speed_test.h40 size_t max_bytes, size_t* encoded_bytes) = 0;
47 virtual float DecodeABlock(const uint8_t* bit_stream, size_t encoded_bytes,
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
Dneteq_pcmu_quality_test.cc74 } while (info.encoded_bytes == 0); in EncodeBlock()
75 return rtc::checked_cast<int>(info.encoded_bytes); in EncodeBlock()
Dneteq_ilbc_quality_test.cc74 } while (info.encoded_bytes == 0); in EncodeBlock()
75 return rtc::checked_cast<int>(info.encoded_bytes); in EncodeBlock()
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Daudio_encoder_ilbc.cc124 info.encoded_bytes = static_cast<size_t>(output_len); in EncodeInternal()
125 RTC_DCHECK_EQ(info.encoded_bytes, RequiredOutputSizeBytes()); in EncodeInternal()
/external/adhd/cras/src/server/
Dcras_a2dp_info.h55 int a2dp_block_size(struct a2dp_info *a2dp, int encoded_bytes);
/external/webrtc/webrtc/modules/audio_coding/codecs/
Daudio_encoder.cc36 RTC_CHECK_LE(info.encoded_bytes, max_encoded_bytes); in Encode()
Daudio_encoder.h27 size_t encoded_bytes = 0; member
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/
Dvp8_sequence_coder.cc33 size_t encoded_bytes() { return encoded_bytes_; } in encoded_bytes() function in Vp8SequenceCoderEncodeCallback
183 8.0 * encoder_callback.encoded_bytes() / (frame_cnt / inst.maxFramerate); in SequenceCoder()
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
Daudio_encoder_pcm.cc97 info.encoded_bytes = in EncodeInternal()
/external/webrtc/webrtc/modules/audio_coding/acm2/
Daudio_coding_module_impl.cc87 offset += info.redundant[i].encoded_bytes; in ConvertEncodedInfoToFragmentationHeader()
88 frag->fragmentationLength[i] = info.redundant[i].encoded_bytes; in ConvertEncodedInfoToFragmentationHeader()
156 encode_buffer_.SetSize(encoded_info.encoded_bytes); in Encode()
/external/adhd/cras/src/tests/
Da2dp_iodev_unittest.cc515 int a2dp_block_size(struct a2dp_info *a2dp, int encoded_bytes) in a2dp_block_size() argument
520 return encoded_bytes; in a2dp_block_size()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_decoder_unittest.cc145 encoded_info_.encoded_bytes = 0; in EncodeFrame()
152 EXPECT_EQ(0u, encoded_info_.encoded_bytes); in EncodeFrame()
168 return static_cast<int>(encoded_info_.encoded_bytes); in EncodeFrame()

12