Searched refs:channels (Results 1 - 25 of 67) sorted by relevance

123

/frameworks/av/services/audioflinger/
H A Dtest-resample.cpp39 fprintf(stderr,"Usage: %s [-p] [-f] [-F] [-v] [-c channels]"
48 fprintf(stderr," -c # channels (1-2 for lq|mq|hq; 1-8 for dlq|dmq|dhq)\n");
109 int channels = 1; local
132 channels = atoi(optarg);
181 if (channels < 1
182 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) {
183 fprintf(stderr, "invalid number of audio channels %d\n", channels);
218 input_size = info.frames * info.channels * sizeof(short);
222 channels
253 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels); local
[all...]
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h177 int mFrameSize; // frame size (# channels * bytes per sample)
188 size_t channels, double sampleRate, double freq)
197 for (size_t j = 0; j < channels; ++j) {
198 buffer[i*channels + j] = yt / T(j + 1);
212 size_t channels, double sampleRate, double minfreq, double maxfreq)
223 for (size_t j = 0; j < channels; ++j) {
224 buffer[i*channels + j] = yt / T(j + 1);
250 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time) argument
252 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
257 void setSine(size_t channels, argument
187 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
211 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
284 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
H A Dresampler_tests.cpp39 void resample(int channels, void *output, argument
51 resampler->resample((int32_t*) output + channels*i, thisFrames, provider);
69 void testBufferIncrement(size_t channels, bool useFloat, argument
78 provider.setChirp<float>(channels,
81 provider.setChirp<int16_t>(channels,
88 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t));
95 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
104 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
113 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
128 resample(channels, tes
160 testStopbandDownconversion(size_t channels, unsigned inputFreq, unsigned outputFreq, unsigned passband, unsigned stopband, enum android::AudioResampler::src_quality quality) argument
[all...]
H A Dtest-mixer.cpp39 fprintf(stderr, "Usage: %s [-f] [-m] [-c channels]"
44 fprintf(stderr, " -c number of mixer output channels\n");
50 fprintf(stderr, " <command> can be 'sine:<channels>,<frequency>,<samplerate>'\n");
51 fprintf(stderr, " 'chirp:<channels>,<samplerate>'\n");
55 uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) {
63 info.channels = channels;
65 printf("saving file:%s channels:%u samplerate:%u frames:%zu\n",
66 filename, info.channels, info.samplerate, frames);
54 writeFile(const char *filename, const void *buffer, uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) argument
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns_param.h48 Word32 bitRate, Word16 channels, Word16 blockType);
H A Dtns_func.h33 Word16 channels,
40 Word16 channels,
H A Dpsy_main.h52 Word16 channels,
57 Word16 psyMain(Word16 nChannels, /*!< total number of channels */
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioCodec.java117 String channels = clue.substring(codec.rtpmap.length());
118 if (channels.length() == 0 || channels.equals("/1")) {
/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp44 static const int channels = 1; // not permitted to be stereo now local
85 channels);
88 source = new SineSource(kSampleRate, channels);
97 meta->setInt32(kKeyChannelCount, channels);
/frameworks/av/media/libnbaio/
H A DLibsndfileSink.cpp27 NBAIO_Sink(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
H A DLibsndfileSource.cpp27 NBAIO_Source(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp142 opusParams->nChannels = mHeader->channels;
169 pcmParams->nChannels = mHeader->channels;
229 // mappings for up to 8 channels. This information is part of the Vorbis I
240 // stereo output: Opus streams with more than 2 channels require a stream map.
268 // - Byte 2: Starting at byte 2 are |header->channels| uint8 mapping
278 header->channels = *(data + kOpusHeaderChannelsOffset);
280 if (header->channels <= 0 || header->channels > kMaxChannels) {
281 ALOGV("Invalid Header, wrong channel count: %d", header->channels);
291 if (header->channels > kMaxChannelsWithDefaultLayou
[all...]
H A DSoftOpus.h33 int channels; member in struct:android::OpusHeader
/frameworks/base/services/core/java/com/android/server/wm/
H A DFakeWindowImpl.java45 InputChannel[] channels = InputChannel.openInputChannelPair(name);
46 mServerChannel = channels[0];
47 mClientChannel = channels[1];
/frameworks/wilhelm/src/desktop/
H A DSDL.c50 fmt.channels = STEREO_CHANNELS;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiScanningServiceImpl.java520 WifiScanner.ChannelSpec desiredChannels[] = settings.channels;
526 // check the channels this client asked for ..
571 WifiScanner.ChannelSpec desiredChannels[] = settings.channels;
782 bucketSettings.channels = new WifiNative.ChannelSettings[MAX_CHANNELS];
784 for (int j = 0; j < bucketSettings.channels.length; j++) {
786 bucketSettings.channels[j] = channelSettings;
796 // check to see if any of the channels are being scanned already
800 WifiScanner.ChannelSpec channels[] = settings.channels;
801 if (channels
1560 getBandFromChannels(WifiScanner.ChannelSpec[] channels) argument
1573 getBandFromChannels(WifiNative.ChannelSettings[] channels) argument
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestFeedback.cpp40 static SLuint32 channels = 1; // -c# variable
168 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short));
258 channels = atoi(&arg[2]);
259 if (channels < 1 || channels > 2) {
261 (unsigned) channels);
262 channels = 2;
302 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short);
324 const android::NBAIO_Format nbaio_format = android::Format_from_SR_C(sampleRate, channels,
366 pcm.numChannels = channels;
[all...]
/frameworks/wilhelm/tools/permute/
H A Dpermute.c190 switch (sfinfo_in.channels) {
193 frameSizeIn = sampleSizeIn * sfinfo_in.channels;
194 frameSizeRead = sampleSizeRead * sfinfo_in.channels;
197 fprintf(stderr, "%s: unsupported channels %d\n", path_in, sfinfo_in.channels);
260 sfinfo_out.channels = sfinfo_in.channels;
270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_main.c193 Word16 channels,
198 Word32 channelBitRate = bitRate/channels;
207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels,
217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels,
222 for(ch=0;ch < channels;ch++){
225 bitRate, channels);
261 Word16 ch; /* counts through channels */
264 Word16 channels; local
267 channels = elemInfo->nChannelsInEl;
271 for(ch = 0; ch < channels; c
190 psyMainInit(PSY_KERNEL *hPsy, Word32 sampleRate, Word32 bitRate, Word16 channels, Word16 tnsMask, Word16 bandwidth) argument
[all...]
H A Dstat_bits.c181 Word16 channels,
193 switch (channels) {
179 countStaticBitdemand(PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS], PSY_OUT_ELEMENT *psyOutElement, Word16 channels, Word16 adtsUsed) argument
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java55 /** 5 GHz band excluding DFS channels */
56 public static final int WIFI_BAND_5_GHZ = 2; /* 5 GHz band without DFS channels */
57 /** DFS channels from 5 GHz band only */
58 public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; /* 5 GHz band with DFS channels */
59 /** 5 GHz band including DFS channels */
60 public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; /* 5 GHz band with DFS channels */
61 /** Both 2.4 GHz band and 5 GHz band; no DFS channels */
62 public static final int WIFI_BAND_BOTH = 3; /* both bands without DFS channels */
63 /** Both 2.4 GHz band and 5 GHz band; with DFS channels */
64 public static final int WIFI_BAND_BOTH_WITH_DFS = 7; /* both bands with DFS channels */
154 public ChannelSpec[] channels; field in class:WifiScanner.ScanSettings
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c284 switch (sfinfo.channels) {
289 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
332 sfframesize = sfinfo.channels * sizeof(float);
336 sfframesize = sfinfo.channels * sizeof(int);
340 sfframesize = sfinfo.channels * sizeof(int); // use int size
344 sfframesize = sfinfo.channels * sizeof(short);
348 sfframesize = sfinfo.channels * sizeof(short); // use short size
398 format_pcm.numChannels = sfinfo.channels;
555 sfinfo.samplerate, sfinfo.channels,
H A Dplaybq.cpp284 switch (sfinfo.channels) {
289 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
332 sfframesize = sfinfo.channels * sizeof(float);
336 sfframesize = sfinfo.channels * sizeof(int);
340 sfframesize = sfinfo.channels * sizeof(int); // use int size
344 sfframesize = sfinfo.channels * sizeof(short);
348 sfframesize = sfinfo.channels * sizeof(short); // use short size
398 format_pcm.numChannels = sfinfo.channels;
555 sfinfo.samplerate, sfinfo.channels,
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c131 config.channels = 2;
205 config.channels = 2;
/frameworks/av/include/media/stagefright/
H A DAudioSource.h34 // Note that the "channels" parameter _is_ the number of channels,
39 uint32_t channels = 1);

Completed in 396 milliseconds

123