Home
last modified time | relevance | path

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

/frameworks/av/cmds/stagefright/
DWaveWriter.h26 uint16_t num_channels, uint32_t sampling_rate) in WaveWriter() argument
30 write_u16(num_channels); in WaveWriter()
32 write_u32(sampling_rate * num_channels * 2); in WaveWriter()
33 write_u16(num_channels * 2); in WaveWriter()
/frameworks/av/media/extractors/mp3/
DXINGSeeker.cpp96 int num_channels; in CreateFromSource() local
98 if (!GetMPEGAudioFrameSize(header, &xingframesize, &sampling_rate, &num_channels, in CreateFromSource()
106 if (num_channels != 1) offset += 32; in CreateFromSource()
109 if (num_channels != 1) offset += 17; in CreateFromSource()
DMP3Extractor.cpp146 int sample_rate, num_channels, bitrate; in Resync() local
149 &sample_rate, &num_channels, &bitrate)) { in Resync()
306 int num_channels; in MP3Extractor() local
309 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
321 int num_channels; in MP3Extractor() local
324 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
346 AMediaFormat_setInt32(mMeta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, num_channels); in MP3Extractor()
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_framedecoder.cpp190 pVars->num_channels = (info->mode == MPG_MD_MONO) ? 1 : 2; in pvmp3_framedecoder()
191 pExt->num_channels = pVars->num_channels; in pvmp3_framedecoder()
366 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder()
409 if (pVars->num_channels == 2) in pvmp3_framedecoder()
445 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder()
494 pVars->num_channels, in pvmp3_framedecoder()
501 ptrOutBuffer += pVars->num_channels * SUBBANDS_NUMBER * FILTERBANK_BANDS; in pvmp3_framedecoder()
663 pVars->num_channels = 0; in pvmp3_InitDecoder()
Ds_tmp3dec_file.h87 int32 num_channels; member
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java59 if (bucket1.num_channels != bucket2.num_channels) return false; in bucketEquals()
60 for (int c = 0; c < bucket1.num_channels; c++) { in bucketEquals()
DKnownBandsChannelHelper.java251 bucketSettings.num_channels = 0; in fillBucketSettings()
255 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings()
DChannelHelper.java256 return toString(bucketSettings.channels, bucketSettings.num_channels); in toString()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
DMp3DecoderTest.cpp135 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
167 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
174 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
Dmp3reader.cpp294 uint32_t sample_rate, num_channels, bitrate; in resync() local
297 &sample_rate, &num_channels, &bitrate)) { in resync()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp77 uint16_t num_channels; member
151 switch (chunkFormat->num_channels) { in createBufferQueueAudioPlayer()
165 chunkFormat->num_channels, in createBufferQueueAudioPlayer()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp365 int32_t numChannels = mConfig->num_channels; in process()
430 || mConfig->num_channels != numChannels) { in process()
433 numChannels, mConfig->num_channels); in process()
435 numChannels = mConfig->num_channels; in process()
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
Dpvmp3decoder_api.h183 int16 num_channels; member
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java164 bucket.num_channels = channels.length; in addBucketWithChannels()
403 actual.buckets[i].num_channels); in assertNativeScanSettingsEquals()
489 } else if (bucketSettings.num_channels != expectedChannels.length) {
493 .appendText(", was ").appendValue(bucketSettings.num_channels);
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp385 || mConfig->num_channels != mNumChannels) { in onQueueFilled()
387 mNumChannels = mConfig->num_channels; in onQueueFilled()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DChannelHelperTest.java171 testBucket.num_channels = 2; in addChannelsWifiNativeBucket_channels()
DBackgroundScanSchedulerTest.java700 assertTrue("num channels <= 0", schedule.buckets[i].num_channels > 0); in assertBuckets()
702 schedule.buckets[i].num_channels <= mScheduler.getMaxChannelsPerBucket()); in assertBuckets()
704 for (int c = 0; c < schedule.buckets[i].num_channels; c++) { in assertBuckets()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java328 int num_channels = in.readInt();
329 settings.channels = new ChannelSpec[num_channels];
330 for (int i = 0; i < num_channels; i++) {
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp1195 uint32_t num_channels = 0; in parseChunk() local
1197 if (AdjustChannelsAndRate(original_fourcc, &num_channels, &sample_rate)) { in parseChunk()
1199 AMEDIAFORMAT_KEY_CHANNEL_COUNT, num_channels); in parseChunk()
1678 uint32_t num_channels = U16_AT(&buffer[16]); in parseChunk() local
1711 num_channels = U32_AT(&v2buffer[12]); // num audio channels in parseChunk()
1726 AdjustChannelsAndRate(chunk_type, &num_channels, &sample_rate); in parseChunk()
1738 chunk, num_channels, sample_size, sample_rate); in parseChunk()
1739 AMediaFormat_setInt32(mLastTrack->meta, AMEDIAFORMAT_KEY_CHANNEL_COUNT, num_channels); in parseChunk()
/frameworks/opt/net/wifi/libwifi_hal/
Dhal_tool.cpp157 int* num_channels) { in wifi_get_valid_channels_stub() argument
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp1089 unsigned num_channels = bits.getBits(3); in dequeueAccessUnitPCMAudio() local
1095 if (num_channels != 1u) { in dequeueAccessUnitPCMAudio()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java2435 public int num_channels; field in WifiNative.BucketSettings
/frameworks/ml/nn/tools/api/
Dtypes.spec3717 * where group_size = num_channels / num_groups