Searched refs:kChannels (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/remoting/codec/
H A Daudio_encoder_opus_unittest.cc22 const int kChannels = 2; member in namespace:remoting::__anon10425
71 std::vector<int16> data(samples * kChannels);
73 data[i * kChannels] = GetSampleValue(rate, frequency_hz, i + pos, 0);
74 data[i * kChannels + 1] = GetSampleValue(rate, frequency_hz, i + pos, 1);
79 samples * kChannels * sizeof(int16));
92 i < received_data.size() / kChannels - 1; i++) {
93 int16 this_sample = received_data[i * kChannels];
94 int16 next_sample = received_data[(i + 1) * kChannels];
113 i < received_data.size() / kChannels; i++) {
114 double d = received_data[i * kChannels]
[all...]
/external/chromium_org/media/base/
H A Daudio_fifo_unittest.cc28 static const int kChannels = 6; local
30 AudioFifo fifo(kChannels, kMaxFrameCount);
36 static const int kChannels = 2; local
38 AudioFifo fifo(kChannels, kMaxFrameCount);
41 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount / 2);
49 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount);
59 static const int kChannels = 2; local
61 AudioFifo fifo(kChannels, kMaxFrameCount);
63 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount);
69 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCoun
88 static const int kChannels = 2; local
130 static const int kChannels = 2; local
[all...]
H A Daudio_pull_fifo_unittest.cc21 static int kChannels = 2; member in namespace:media
30 : pull_fifo_(kChannels, kMaxFramesInFifo, base::Bind(
32 audio_bus_(AudioBus::Create(kChannels, kMaxFramesInFifo)),
52 for (int j = 0; j < kChannels; ++j) {
H A Daudio_bus_unittest.cc16 static const int kChannels = 6; member in namespace:media
32 EXPECT_EQ(kChannels, bus->channels());
108 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount);
124 data_.reserve(kChannels);
125 for (int i = 0; i < kChannels; ++i) {
169 scoped_ptr<AudioBus> bus1 = AudioBus::Create(kChannels, kFrameCount);
179 data_.reserve(kChannels);
180 for (int i = 0; i < kChannels; ++i) {
203 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount);
386 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCoun
[all...]
H A Daudio_splicer_unittest.cc17 static const int kChannels = 1; member in namespace:media
36 kChannels,
48 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, frames);
/external/chromium_org/remoting/client/
H A Daudio_player.cc14 const int kChannels = 2; variable
39 DCHECK_EQ(static_cast<int>(kChannels), packet->channels());
40 DCHECK_EQ(packet->data(0).size() % (kChannels * kSampleSizeBytes), 0u);
70 kMaxQueueLatencyMs * sampling_rate_ * kSampleSizeBytes * kChannels /
99 const size_t bytes_needed = kChannels * kSampleSizeBytes *
/external/chromium_org/remoting/host/
H A Daudio_capturer_win.cc18 const int kChannels = 2; member in namespace:__anon10431
123 wave_format_ex_->nChannels = kChannels;
125 wave_format_ex_->nBlockAlign = kChannels * kBytesPerSample;
127 sampling_rate_ * kChannels * kBytesPerSample;
146 wave_format_extensible->Format.nChannels = kChannels;
150 kChannels * kBytesPerSample;
152 sampling_rate_ * kChannels * kBytesPerSample;
193 silence_detector_.Reset(sampling_rate_, kChannels);
247 reinterpret_cast<const int16*>(data), frames * kChannels)) {
/external/chromium_org/native_client_sdk/src/examples/api/audio/
H A Daudio.cc26 const uint32_t kChannels = 2u; member in namespace:__anon9076
72 (sizeof(*buff) * kChannels * instance->sample_frame_count_));
82 for (size_t channel = 0; channel < kChannels; ++channel) {
/external/chromium_org/media/filters/
H A Daudio_renderer_algorithm_unittest.cc422 const int kChannels = 3; local
426 scoped_ptr<AudioBus> a = AudioBus::Create(kChannels, kFrames);
427 scoped_ptr<AudioBus> b = AudioBus::Create(kChannels, kFrames);
429 scoped_ptr<float[]> dot_prod(new float[kChannels]);
455 const int kChannels = 2; local
459 scoped_ptr<AudioBus> a = AudioBus::Create(kChannels, kFrames);
460 scoped_ptr<float[]> energies(new float[kChannels * kNumBlocks]);
493 const int kChannels = 2; local
501 scoped_ptr<AudioBus> search_region = AudioBus::Create(kChannels,
515 scoped_ptr<AudioBus> target = AudioBus::Create(kChannels,
[all...]
H A Daudio_renderer_impl_unittest.cc35 static int kChannels = ChannelLayoutToChannelCount(kChannelLayout); member in namespace:media
236 kChannels,
269 AudioBus::Create(kChannels, std::max(requested_frames, 1));
291 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, 1024);
/external/chromium_org/remoting/host/linux/
H A Daudio_pipe_reader.cc24 const int kChannels = 2; member in namespace:remoting::__anon10473
27 kSamplesPerSecond * kChannels * kBytesPerSample;
151 int incomplete_samples_bytes = pos % (kChannels * kBytesPerSample);
/external/webrtc/src/common_audio/resampler/
H A Dresampler_unittest.cc120 const int kChannels = 2; local
128 int in_length = kChannels * kRates[i] / 100;
134 EXPECT_EQ(kChannels * kRates[j] / 100, out_length);
/external/chromium_org/chrome/installer/util/
H A Dchannel_info.cc28 const wchar_t* const kChannels[] = { member in namespace:__anon7082
167 for (const wchar_t* const* scan = &kChannels[0],
168 *const* end = &kChannels[arraysize(kChannels)]; scan != end;
/external/chromium_org/media/audio/mac/
H A Daudio_synchronized_mac.cc23 static const int kChannels = 2; member in namespace:media
77 fifo_(kChannels, kFifoSize),
87 channels_(kChannels) {
98 if (params_.channels() != kChannels) {
/external/opencv/cxcore/include/
H A Dcvwimage.h264 enum { kChannels = C }; enumerator in enum:cv::WImageC::__anon24335
362 enum { kChannels = C }; enumerator in enum:cv::WImageBufferC::__anon24336
458 enum { kChannels = C }; enumerator in enum:cv::WImageViewC::__anon24337

Completed in 1107 milliseconds