/external/tensorflow/tensorflow/core/kernels/ |
resize_bicubic_op_test.cc | 115 const int channels = images.dimension(3); local 118 ASSERT_EQ(channels, output.dimension(3)); 138 for (int64 c = 0; c < channels; ++c) { 160 const int target_width, int channels) { 162 << channels << " to " << target_height << "x" << target_width 163 << "x" << channels; local 165 TensorShape({batch_size, in_height, in_width, channels})); 173 TensorShape({batch_size, target_height, target_width, channels}))); 185 void RunManyRandomTests(int channels) { 192 channels); [all...] |
resize_bilinear_op.cc | 106 const int64 out_width, const int channels, 114 const int64 out_width, const int channels, 118 const int64 in_row_size = in_width * channels; 120 const int64 out_row_size = out_width * channels; 125 if (channels == 3) { 156 output_y_ptr[x * channels + 0] = 159 output_y_ptr[x * channels + 1] = 162 output_y_ptr[x * channels + 2] = 181 for (int c = 0; c < channels; ++c) { 186 output_y_ptr[x * channels + c] 210 const int channels = images.dimension(3); local 283 const int channels = output_grad.dimension(3); local [all...] |
resize_bilinear_op_gpu.cu.cc | 39 int channels, int out_height, 42 // out_idx = c + channels * (x + out_width * (y + out_height * b)) 44 const int c = idx % channels; 45 idx /= channels; 65 channels + 69 channels + 73 channels + 77 channels + 90 int channels, int resized_height, int resized_width, T* output_grad) { 92 // in_idx = c + channels * (x + resized_width * (y + resized_height * b) 158 const int channels = images.dimension(3); local 185 const int channels = output_grad.dimension(3); local [all...] |
/external/tinyalsa/include/tinyalsa/ |
asoundlib.h | 93 unsigned int channels; member in struct:pcm_config
|
/external/tinyalsa/ |
tinycap.c | 63 unsigned int channels, unsigned int rate, 78 unsigned int channels = 2; local 89 " [-c channels] [-r rate] [-b bits] [-p period_size]" 110 channels = atoi(*argv); 146 header.num_channels = channels; 166 header.byte_rate = (header.bits_per_sample / 8) * channels * rate; 167 header.block_align = channels * (header.bits_per_sample / 8); 194 unsigned int channels, unsigned int rate, 208 config.channels = channels; [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
opus_interface.c | 45 size_t channels, 66 state->zero_counts = calloc(channels, sizeof(size_t)); 70 state->encoder = opus_encoder_create(48000, (int)channels, opus_app, 78 state->channels = channels; 110 const size_t channels = inst->channels; local 117 for (c = 0; c < channels; ++c) { 118 if (audio_in[i * channels + c] == 0) { 122 memcpy(buffer, audio_in, samples * channels * sizeof(int16_t)) 451 int frames, channels, payload_length_ms; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
neteq_quality_test.cc | 52 "and channels with --channels)."); 70 // Define switch for channels. 74 printf("Invalid number of channels, current support only 1."); 78 DEFINE_int32(channels, 1, "Number of channels in input audio."); 397 size_t channels; local 400 &samples, &channels, NULL); 405 assert(channels == channels_); 407 RTC_CHECK(output_->WriteArray(out_data_.get(), samples * channels)); [all...] |
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
WebRtcAudioManager.java | 28 // fundamental audio parameters like native sample rate and number of channels. 62 private static final int CHANNELS = 1; 85 private int channels; field in class:WebRtcAudioManager 100 sampleRate, channels, hardwareAEC, hardwareAGC, hardwareNS, 139 channels = CHANNELS; 147 getMinOutputFrameSize(sampleRate, channels); 149 inputBufferSize = getMinInputFrameSize(sampleRate, channels); 269 assertTrue(numChannels == CHANNELS); 289 int sampleRate, int channels, boolean hardwareAEC, boolean hardwareAGC [all...] |
/external/webrtc/webrtc/modules/audio_device/android/ |
opensles_player.cc | 55 pcm_format_ = CreatePCMConfiguration(audio_parameters_.channels(), 182 const size_t channels = audio_parameters_.channels(); local 183 ALOGD("SetPlayoutChannels(%" PRIuS ")", channels); 184 audio_device_buffer_->SetPlayoutChannels(channels); 190 size_t channels, 197 format.numChannels = static_cast<SLuint32>(channels); 229 RTC_CHECK(false) << "Unsupported number of channels: "
|
/external/webrtc/webrtc/modules/audio_device/include/ |
audio_device_defines.h | 69 // Method to pass captured data directly and unmixed to network channels. 70 // |channel_ids| contains a list of VoE channels which are the 122 // Method to pull mixed render audio data from all active VoE channels. 139 // number of channels, native buffer size etc. 152 AudioParameters(int sample_rate, size_t channels, size_t frames_per_buffer) 154 channels_(channels), 157 void reset(int sample_rate, size_t channels, size_t frames_per_buffer) { 159 channels_ = channels; 164 void reset(int sample_rate, size_t channels, double ms_per_buffer) { 165 reset(sample_rate, channels, 172 size_t channels() const { return channels_; } function in class:webrtc::AudioParameters [all...] |
/external/webrtc/webrtc/modules/audio_device/linux/ |
audio_mixer_manager_pulse_linux.cc | 260 // Get the number of channels from the sample specification 270 // Set the same volume for all channels 272 LATE(pa_cvolume_set)(&cVolumes, spec->channels, volume); 797 // The device may have a different number of channels than the stream and 803 // instead we look up the actual number of channels that the device has. 819 // Get the number of channels for this source 827 uint8_t channels = _paChannels; local 829 LATE(pa_cvolume_set)(&cVolumes, channels, volume); 1033 _paChannels = i->channel_map.channels; // Get number of channels [all...] |
/external/webrtc/webrtc/modules/audio_device/mac/ |
audio_mixer_manager_mac.cc | 139 // get number of channels from stream format 142 // Get the stream format, to be able to read the number of channels. 188 // get number of channels from stream format 191 // Get the stream format, to be able to read the number of channels. 283 unsigned int channels = 0; local 301 // Otherwise get the average volume across channels. 313 channels++; 317 if (channels == 0) { 323 assert(channels > 0); 325 volume = static_cast<uint32_t>(255 * vol / channels + 0.5) 519 unsigned int channels = 0; local 695 unsigned int channels = 0; local 904 unsigned int channels = 0; local [all...] |
/external/webrtc/webrtc/modules/audio_processing/ |
audio_buffer.cc | 127 input_buffer_->fbuf()->channels()[0]); 128 data_ptr = input_buffer_->fbuf_const()->channels(); 136 process_buffer_->channels()[i], 139 data_ptr = process_buffer_->channels(); 146 data_->fbuf()->channels()[i]); 159 data_ptr = process_buffer_->channels(); 162 FloatS16ToFloat(data_->fbuf()->channels()[i], 192 return data_->ibuf_const()->channels(); 195 int16_t* const* AudioBuffer::channels() { function in class:webrtc::AudioBuffer 197 return data_->ibuf()->channels(); [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
debug_dump_test.cc | 60 // Sets if converts stereo input signal to mono by discarding other channels. 67 // channels. 73 // Sets the required channels of the APM output. 74 void SetOutputChannels(int channels); 84 static void ReadAndDeinterleave(ResampleInputAudioFile* audio, int channels, 156 const int channels = mono ? 1 : input_file_channels_; local 157 input_config_.set_num_channels(channels); 168 const int channels = mono ? 1 : reverse_file_channels_; local 169 reverse_config_.set_num_channels(channels); 178 void DebugDumpGenerator::SetOutputChannels(int channels) { [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_receiver_impl.cc | 99 const size_t channels, 108 payload_name, payload_type, frequency, channels, rate, 255 size_t channels = 1; local 286 channels = payload->typeSpecific.Audio.channels; 305 rtp_header.payload_type_frequency, channels, rate)) {
|
/external/wpa_supplicant_8/src/p2p/ |
p2p_go_neg.c | 41 u8 channels; local 44 ch = &dev->channels; 64 channels = *pos++; 65 if (channels > end - pos) { 69 cl->channels = channels > P2P_MAX_REG_CLASS_CHANNELS ? 70 P2P_MAX_REG_CLASS_CHANNELS : channels; 71 os_memcpy(cl->channel, pos, cl->channels); 72 pos += channels; 78 p2p_channels_intersect(own, &dev->channels, &intersection) [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
AudioPort.cpp | 81 audio_channel_mask_t channels = channelsToExport[chanIndex]; local 82 if (flatenedChannels.indexOf(channels) < 0) { 83 flatenedChannels.add(channels); 123 // Import only valid port, i.e. valid format, non empty rates and channels masks 345 ALOGV("%s Port[nm:%s] profile rate=%d, format=%d, channels=%d", __FUNCTION__, mName.string(),
|
ConfigParsingUtils.cpp | 159 ChannelsVector channels; local 172 channels = inputChannelMasksFromString(node->value); 174 channels = outputChannelMasksFromString(node->value); 192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates); 194 profileToAdd->setDynamicChannels(channels.isEmpty()); 200 // collection of rate and channels. 201 sp<AudioProfile> profileToAdd = new AudioProfile(formats[i], channels, sampleRates); 203 profileToAdd->setDynamicChannels(channels.isEmpty());
|
/frameworks/ml/nn/common/ |
OperationsUtils.cpp | 463 uint32_t channels = getSizeOfDimension(input, 3); 466 output->dimensions = {batches, (uint32_t)height, (uint32_t)width, channels}; 480 uint32_t channels = getSizeOfDimension(input, 3); local 482 NN_OPS_CHECK(channels % (blockSize * blockSize) == 0); 487 channels / (blockSize * blockSize)}; 503 uint32_t channels = getSizeOfDimension(input, 3); local 512 channels * (blockSize * blockSize)}; 615 uint32_t channels = getSizeOfDimension(input, 3); local 622 channels}; 653 uint32_t channels = getSizeOfDimension(input, 3) local [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
KnownBandsChannelHelperTest.java | 75 * check a settings object with a few channels 120 WifiScanner.ChannelSpec[] channels = local 122 assertEquals("nun channels", expectedChannels.length, channels.length); 123 for (int i = 0; i < channels.length; ++i) { 124 assertEquals("channels[" + i + "].frequency", 125 expectedChannels[i], channels[i].frequency); 203 * check a settings object with no channels 216 * check a settings object with some channels 358 * Add a multiple channels to the collectio [all...] |
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
PreviewChannelHelper.java | 46 * From a user's perspective, the TV home screen has two types of channels: the single Live 47 * Channels row versus the App preview Channels. This class is concerned with App Channels; or more 48 * precisely: <i>your</i> app's preview Channels. In API 26+, all TV apps are allowed to create 49 * multiple channels and publish those Channels to the home screen. 51 * This class provides convenience methods to help you publish, update and delete channels; add, 53 * Providers, Content Resolvers, Cursors or such to publish your channels. This class abstracts 56 * To make it easy for you to distinguish classes that help you build App Channels, the suppor 189 List<PreviewChannel> channels = new ArrayList<>(); local [all...] |
/hardware/libhardware_legacy/audio/ |
AudioDumpInterface.cpp | 60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); 71 lChannels = outFinal->channels(); 81 if (channels != 0) { 82 if (*channels != 0) { 83 lChannels = *channels; 85 *channels = lChannels; 126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channels, 134 inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics); 137 lChannels = inFinal->channels(); 324 uint32_t AudioStreamOutDump::channels() const function in class:android::AudioStreamOutDump 527 uint32_t AudioStreamInDump::channels() const function in class:android::AudioStreamInDump [all...] |
/hardware/qcom/msm8960/kernel-headers/linux/ |
msm_audio_aac.h | 74 uint32_t channels; member in struct:msm_audio_aac_enc_config
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
msm_audio_aac.h | 46 /* Primary channel on both left and right channels */ 48 /* Secondary channel on both left and right channels */ 69 uint32_t channels; member in struct:msm_audio_aac_enc_config
|
/hardware/qcom/msm8994/kernel-headers/linux/ |
msm_audio_aac.h | 75 uint32_t channels; member in struct:msm_audio_aac_enc_config
|