Home
last modified time | relevance | path

Searched refs:num_channels (Results 1 – 25 of 123) sorted by relevance

12345

/external/chromium_org/third_party/webrtc/modules/audio_processing/
Dcommon.h41 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 …]
Daudio_processing_impl.cc153 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 …]
Daudio_processing_impl.h65 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/
Dwav_header.cc31 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()
Dwav_writer.cc27 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()
Dwav_writer.h27 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/
Dutility.cc76 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/
Daudio_encoder.cc48 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/
Dtest_utils.h64 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/
Daudio_util.h65 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/
Dneteq_unittest.cc328 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 …]
Dneteq_stereo_unittest.cc31 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()
Daccelerate.h32 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,
Dpreemptive_expand.h33 size_t num_channels, in PreemptiveExpand() argument
36 : TimeStretch(sample_rate_hz, num_channels, background_noise), in PreemptiveExpand()
81 size_t num_channels,
Dneteq_external_decoder_unittest.cc142 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/
Daudio_decoder.cc27 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()
Daudio_decoder_unittest.cc24 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/
Drescaler.c31 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/
Drescaler.c31 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/
Dpush_resampler.cc35 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/
Daudio_power_monitor.cc35 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/
Dvl_zscan.c109 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/
Dvl_zscan.c109 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/
Dmock_expand.h26 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/
Dp2p_utils.c450 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()

12345