Searched refs:numChannels (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_poly_phase_synthesis.h90 int32 numChannels,
H A Dpvmp3_poly_phase_synthesis.cpp40 int32 numChannels, number of channels
123 int32 numChannels,
155 numChannels);
171 ptr_out + (numChannels << 5),
172 numChannels);
174 ptr_out += (numChannels << 6);
122 pvmp3_poly_phase_synthesis(tmp3dec_chan *pChVars, int32 numChannels, e_equalization equalizerType, int16 *outPcm) argument
H A Dpvmp3_polyphase_filter_window.h123 int32 numChannels);
H A Dpvmp3_polyphase_filter_window.cpp42 int32 numChannels number of channels
117 int32 numChannels)
198 int32 k = j << (numChannels - 1);
200 outPcm[(numChannels<<5) - k] = saturate16(sum2 >> 6);
233 outPcm[(SUBBANDS_NUMBER/2)<<(numChannels-1)] = saturate16(sum2 >> 6);
115 pvmp3_polyphase_filter_window(int32 *synth_buffer, int16 *outPcm, int32 numChannels) argument
/frameworks/wilhelm/src/itf/
H A DIMuteSolo.c33 SLuint8 numChannels = ap->mNumChannels; local
34 if (1 >= numChannels) {
37 } else if (numChannels <= chan) {
73 SLuint8 numChannels = ap->mNumChannels; local
74 if (1 >= numChannels) {
77 } else if (numChannels <= chan) {
105 SLuint8 numChannels = ap->mNumChannels; local
106 if (1 >= numChannels) {
109 } else if (numChannels <= chan) {
145 SLuint8 numChannels local
180 SLuint8 numChannels = ap->mNumChannels; local
[all...]
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) argument
15 mNumChannels(numChannels),
18 CHECK(numChannels == 1 || numChannels == 2);
H A DSineSource.h12 SineSource(int32_t sampleRate, int32_t numChannels);
/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp107 SLuint8 numChannels = 0; local
108 SLresult res = (*muteSolo)->GetNumChannels(muteSolo, &numChannels); ExitOnError(res);
109 //fprintf(stdout, "Content has %d channel(s)\n", numChannels);
117 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel
137 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel
278 SLuint8 numChannels = 123; local
279 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels);
280 printf("GetNumChannels after Realize but before pre-fetch: result=%u, numChannels=%u\n",
281 result, numChannels);
330 numChannels
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c28 SLuint8 numChannels; member in struct:__anon1695
98 for (format = formats; format->numChannels; ++format) {
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels,
109 format_pcm.numChannels = format->numChannels;
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) /
154 if (2 == format->numChannels) {
166 assert(1 == format->numChannels);
H A Dsrcsink.c44 format_pcm.numChannels = 2;
109 format_pcm.numChannels = 0;
114 format_pcm.numChannels = 3;
119 format_pcm.numChannels = 2;
178 format_pcm.numChannels = 1;
190 format_pcm.numChannels = 2;
H A Dintbufq.c113 pcm.numChannels = 2;
140 SLuint8 numChannels = 123; local
141 result = (*playerMuteSolo)->GetNumChannels(playerMuteSolo, &numChannels);
142 assert(2 == numChannels);
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp184 aacParams->nChannels = mStreamInfo->numChannels;
217 pcmParams->nChannels = mStreamInfo->numChannels;
289 if (mStreamInfo->numChannels > 2) {
295 mStreamInfo->numChannels = 2;
335 // and numChannels are valid.
336 if (mStreamInfo->sampleRate && mStreamInfo->numChannels) {
340 mStreamInfo->numChannels);
386 * mStreamInfo->numChannels;
468 int prevNumChannels = mStreamInfo->numChannels;
503 mStreamInfo->numChannels !
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; local
136 desc, &sampleRate, &numChannels);
139 format->setInt32(kKeyChannelCount, numChannels);
H A DAPacketSource.cpp473 int32_t sampleRate, numChannels; local
475 desc.c_str(), &sampleRate, &numChannels);
478 mFormat->setInt32(kKeyChannelCount, numChannels);
489 int32_t sampleRate, numChannels; local
491 desc.c_str(), &sampleRate, &numChannels);
494 mFormat->setInt32(kKeyChannelCount, numChannels);
496 if (sampleRate != 8000 || numChannels != 1) {
502 int32_t sampleRate, numChannels; local
504 desc.c_str(), &sampleRate, &numChannels);
507 mFormat->setInt32(kKeyChannelCount, numChannels);
553 int32_t sampleRate, numChannels; local
[all...]
H A DASessionDescription.h54 const char *desc, int32_t *timescale, int32_t *numChannels);
H A DASessionDescription.cpp278 const char *desc, int32_t *timescale, int32_t *numChannels) {
289 *numChannels = 1;
297 *numChannels = x;
277 ParseFormatDesc( const char *desc, int32_t *timescale, int32_t *numChannels) argument
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java28 * <li> numChannels - 1 for mono, 2 for stereo.
68 * @param numChannels 1 for mono, 2 for stereo.
73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { argument
76 mNumChannels = numChannels;
111 * @param numChannels 1 for mono, 2 for stereo.
114 public WaveHeader setNumChannels(short numChannels) { argument
115 mNumChannels = numChannels;
272 "WaveHeader format=%d numChannels=%d sampleRate=%d bitsPerSample=%d numBytes=%d",
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp183 int numChannels; local
185 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format);
187 reply->writeInt32(numChannels);
198 int numChannels; local
200 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format);
202 reply->writeInt32(numChannels);
H A DSoundPool.cpp498 int numChannels; local
503 p = MediaPlayer::decode(mUrl, &sampleRate, &numChannels, &format);
505 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format);
514 ALOGV("pointer = %p, size = %u, sampleRate = %u, numChannels = %d",
515 p->pointer(), p->size(), sampleRate, numChannels);
522 if ((numChannels < 1) || (numChannels > 2)) {
523 ALOGE("Sample channel count (%d) out of range", numChannels);
534 mNumChannels = numChannels;
580 int numChannels local
[all...]
H A DJetPlayer.cpp95 audio_channel_out_mask_from_count(pLibConfig->numChannels),
170 new EAS_PCM[pLibConfig->mixBufferSize * pLibConfig->numChannels * MIX_NUM_BUFFERS];
211 p += count * pLibConfig->numChannels;
212 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM);
/frameworks/av/include/media/
H A DSoundPool.h57 int numChannels() { return mNumChannels; } function in class:android::Sample
68 void init(int numChannels, int sampleRate, audio_format_t format, size_t size, sp<IMemory> data ) { argument
69 mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size; mData = data; }
137 int numChannels() { return mNumChannels; } function in class:android::SoundChannel
/frameworks/av/include/media/stagefright/
H A DACodec.h223 int32_t numChannels, int32_t sampleRate, int32_t bitRate,
230 status_t setupG711Codec(bool encoder, int32_t numChannels);
233 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel);
236 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
H A DOMXCodec.h248 int32_t numChannels, int32_t sampleRate, int32_t bitRate,
251 void setG711Format(int32_t numChannels);
290 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
398 status_t getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]);
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp118 int32_t numChannels, channelMask; local
119 success = format->findInt32(kKeyChannelCount, &numChannels);
124 ALOGI_IF(numChannels > 2,
125 "source format didn't specify channel mask, using (%d) channel order", numChannels);
132 mSampleRate, numChannels, channelMask, AUDIO_FORMAT_PCM_16_BIT,
159 audio_channel_out_mask_from_count(numChannels) : channelMask;
H A DUtils.cpp89 int32_t numChannels, sampleRate; local
90 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
93 msg->setInt32("channel-count", numChannels);
376 int32_t numChannels; local
377 if (msg->findInt32("channel-count", &numChannels)) {
378 meta->setInt32(kKeyChannelCount, numChannels);

Completed in 290 milliseconds

123