Searched defs:numChannels (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
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.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/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 Dsf2.cpp284 int32_t numChannels, sampleRate; local
285 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
288 msg->setInt32("channel-count", numChannels);
/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 DAMPEG4ElementaryAssembler.cpp189 int32_t sampleRate, numChannels; local
191 desc.c_str(), &sampleRate, &numChannels);
193 mChannelConfig = 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
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 DARTPWriter.cpp475 int32_t sampleRate, numChannels; local
477 CHECK(mSource->getFormat()->findInt32(kKeyChannelCount, &numChannels));
479 CHECK_EQ(numChannels, 1);
483 sdp.append(StringPrintf("/%d/%d", sampleRate, numChannels));
/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/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 Dintbufq.c113 pcm.numChannels = 2;
140 SLuint8 numChannels = 123; local
141 result = (*playerMuteSolo)->GetNumChannels(playerMuteSolo, &numChannels);
142 assert(2 == numChannels);
/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...]
/frameworks/av/media/libstagefright/
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);
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 DAVIExtractor.cpp712 uint32_t numChannels = U16LE_AT(&data[2]); local
715 track->mMeta->setInt32(kKeyChannelCount, numChannels);
H A DACodec.cpp926 int32_t numChannels, sampleRate; local
927 if (!msg->findInt32("channel-count", &numChannels)
940 encoder, numChannels, sampleRate, bitRate, aacProfile, isADTS != 0);
951 int32_t numChannels; local
952 if (!msg->findInt32("channel-count", &numChannels)) {
955 err = setupG711Codec(encoder, numChannels);
958 int32_t numChannels, sampleRate, compressionLevel = -1; local
960 (!msg->findInt32("channel-count", &numChannels)
976 err = setupFlacCodec(encoder, numChannels, sampleRate, compressionLevel);
979 int32_t numChannels, sampleRat local
1076 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
1252 setupG711Codec(bool encoder, int32_t numChannels) argument
1259 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
1287 setupRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
[all...]
/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/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/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/libvideoeditor/lvpp/
H A DVideoEditorAudioPlayer.cpp508 int32_t numChannels; local
509 success = format->findInt32(kKeyChannelCount, &numChannels);
514 mSampleRate, numChannels, CHANNEL_MASK_USE_CHANNEL_ORDER, AUDIO_FORMAT_PCM_16_BIT,
537 audio_channel_out_mask_from_count(numChannels),
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp372 int32_t numChannels; local
373 CHECK(codecRequest->findInt32("channel-count", &numChannels));
379 sampleRate, numChannels);
404 numChannels,
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp366 size_t frameSize = 2 /* numChannels */ * sizeof(int16_t);
424 int32_t numChannels; local
426 CHECK(mFormat->findInt32(kKeyChannelCount, &numChannels));
429 sampleRate, numChannels);
646 int samplingRate, numChannels, bitrate, numSamples; local
648 header, &frameSize, &samplingRate, &numChannels,
692 mFormat->setInt32(kKeyChannelCount, numChannels);
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java555 * @param numChannels the number of audio channels. Usually it is either 1 (mono) or 2
558 public void setAudioChannels(int numChannels) { argument
559 if (numChannels <= 0) {
562 setParameter("audio-param-number-of-channels=" + numChannels);

Completed in 263 milliseconds

12