Home
last modified time | relevance | path

Searched refs:channels_ (Results 1 – 25 of 95) sorted by relevance

1234

/external/webrtc/modules/audio_coding/neteq/
Daudio_multi_vector.cc26 channels_.push_back(new AudioVector); in AudioMultiVector()
36 channels_.push_back(new AudioVector(initial_size)); in AudioMultiVector()
42 std::vector<AudioVector*>::iterator it = channels_.begin(); in ~AudioMultiVector()
43 while (it != channels_.end()) { in ~AudioMultiVector()
51 channels_[i]->Clear(); in Clear()
57 channels_[i]->Clear(); in Zeros()
58 channels_[i]->Extend(length); in Zeros()
65 channels_[i]->CopyTo(&(*copy_to)[i]); in CopyTo()
75 channels_[0]->PushBack(append_this.data(), append_this.size()); in PushBackInterleaved()
88 channels_[channel]->PushBack(temp_array, length_per_channel); in PushBackInterleaved()
[all …]
Daudio_decoder_unittest.cc100 channels_(1), in AudioDecoderTest()
130 new int16_t[channels_ * samples_per_10ms]); in EncodeFrame()
137 samples_per_10ms, channels_, in EncodeFrame()
181 decoded.resize((processed_samples + frame_size_) * channels_, 0); in EncodeDecodeTest()
187 rtc::ArrayView<int16_t>(&decoded[processed_samples * channels_], in EncodeDecodeTest()
188 frame_size_ * channels_ * sizeof(int16_t))); in EncodeDecodeTest()
190 EXPECT_EQ(frame_size_ * channels_, decode_result->num_decoded_samples); in EncodeDecodeTest()
200 CompareInputOutput(input, decoded, processed_samples, channels_, tolerance, in EncodeDecodeTest()
202 if (channels_ == 2) in EncodeDecodeTest()
203 CompareTwoChannels(decoded, processed_samples, channels_, in EncodeDecodeTest()
[all …]
/external/webrtc/modules/audio_coding/codecs/opus/
Dopus_unittest.cc144 const size_t channels_{std::get<0>(GetParam())}; member in webrtc::__anon4ee78c5a0111::OpusTest
179 channel_to_basename[channels_], channel_to_suffix[channels_]); in PrepareSpeechData()
186 loop_length_ms * sample_rate_khz * channels_, in PrepareSpeechData()
187 block_length_ms * sample_rate_khz * channels_)); in PrepareSpeechData()
217 rtc::CheckedDivExact(input_audio.size(), channels_); in EncodeDecode()
237 &output_audio[total_dtx_len * channels_], in EncodeDecode()
256 CreateSingleOrMultiStreamEncoder(&opus_encoder_, channels_, application_, in TestDtxEffect()
258 CreateSingleOrMultiStreamDecoder(&opus_decoder_, channels_, use_multistream_, in TestDtxEffect()
263 0, WebRtcOpus_SetBitRate(opus_encoder_, channels_ == 1 ? 32000 : 64000)); in TestDtxEffect()
266 std::vector<int16_t> silence(input_samples * channels_, 0); in TestDtxEffect()
[all …]
Dopus_fec_test.cc52 size_t channels_; member in webrtc::OpusFecTest
71 channels_ = get<0>(GetParam()); in SetUp()
73 printf("Coding %" RTC_PRIuS " channel signal at %d bps.\n", channels_, in SetUp()
88 new int16_t[loop_length_samples_ + block_length_sample_ * channels_]); in SetUp()
101 block_length_sample_ * channels_ * sizeof(int16_t)); in SetUp()
104 max_bytes_ = block_length_sample_ * channels_ * sizeof(int16_t); in SetUp()
106 out_data_.reset(new int16_t[2 * block_length_sample_ * channels_]); in SetUp()
110 int app = channels_ == 1 ? 0 : 1; in SetUp()
113 EXPECT_EQ(0, WebRtcOpus_EncoderCreate(&opus_encoder_, channels_, app, 48000)); in SetUp()
114 EXPECT_EQ(0, WebRtcOpus_DecoderCreate(&opus_decoder_, channels_, 48000)); in SetUp()
[all …]
Daudio_decoder_opus.cc25 : channels_{num_channels}, sample_rate_hz_{sample_rate_hz} { in AudioDecoderOpusImpl()
29 WebRtcOpus_DecoderCreate(&dec_state_, channels_, sample_rate_hz_);
68 ret *= static_cast<int>(channels_); // Return total number of samples. in DecodeInternal()
89 ret *= static_cast<int>(channels_); // Return total number of samples. in DecodeRedundantInternal()
125 return channels_; in Channels()
/external/webrtc/modules/audio_coding/codecs/tools/
Daudio_codec_speed_test.cc40 channels_ = get<0>(GetParam()); in SetUp()
55 new int16_t[loop_length_samples_ + input_length_sample_ * channels_]); in SetUp()
68 input_length_sample_ * channels_ * sizeof(int16_t)); in SetUp()
70 max_bytes_ = input_length_sample_ * channels_ * sizeof(int16_t); in SetUp()
71 out_data_.reset(new int16_t[output_length_sample_ * channels_]); in SetUp()
103 input_sampling_khz_, channels_, bit_rate_); in EncodeDecode()
113 fwrite(&out_data_[0], sizeof(int16_t), output_length_sample_ * channels_, in EncodeDecode()
116 data_pointer_ = (data_pointer_ + input_length_sample_ * channels_) % in EncodeDecode()
/external/grpc-grpc/test/cpp/qps/
Dclient_sync.cc127 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in ThreadFuncImpl()
232 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in InitThreadFuncImpl()
264 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in ThreadFuncImpl()
291 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in InitThreadFuncImpl()
317 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in ThreadFuncImpl()
341 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in InitThreadFuncImpl()
362 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in ThreadFuncImpl()
388 auto* stub = channels_[thread_idx % channels_.size()].get_stub(); in InitThreadFuncImpl()
/external/webrtc/modules/audio_device/include/
Daudio_device_defines.h83 channels_(0), in AudioParameters()
88 channels_(channels), in AudioParameters()
93 channels_ = channels; in reset()
106 size_t channels() const { return channels_; } in channels()
109 size_t GetBytesPerFrame() const { return channels_ * kBitsPerSample / 8; } in GetBytesPerFrame()
116 bool is_valid() const { return ((sample_rate_ > 0) && (channels_ > 0)); } in is_valid()
150 size_t channels_; variable
/external/webrtc/modules/audio_processing/ns/
Dnoise_suppressor.cc265 channels_(num_channels_) { in NoiseSuppressor()
267 channels_[ch] = in NoiseSuppressor()
275 channels_[0]->wiener_filter.get_filter(); in AggregateWienerFilters()
280 channels_[ch]->wiener_filter.get_filter(); in AggregateWienerFilters()
291 channels_[ch]->noise_estimator.PrepareAnalysis(); in Analyze()
300 y_band0, channels_[ch]->analyze_analysis_memory); in Analyze()
326 std::unique_ptr<ChannelState>& ch_p = channels_[ch]; in Analyze()
415 FormExtendedFrame(y_band0, channels_[ch]->process_analysis_memory, in Process()
432 channels_[ch]->wiener_filter.Update( in Process()
434 channels_[ch]->noise_estimator.get_noise_spectrum(), in Process()
[all …]
/external/XNNPACK/test/
Dcopy-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dnegate-operator-tester.h25 this->channels_ = channels; in channels()
30 return this->channels_; in channels()
41 return this->channels_; in input_stride()
43 assert(this->input_stride_ >= this->channels_); in input_stride()
56 return this->channels_; in output_stride()
58 assert(this->output_stride_ >= this->channels_); in output_stride()
137 size_t channels_{1};
Dceiling-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dsquare-operator-tester.h25 this->channels_ = channels; in channels()
30 return this->channels_; in channels()
41 return this->channels_; in input_stride()
43 assert(this->input_stride_ >= this->channels_); in input_stride()
56 return this->channels_; in output_stride()
58 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dsquare-root-operator-tester.h25 this->channels_ = channels; in channels()
30 return this->channels_; in channels()
41 return this->channels_; in input_stride()
43 assert(this->input_stride_ >= this->channels_); in input_stride()
56 return this->channels_; in output_stride()
58 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dtruncation-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dabs-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dbankers-rounding-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Dfloor-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
138 size_t channels_{1};
Delu-operator-tester.h26 this->channels_ = channels; in channels()
31 return this->channels_; in channels()
42 return this->channels_; in input_stride()
44 assert(this->input_stride_ >= this->channels_); in input_stride()
57 return this->channels_; in output_stride()
59 assert(this->output_stride_ >= this->channels_); in output_stride()
153 size_t channels_{1};
Dprelu-operator-tester.h35 this->channels_ = channels; in channels()
40 return this->channels_; in channels()
51 return this->channels_; in x_stride()
53 assert(this->x_stride_ >= this->channels_); in x_stride()
66 return this->channels_; in y_stride()
68 assert(this->y_stride_ >= this->channels_); in y_stride()
140 size_t channels_{1};
Dhardswish-operator-tester.h27 this->channels_ = channels; in channels()
32 return this->channels_; in channels()
43 return this->channels_; in input_stride()
45 assert(this->input_stride_ >= this->channels_); in input_stride()
58 return this->channels_; in output_stride()
60 assert(this->output_stride_ >= this->channels_); in output_stride()
198 size_t channels_{1};
/external/tensorflow/tensorflow/core/kernels/image/
Ddecode_image_op.cc157 OP_REQUIRES_OK(context, context->GetAttr("channels", &channels_)); in DecodeImageV2Op()
160 channels_ == 0 || channels_ == 1 || channels_ == 3 || channels_ == 4, in DecodeImageV2Op()
162 channels_)); in DecodeImageV2Op()
164 channels_ = 3; in DecodeImageV2Op()
222 OP_REQUIRES(context, channels_ == 0 || channels_ == 1 || channels_ == 3, in DecodeJpegV2()
228 flags.components = channels_; in DecodeJpegV2()
326 context, png::CommonInitDecode(input, channels_, channel_bits, &decode), in DecodePngV2()
420 OP_REQUIRES(context, channels_ == 0 || channels_ == 3, in DecodeGifV2()
422 channels_)); in DecodeGifV2()
521 context, channels_ != 1, in DecodeBmpV2()
[all …]
/external/webrtc/audio/voip/
Dvoip_core.cc139 channels_[*channel] = audio_channel; in CreateChannel()
158 auto iter = channels_.find(channel); in ReleaseChannel()
159 if (iter != channels_.end()) { in ReleaseChannel()
161 channels_.erase(iter); in ReleaseChannel()
173 auto iter = channels_.find(channel); in GetChannel()
174 if (iter != channels_.end()) { in GetChannel()
195 audio_senders.reserve(channels_.size()); in UpdateAudioTransportWithSenders()
196 for (auto kv : channels_) { in UpdateAudioTransportWithSenders()
293 for (auto kv : channels_) { in StopPlayout()
/external/webrtc/media/base/
Dfake_media_engine.cc530 channels_.push_back(ch); in CreateMediaChannel()
534 return (channels_.size() > index) ? channels_[index] : NULL; in GetChannel()
537 channels_.erase(absl::c_find(channels_, channel)); in UnregisterChannel()
596 channels_.emplace_back(ch); in CreateMediaChannel()
600 return (channels_.size() > index) ? channels_[index] : nullptr; in GetChannel()
603 auto it = absl::c_find(channels_, channel); in UnregisterChannel()
604 RTC_DCHECK(it != channels_.end()); in UnregisterChannel()
605 channels_.erase(it); in UnregisterChannel()
672 channels_.push_back(ch); in CreateChannel()
676 return (channels_.size() > index) ? channels_[index] : NULL; in GetChannel()
[all …]
/external/webrtc/modules/audio_processing/agc2/
Dvector_float_frame.cc30 : channels_(num_channels, in VectorFloatFrame()
32 channel_ptrs_(ConstructChannelPointers(&channels_)), in VectorFloatFrame()
34 channels_.size(), in VectorFloatFrame()

1234