Searched defs:numChannels (Results 1 - 25 of 32) sorted by path

12

/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/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, argument
70 mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size;
139 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/libmedia/
H A DIMediaPlayerService.cpp209 int numChannels; local
211 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format);
213 reply->writeInt32(numChannels);
224 int numChannels; local
226 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format);
228 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/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp523 int32_t numChannels; local
525 "channel-count", &numChannels));
531 sampleRate, numChannels);
558 numChannels,
/frameworks/av/media/libstagefright/
H A DACodec.cpp962 int32_t numChannels, sampleRate; local
963 if (!msg->findInt32("channel-count", &numChannels)
972 numChannels);
975 int32_t numChannels, sampleRate; local
976 if (!msg->findInt32("channel-count", &numChannels)
989 encoder, numChannels, sampleRate, bitRate, aacProfile,
1001 int32_t numChannels; local
1002 if (!msg->findInt32("channel-count", &numChannels)) {
1005 err = setupG711Codec(encoder, numChannels);
1008 int32_t numChannels, sampleRat local
1035 int32_t numChannels, sampleRate; local
1136 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
1312 setupG711Codec(bool encoder, int32_t numChannels) argument
1319 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
1347 setupRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
[all...]
H A DAVIExtractor.cpp712 uint32_t numChannels = U16LE_AT(&data[2]); local
715 track->mMeta->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 DMPEG4Extractor.cpp2218 int32_t numChannels = 0; local
2224 numChannels = br.getBits(4);
2226 numChannels = br.getBits(4);
2252 if (numChannels == 0) {
2269 if (prevChannelCount != numChannels) {
2271 "was: %d, now: %d", prevChannelCount, numChannels);
2274 mLastTrack->meta->setInt32(kKeyChannelCount, numChannels);
H A DOMXCodec.cpp507 int32_t numChannels, sampleRate, aacProfile; local
508 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
520 status_t err = setAACFormat(numChannels, sampleRate, bitRate, aacProfile, isADTS);
526 int32_t numChannels, sampleRate; local
527 if (meta->findInt32(kKeyChannelCount, &numChannels)
534 numChannels);
541 int32_t numChannels; local
542 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
544 setG711Format(numChannels);
548 int32_t numChannels, sampleRat local
3278 setRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
3385 int32_t numChannels; local
3393 setAACFormat( int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
3494 setG711Format(int32_t numChannels) argument
4361 int32_t numChannels, sampleRate; local
4420 int32_t numChannels, sampleRate, bitRate; local
4632 getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]) argument
[all...]
H A DUtils.cpp101 int32_t numChannels, sampleRate; local
102 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
105 msg->setInt32("channel-count", numChannels);
400 int32_t numChannels; local
401 if (msg->findInt32("channel-count", &numChannels)) {
402 meta->setInt32(kKeyChannelCount, numChannels);
/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/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp1542 int32_t numChannels = 0; local
1553 numChannels = (csd[4] >> 3) & 15;
1565 numChannels = (csd[1] >> 3) & 15;
1568 if (numChannels == 0) {
1573 sampleDesc->mFormat->setInt32("channel-count", numChannels);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp367 size_t frameSize = 2 /* numChannels */ * sizeof(int16_t);
445 int32_t numChannels; local
447 CHECK(mFormat->findInt32(kKeyChannelCount, &numChannels));
450 sampleRate, numChannels);
659 int samplingRate, numChannels, bitrate, numSamples; local
661 header, &frameSize, &samplingRate, &numChannels,
705 mFormat->setInt32(kKeyChannelCount, numChannels);
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp189 int32_t sampleRate, numChannels; local
191 desc.c_str(), &sampleRate, &numChannels);
193 mChannelConfig = 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 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));
H A DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; local
136 desc, &sampleRate, &numChannels);
139 format->setInt32(kKeyChannelCount, 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 DMyHandler.h1565 int32_t numChannels; local
1567 formatDesc.c_str(), &timescale, &numChannels);
/frameworks/av/services/audioflinger/
H A Dtest-resample.cpp40 numChannels = nc;
42 byteRate = sr * numChannels * (bits/8);
55 uint16_t numChannels; // num channels member in struct:HeaderWav
/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",

Completed in 2295 milliseconds

12