/external/chromium_org/third_party/webrtc/modules/audio_processing/ |
D | common.h | 41 ChannelBuffer(int samples_per_channel, int num_channels) in ChannelBuffer() argument 42 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() 43 channels_(new T*[num_channels]), in ChannelBuffer() 45 num_channels_(num_channels) { in ChannelBuffer() 49 ChannelBuffer(const T* data, int samples_per_channel, int num_channels) in ChannelBuffer() argument 50 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() 51 channels_(new T*[num_channels]), in ChannelBuffer() 53 num_channels_(num_channels) { in ChannelBuffer() 59 int num_channels) in ChannelBuffer() argument 60 : data_(new T[samples_per_channel * num_channels]), in ChannelBuffer() [all …]
|
D | audio_processing_impl.cc | 153 fwd_in_format_.num_channels(), in set_sample_rate_hz() 154 fwd_proc_format_.num_channels(), in set_sample_rate_hz() 155 rev_in_format_.num_channels()); in set_sample_rate_hz() 175 rev_in_format_.num_channels(), in InitializeLocked() 177 rev_proc_format_.num_channels(), in InitializeLocked() 180 fwd_in_format_.num_channels(), in InitializeLocked() 182 fwd_proc_format_.num_channels(), in InitializeLocked() 285 num_input_channels == fwd_in_format_.num_channels() && in MaybeInitializeLocked() 286 num_output_channels == fwd_proc_format_.num_channels() && in MaybeInitializeLocked() 287 num_reverse_channels == rev_in_format_.num_channels()) { in MaybeInitializeLocked() [all …]
|
D | audio_processing_impl.h | 65 AudioFormat(int sample_rate_hz, int num_channels) in AudioFormat() argument 67 num_channels_(num_channels) {} in AudioFormat() 70 void set(int rate, int num_channels) { in set() argument 72 num_channels_ = num_channels; in set() 75 int num_channels() const { return num_channels_; } in num_channels() function
|
/external/chromium_org/third_party/webrtc/common_audio/ |
D | wav_header.cc | 31 bool CheckWavParameters(int num_channels, in CheckWavParameters() argument 39 if (num_channels <= 0 || sample_rate <= 0 || bytes_per_sample <= 0) in CheckWavParameters() 43 if (static_cast<uint64_t>(num_channels) > in CheckWavParameters() 49 if (static_cast<uint64_t>(sample_rate) * num_channels * bytes_per_sample > in CheckWavParameters() 79 if (num_samples % num_channels != 0) in CheckWavParameters() 99 int num_channels, in WriteWavHeader() argument 104 assert(CheckWavParameters(num_channels, sample_rate, format, in WriteWavHeader() 137 WriteLE16(&header.fmt.NumChannels, num_channels); in WriteWavHeader() 139 WriteLE32(&header.fmt.ByteRate, (static_cast<uint32_t>(num_channels) in WriteWavHeader() 141 WriteLE16(&header.fmt.BlockAlign, num_channels * bytes_per_sample); in WriteWavHeader()
|
D | wav_writer.cc | 27 WavFile::WavFile(const std::string& filename, int sample_rate, int num_channels) in WavFile() argument 29 num_channels_(num_channels), in WavFile() 90 int num_channels) { in rtc_WavOpen() argument 92 new webrtc::WavFile(filename, sample_rate, num_channels)); in rtc_WavOpen() 110 return reinterpret_cast<const webrtc::WavFile*>(wf)->num_channels(); in rtc_WavNumChannels()
|
D | wav_writer.h | 27 WavFile(const std::string& filename, int sample_rate, int num_channels); 39 int num_channels() const { return num_channels_; } in num_channels() function 59 int num_channels);
|
/external/chromium_org/third_party/webrtc/voice_engine/ |
D | utility.cc | 76 int num_channels, in DownConvertToCodecFormat() argument 84 assert(num_channels == 1 || num_channels == 2); in DownConvertToCodecFormat() 94 if (num_channels == 2 && codec_num_channels == 1) { in DownConvertToCodecFormat() 98 num_channels = 1; in DownConvertToCodecFormat() 102 sample_rate_hz, destination_rate, num_channels) != 0) { in DownConvertToCodecFormat() 107 num_channels); in DownConvertToCodecFormat() 111 const int in_length = samples_per_channel * num_channels; in DownConvertToCodecFormat() 119 dst_af->samples_per_channel_ = out_length / num_channels; in DownConvertToCodecFormat() 121 dst_af->num_channels_ = num_channels; in DownConvertToCodecFormat()
|
/external/chromium_org/media/cast/sender/ |
D | audio_encoder.cc | 48 int num_channels, in ImplBase() argument 53 num_channels_(num_channels), in ImplBase() 204 int num_channels, in OpusImpl() argument 210 num_channels, in OpusImpl() 213 encoder_memory_(new uint8[opus_encoder_get_size(num_channels)]), in OpusImpl() 215 buffer_(new float[num_channels * samples_per_frame_]) { in OpusImpl() 220 num_channels, in OpusImpl() 295 int num_channels, in Pcm16Impl() argument 300 num_channels, in Pcm16Impl() 303 buffer_(new int16[num_channels * samples_per_frame_]) { in Pcm16Impl() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/test/ |
D | test_utils.h | 64 int num_channels, in WriteFloatData() argument 67 size_t length = num_channels * samples_per_channel; in WriteFloatData() 69 Interleave(data, samples_per_channel, num_channels, buffer.get()); in WriteFloatData() 107 int num_channels, in SetContainerFormat() argument 111 frame->num_channels_ = num_channels; in SetContainerFormat() 112 cb->reset(new ChannelBuffer<T>(frame->samples_per_channel_, num_channels)); in SetContainerFormat() 116 int num_channels) { in LayoutFromChannels() argument 117 switch (num_channels) { in LayoutFromChannels()
|
/external/chromium_org/third_party/webrtc/common_audio/include/ |
D | audio_util.h | 65 int num_channels, T* const* deinterleaved) { in Deinterleave() argument 66 for (int i = 0; i < num_channels; ++i) { in Deinterleave() 71 interleaved_idx += num_channels; in Deinterleave() 81 int num_channels, T* interleaved) { in Interleave() argument 82 for (int i = 0; i < num_channels; ++i) { in Interleave() 87 interleaved_idx += num_channels; in Interleave()
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
D | neteq_unittest.cc | 328 int num_channels; in Process() local 330 &num_channels, &type)); in Process() 471 int num_channels; in TEST_F() local 474 &num_channels, &type)); in TEST_F() 509 int num_channels; in TEST_F() local 512 &num_channels, &type)); in TEST_F() 539 int num_channels; in TEST_F() local 542 &num_channels, &type)); in TEST_F() 570 int num_channels; in TEST_F() local 573 &num_channels, &type)); in TEST_F() [all …]
|
D | neteq_stereo_unittest.cc | 31 int num_channels; member 51 : num_channels_(GetParam().num_channels), in NetEqStereoTest() 216 int num_channels; in RunTest() local 219 &samples_per_channel, &num_channels, in RunTest() 221 EXPECT_EQ(1, num_channels); in RunTest() 227 &samples_per_channel, &num_channels, in RunTest() 229 EXPECT_EQ(num_channels_, num_channels); in RunTest() 380 p.num_channels = 2; in GetTestParameters() 384 p.num_channels = 5; in GetTestParameters() 395 ", num_channels = " << p.num_channels << in PrintTo()
|
D | accelerate.h | 32 Accelerate(int sample_rate_hz, size_t num_channels, in Accelerate() argument 34 : TimeStretch(sample_rate_hz, num_channels, background_noise) { in Accelerate() 72 size_t num_channels,
|
D | preemptive_expand.h | 33 size_t num_channels, in PreemptiveExpand() argument 36 : TimeStretch(sample_rate_hz, num_channels, background_noise), in PreemptiveExpand() 81 size_t num_channels,
|
D | neteq_external_decoder_unittest.cc | 142 int num_channels; in GetOutputAudio() local 147 &num_channels, in GetOutputAudio() 149 EXPECT_EQ(1, num_channels); in GetOutputAudio() 156 &num_channels, in GetOutputAudio() 158 EXPECT_EQ(1, num_channels); in GetOutputAudio() 281 int num_channels; in GetOutputAudio() local 287 &num_channels, in GetOutputAudio() 289 EXPECT_EQ(1, num_channels); in GetOutputAudio()
|
/external/chromium_org/media/cast/receiver/ |
D | audio_decoder.cc | 27 int num_channels, in ImplBase() argument 31 num_channels_(num_channels), in ImplBase() 96 int num_channels, in OpusImpl() argument 100 num_channels, in OpusImpl() 102 decoder_memory_(new uint8[opus_decoder_get_size(num_channels)]), in OpusImpl() 106 buffer_(new float[max_samples_per_frame_ * num_channels]) { in OpusImpl() 109 if (opus_decoder_init(opus_decoder_, sampling_rate, num_channels) != in OpusImpl() 166 int num_channels, in Pcm16Impl() argument 170 num_channels, in Pcm16Impl()
|
D | audio_decoder_unittest.cc | 24 int num_channels; member 28 : codec(c), num_channels(n), sampling_rate(s) {} in TestScenario() 46 GetParam().num_channels, in SetUp() 52 new TestAudioBusFactory(GetParam().num_channels, in SetUp() 61 new uint8[opus_encoder_get_size(GetParam().num_channels)]); in SetUp() 66 GetParam().num_channels, in SetUp()
|
/external/chromium_org/third_party/libwebp/utils/ |
D | rescaler.c | 31 const int x_stride = wrk->num_channels; in ImportRowC() 32 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowC() 78 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowC() 97 const int x_stride = wrk->num_channels; in ImportRowMIPS() 98 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowMIPS() 198 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowMIPS() 260 int dst_stride, int num_channels, int x_add, int x_sub, in WebPRescalerInit() argument 269 wrk->num_channels = num_channels; in WebPRescalerInit() 282 wrk->frow = work + num_channels * dst_width; in WebPRescalerInit() 314 for (channel = 0; channel < wrk->num_channels; ++channel) { in WebPRescalerImport()
|
/external/webp/src/utils/ |
D | rescaler.c | 31 const int x_stride = wrk->num_channels; in ImportRowC() 32 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowC() 78 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowC() 97 const int x_stride = wrk->num_channels; in ImportRowMIPS() 98 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowMIPS() 198 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowMIPS() 260 int dst_stride, int num_channels, int x_add, int x_sub, in WebPRescalerInit() argument 269 wrk->num_channels = num_channels; in WebPRescalerInit() 282 wrk->frow = work + num_channels * dst_width; in WebPRescalerInit() 314 for (channel = 0; channel < wrk->num_channels; ++channel) { in WebPRescalerImport()
|
/external/chromium_org/third_party/webrtc/common_audio/resampler/ |
D | push_resampler.cc | 35 int num_channels) { in InitializeIfNeeded() argument 38 num_channels == num_channels_) in InitializeIfNeeded() 43 num_channels <= 0 || num_channels > 2) in InitializeIfNeeded() 48 num_channels_ = num_channels; in InitializeIfNeeded()
|
/external/chromium_org/media/audio/ |
D | audio_power_monitor.cc | 35 const int num_channels = buffer.channels(); in Scan() local 36 if (num_frames <= 0 || num_channels <= 0) in Scan() 43 for (int i = 0; i < num_channels; ++i) { in Scan() 56 average_power_ = std::max(0.0f, std::min(1.0f, sum_power / num_channels)); in Scan()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
D | vl_zscan.c | 109 o_vtex = MALLOC(zscan->num_channels * sizeof(struct ureg_dst)); in create_vert_shader() 123 for (i = 0; i < zscan->num_channels; ++i) in create_vert_shader() 148 for (i = 0; i < zscan->num_channels; ++i) { in create_vert_shader() 151 * (i - (signed)zscan->num_channels / 2))); in create_vert_shader() 186 vtex = MALLOC(zscan->num_channels * sizeof(struct ureg_src)); in create_frag_shader() 187 tmp = MALLOC(zscan->num_channels * sizeof(struct ureg_dst)); in create_frag_shader() 189 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 196 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 207 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 210 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_zscan.c | 109 o_vtex = MALLOC(zscan->num_channels * sizeof(struct ureg_dst)); in create_vert_shader() 123 for (i = 0; i < zscan->num_channels; ++i) in create_vert_shader() 148 for (i = 0; i < zscan->num_channels; ++i) { in create_vert_shader() 151 * (i - (signed)zscan->num_channels / 2))); in create_vert_shader() 186 vtex = MALLOC(zscan->num_channels * sizeof(struct ureg_src)); in create_frag_shader() 187 tmp = MALLOC(zscan->num_channels * sizeof(struct ureg_dst)); in create_frag_shader() 189 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 196 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 207 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() 210 for (i = 0; i < zscan->num_channels; ++i) in create_frag_shader() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/mock/ |
D | mock_expand.h | 26 size_t num_channels) in MockExpand() argument 27 : Expand(background_noise, sync_buffer, random_vector, fs, num_channels) { in MockExpand() 54 size_t num_channels));
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_utils.c | 450 static u8 p2p_channel_pick_random(const u8 *channels, unsigned int num_channels) in p2p_channel_pick_random() argument 455 r %= num_channels; in p2p_channel_pick_random() 495 unsigned int num_channels = 0; in p2p_channel_random_social() local 499 chan[num_channels++] = 1; in p2p_channel_random_social() 501 chan[num_channels++] = 6; in p2p_channel_random_social() 503 chan[num_channels++] = 11; in p2p_channel_random_social() 507 chan[num_channels++] = 2; in p2p_channel_random_social() 509 if (num_channels == 0) in p2p_channel_random_social() 512 *op_channel = p2p_channel_pick_random(chan, num_channels); in p2p_channel_random_social()
|