Searched refs:num_channels (Results 1 - 21 of 21) sorted by relevance

/frameworks/av/cmds/stagefright/
H A DWaveWriter.h26 uint16_t num_channels, uint32_t sampling_rate)
30 write_u16(num_channels);
32 write_u32(sampling_rate * num_channels * 2);
33 write_u16(num_channels * 2);
25 WaveWriter(const char *filename, uint16_t num_channels, uint32_t sampling_rate) argument
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Ds_tmp3dec_file.h87 int32 num_channels; member in struct:__anon600
H A Dpvmp3_framedecoder.cpp190 pVars->num_channels = (info->mode == MPG_MD_MONO) ? 1 : 2;
191 pExt->num_channels = pVars->num_channels;
362 for (ch = 0; ch < pVars->num_channels; ch++)
405 if (pVars->num_channels == 2)
441 for (ch = 0; ch < pVars->num_channels; ch++)
490 pVars->num_channels,
497 ptrOutBuffer += pVars->num_channels * SUBBANDS_NUMBER * FILTERBANK_BANDS;
659 pVars->num_channels = 0;
/frameworks/av/media/libstagefright/
H A DXINGSeeker.cpp95 int num_channels; local
97 if (!GetMPEGAudioFrameSize(header, &xingframesize, &sampling_rate, &num_channels,
107 if (num_channels != 1) offset += 32;
110 if (num_channels != 1) offset += 17;
H A DMP3Extractor.cpp148 int sample_rate, num_channels, bitrate; local
151 &sample_rate, &num_channels, &bitrate)) {
309 int num_channels; local
312 header, &frame_size, &sample_rate, &num_channels, &bitrate);
324 int num_channels; local
327 header, &frame_size, &sample_rate, &num_channels, &bitrate);
347 mMeta->setInt32(kKeyChannelCount, num_channels);
H A DMPEG4Extractor.cpp1140 uint32_t num_channels = 0; local
1142 if (AdjustChannelsAndRate(original_fourcc, &num_channels, &sample_rate)) {
1143 mLastTrack->meta->setInt32(kKeyChannelCount, num_channels);
1448 uint32_t num_channels = U16_AT(&buffer[16]); local
1481 num_channels = U32_AT(&v2buffer[12]); // num audio channels
1495 AdjustChannelsAndRate(chunk_type, &num_channels, &sample_rate);
1498 chunk, num_channels, sample_size, sample_rate);
1499 mLastTrack->meta->setInt32(kKeyChannelCount, num_channels);
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
H A Dpvmp3decoder_api.h183 int16 num_channels; member in struct:tPVMP3DecoderExternal
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DScanScheduleUtil.java59 if (bucket1.num_channels != bucket2.num_channels) return false;
60 for (int c = 0; c < bucket1.num_channels; c++) {
H A DNoBandChannelHelper.java154 bucketSettings.num_channels = 0;
158 bucketSettings.num_channels = mChannels.size();
H A DKnownBandsChannelHelper.java251 bucketSettings.num_channels = 0;
255 bucketSettings.num_channels = mChannels.size();
H A DChannelHelper.java256 return toString(bucketSettings.channels, bucketSettings.num_channels);
/frameworks/base/cmds/bootanimation/
H A Daudioplay.cpp72 uint16_t num_channels; member in struct:audioplay::__anon1023::ChunkFormat
144 // Determine channelMask from num_channels
146 switch (chunkFormat->num_channels) {
154 // Default of 0 will derive mask from num_channels and log a warning.
160 chunkFormat->num_channels,
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp294 uint32_t sample_rate, num_channels, bitrate; local
297 &sample_rate, &num_channels, &bitrate)) {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java151 bucket.num_channels = channels.length;
344 // since num_channels and channels are ignored when band is not
347 assertEquals("buckets[" + i + "].num_channels not 0", 0,
348 actual.buckets[i].num_channels);
434 } else if (bucketSettings.num_channels != expectedChannels.length) {
436 .appendText("did not have expected num_channels ")
438 .appendText(", was ").appendValue(bucketSettings.num_channels);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DChannelHelperTest.java149 testBucket.num_channels = 2;
H A DBackgroundScanSchedulerTest.java806 assertTrue("num channels <= 0", schedule.buckets[i].num_channels > 0);
808 schedule.buckets[i].num_channels <= mScheduler.getMaxChannelsPerBucket());
810 for (int c = 0; c < schedule.buckets[i].num_channels; c++) {
/frameworks/av/media/libstagefright/codecs/mp3dec/
H A DSoftMP3.cpp327 // mConfig->samplingRate and mConfig->num_channels?
338 || mConfig->num_channels != mNumChannels) {
340 mNumChannels = mConfig->num_channels;
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java275 int num_channels = in.readInt();
276 settings.channels = new ChannelSpec[num_channels];
277 for (int i = 0; i < num_channels; i++) {
/frameworks/opt/net/wifi/libwifi_hal/
H A Dhal_tool.cpp153 int* num_channels) {
150 wifi_get_valid_channels_stub(wifi_interface_handle handle, int band, int max_channels, wifi_channel* channels, int* num_channels) argument
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp744 unsigned num_channels = bits.getBits(3); local
750 if (num_channels != 1u) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNative.java884 public int num_channels; field in class:WifiNative.BucketSettings

Completed in 454 milliseconds