Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_poly_phase_synthesis.cpp123 int32 numChannels, in pvmp3_poly_phase_synthesis() argument
155 numChannels); in pvmp3_poly_phase_synthesis()
171 ptr_out + (numChannels << 5), in pvmp3_poly_phase_synthesis()
172 numChannels); in pvmp3_poly_phase_synthesis()
174 ptr_out += (numChannels << 6); in pvmp3_poly_phase_synthesis()
Dpvmp3_polyphase_filter_window.cpp117 int32 numChannels) in pvmp3_polyphase_filter_window() argument
198 int32 k = j << (numChannels - 1); in pvmp3_polyphase_filter_window()
200 outPcm[(numChannels<<5) - k] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window()
233 outPcm[(SUBBANDS_NUMBER/2)<<(numChannels-1)] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window()
Dpvmp3_poly_phase_synthesis.h90 int32 numChannels,
Dpvmp3_polyphase_filter_window.h123 int32 numChannels);
/frameworks/base/cmds/stagefright/
DSineSource.cpp12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) in SineSource() argument
15 mNumChannels(numChannels), in SineSource()
18 CHECK(numChannels == 1 || numChannels == 2); in SineSource()
DSineSource.h12 SineSource(int32_t sampleRate, int32_t numChannels);
/frameworks/base/media/libstagefright/rtsp/
DAPacketSource.cpp498 int32_t sampleRate, numChannels; in APacketSource() local
500 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
503 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
514 int32_t sampleRate, numChannels; in APacketSource() local
516 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
519 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
521 if (sampleRate != 8000 || numChannels != 1) { in APacketSource()
527 int32_t sampleRate, numChannels; in APacketSource() local
529 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
532 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource()
[all …]
DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; in MakeFormat() local
136 desc, &sampleRate, &numChannels); in MakeFormat()
139 format->setInt32(kKeyChannelCount, numChannels); in MakeFormat()
DASessionDescription.cpp278 const char *desc, int32_t *timescale, int32_t *numChannels) { in ParseFormatDesc() argument
289 *numChannels = 1; in ParseFormatDesc()
297 *numChannels = x; in ParseFormatDesc()
/frameworks/base/media/libmedia/
DIMediaPlayerService.cpp150 int numChannels; in onTransact() local
152 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format); in onTransact()
154 reply->writeInt32(numChannels); in onTransact()
165 int numChannels; in onTransact() local
167 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format); in onTransact()
169 reply->writeInt32(numChannels); in onTransact()
DJetPlayer.cpp95 (pLibConfig->numChannels == 2) ? AUDIO_CHANNEL_OUT_STEREO : AUDIO_CHANNEL_OUT_MONO, in init()
175 new EAS_PCM[pLibConfig->mixBufferSize * pLibConfig->numChannels * MIX_NUM_BUFFERS]; in render()
220 p += count * pLibConfig->numChannels; in render()
221 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM); in render()
/frameworks/base/core/java/android/speech/srec/
DWaveHeader.java73 …public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numByt… in WaveHeader() argument
76 mNumChannels = numChannels; in WaveHeader()
114 public WaveHeader setNumChannels(short numChannels) { in setNumChannels() argument
115 mNumChannels = numChannels; in setNumChannels()
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp498 int numChannels; in doLoad() local
503 p = MediaPlayer::decode(mUrl, &sampleRate, &numChannels, &format); in doLoad()
505 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format); in doLoad()
515 p->pointer(), p->size(), sampleRate, numChannels); in doLoad()
522 if ((numChannels < 1) || (numChannels > 2)) { in doLoad()
523 LOGE("Sample channel count (%d) out of range", numChannels); in doLoad()
534 mNumChannels = numChannels; in doLoad()
580 int numChannels = sample->numChannels(); in play() local
587 frameCount = sample->size()/numChannels/ in play()
605 uint32_t channels = (numChannels == 2) ? in play()
[all …]
DSoundPool.h57 int numChannels() { return mNumChannels; } in numChannels() function
68 void init(int numChannels, int sampleRate, int format, size_t size, sp<IMemory> data ) { in init() argument
69 …mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size; mData = data… in init()
137 int numChannels() { return mNumChannels; } in numChannels() function
/frameworks/base/include/media/stagefright/
DACodec.h153 status_t setupAACDecoder(int32_t numChannels, int32_t sampleRate);
155 status_t setupG711Decoder(int32_t numChannels);
158 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
DOMXCodec.h231 status_t setAACFormat(int32_t numChannels, int32_t sampleRate, int32_t bitRate);
232 void setG711Format(int32_t numChannels);
271 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
/frameworks/base/media/libmediaplayerservice/
DMidiFile.cpp423 …if (mAudioSink->open(pLibConfig->sampleRate, pLibConfig->numChannels, AUDIO_FORMAT_PCM_16_BIT, 2) … in createOutputTrack()
444 mAudioBuffer = new EAS_PCM[pLibConfig->mixBufferSize * pLibConfig->numChannels * NUM_BUFFERS]; in render()
482 p += count * pLibConfig->numChannels; in render()
483 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM); in render()
/frameworks/base/media/libstagefright/
DAudioPlayer.cpp113 int32_t numChannels; in start() local
114 success = format->findInt32(kKeyChannelCount, &numChannels); in start()
119 mSampleRate, numChannels, AUDIO_FORMAT_PCM_16_BIT, in start()
142 (numChannels == 2) in start()
DOMXCodec.cpp631 int32_t numChannels, sampleRate; in configureCodec() local
632 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in configureCodec()
635 status_t err = setAACFormat(numChannels, sampleRate, bitRate); in configureCodec()
645 int32_t numChannels; in configureCodec() local
646 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in configureCodec()
648 setG711Format(numChannels); in configureCodec()
3398 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) { in setRawAudioFormat() argument
3421 pcmParams.nChannels = numChannels; in setRawAudioFormat()
3428 if (numChannels == 1) { in setRawAudioFormat()
3431 CHECK_EQ(numChannels, 2); in setRawAudioFormat()
[all …]
/frameworks/media/libvideoeditor/lvpp/
DAudioPlayerBase.cpp107 int32_t numChannels; in start() local
108 success = format->findInt32(kKeyChannelCount, &numChannels); in start()
113 mSampleRate, numChannels, AUDIO_FORMAT_PCM_16_BIT, in start()
136 (numChannels == 2) in start()
/frameworks/base/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp124 int32_t numChannels, sampleRate; in makeFormat() local
125 CHECK(meta->findInt32(kKeyChannelCount, &numChannels)); in makeFormat()
128 msg->setInt32("channel-count", numChannels); in makeFormat()
/frameworks/base/media/libstagefright/codecs/aacdec/
Dsbr_applied.h125 Int32 numChannels);
Dsbr_applied.cpp163 Int32 numChannels) in sbr_applied() argument
401 if (numChannels == 2) in sbr_applied()
/frameworks/base/media/java/android/media/
DMediaRecorder.java525 public void setAudioChannels(int numChannels) { in setAudioChannels() argument
526 if (numChannels <= 0) { in setAudioChannels()
529 setParameter("audio-param-number-of-channels=" + numChannels); in setAudioChannels()
/frameworks/base/media/libstagefright/mpeg2ts/
DESQueue.cpp336 int32_t numChannels; in dequeueAccessUnitAAC() local
338 CHECK(mFormat->findInt32(kKeyChannelCount, &numChannels)); in dequeueAccessUnitAAC()
341 sampleRate, numChannels); in dequeueAccessUnitAAC()
579 int samplingRate, numChannels, bitrate, numSamples; in dequeueAccessUnitMPEGAudio() local
581 header, &frameSize, &samplingRate, &numChannels, in dequeueAccessUnitMPEGAudio()
606 mFormat->setInt32(kKeyChannelCount, numChannels); in dequeueAccessUnitMPEGAudio()

12