/frameworks/av/media/libstagefright/httplive/ |
D | LiveDataSource.cpp | 54 return mBufferQueue.size(); in countQueuedBuffers() 67 for (List<sp<ABuffer> >::iterator it = mBufferQueue.begin(); in readAtNonBlocking() 68 it != mBufferQueue.end(); ++it) { in readAtNonBlocking() 99 while (mBufferQueue.empty() && mFinalResult == OK) { in readAt_l() 103 if (mBufferQueue.empty()) { in readAt_l() 112 sp<ABuffer> buffer = *mBufferQueue.begin(); in readAt_l() 127 mBufferQueue.erase(mBufferQueue.begin()); in readAt_l() 150 mBufferQueue.push_back(buffer); in queueBuffer() 170 mBufferQueue.clear(); in reset()
|
D | LiveDataSource.h | 52 List<sp<ABuffer> > mBufferQueue; member
|
/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 229 interface_lock_exclusive(&ar->mBufferQueue); in audioRecorder_callback() 231 if (ar->mBufferQueue.mState.count != 0) { in audioRecorder_callback() 232 assert(ar->mBufferQueue.mFront != ar->mBufferQueue.mRear); in audioRecorder_callback() 234 BufferHeader *oldFront = ar->mBufferQueue.mFront; in audioRecorder_callback() 238 short *pDest = (short*)((char *)oldFront->mBuffer + ar->mBufferQueue.mSizeConsumed); in audioRecorder_callback() 239 if (ar->mBufferQueue.mSizeConsumed + pBuff->size < oldFront->mSize) { in audioRecorder_callback() 241 ar->mBufferQueue.mSizeConsumed += pBuff->size; in audioRecorder_callback() 251 pBuff->size = oldFront->mSize - ar->mBufferQueue.mSizeConsumed; in audioRecorder_callback() 252 ar->mBufferQueue.mSizeConsumed = 0; in audioRecorder_callback() 253 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_callback() [all …]
|
D | AudioPlayer_to_android.cpp | 116 if (ap->mBufferQueue.mState.count != 0) { in adecoder_writeToBufferQueue() 117 assert(ap->mBufferQueue.mFront != ap->mBufferQueue.mRear); in adecoder_writeToBufferQueue() 119 BufferHeader *oldFront = ap->mBufferQueue.mFront; in adecoder_writeToBufferQueue() 122 uint8_t *pDest = (uint8_t *)oldFront->mBuffer + ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue() 123 if (ap->mBufferQueue.mSizeConsumed + size < oldFront->mSize) { in adecoder_writeToBufferQueue() 125 ap->mBufferQueue.mSizeConsumed += size; in adecoder_writeToBufferQueue() 131 sizeConsumed = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue() 134 ap->mBufferQueue.mSizeConsumed = 0; in adecoder_writeToBufferQueue() 135 if (newFront == &ap->mBufferQueue.mArray[ap->mBufferQueue.mNumBuffers + 1]) { in adecoder_writeToBufferQueue() 136 newFront = ap->mBufferQueue.mArray; in adecoder_writeToBufferQueue() [all …]
|
/frameworks/wilhelm/src/itf/ |
D | IOutputMixExt.c | 70 if (audioPlayer->mBufferQueue.mClearRequested) { in track_check() 73 audioPlayer->mBufferQueue.mFront = &audioPlayer->mBufferQueue.mArray[0]; in track_check() 74 audioPlayer->mBufferQueue.mRear = &audioPlayer->mBufferQueue.mArray[0]; in track_check() 75 audioPlayer->mBufferQueue.mState.count = 0; in track_check() 76 audioPlayer->mBufferQueue.mState.playIndex = 0; in track_check() 77 audioPlayer->mBufferQueue.mClearRequested = SL_BOOLEAN_FALSE; in track_check() 108 oldFront = audioPlayer->mBufferQueue.mFront; in track_check() 109 if (oldFront != audioPlayer->mBufferQueue.mRear) { in track_check() 110 assert(0 < audioPlayer->mBufferQueue.mState.count); in track_check() 135 oldFront = audioPlayer->mBufferQueue.mFront; in track_check() [all …]
|
D | IEngine.c | 26 if (BUFFER_HEADER_TYPICAL >= ap->mBufferQueue.mNumBuffers) { in initializeBufferQueueMembers() 27 ap->mBufferQueue.mArray = ap->mBufferQueue.mTypical; in initializeBufferQueueMembers() 32 if (ap->mBufferQueue.mNumBuffers >= 256) { in initializeBufferQueueMembers() 35 ap->mBufferQueue.mArray = (BufferHeader *) in initializeBufferQueueMembers() 36 malloc((ap->mBufferQueue.mNumBuffers + 1) * sizeof(BufferHeader)); in initializeBufferQueueMembers() 37 if (NULL == ap->mBufferQueue.mArray) { in initializeBufferQueueMembers() 41 ap->mBufferQueue.mFront = ap->mBufferQueue.mArray; in initializeBufferQueueMembers() 42 ap->mBufferQueue.mRear = ap->mBufferQueue.mArray; in initializeBufferQueueMembers() 301 nbBuffers = (SLuint16) thiz->mDataSource.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer() 324 nbBuffers = thiz->mDataSink.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer() [all …]
|
D | IPlay.c | 59 if ((NULL != audioPlayer) && (audioPlayer->mBufferQueue.mFront != in IPlay_SetPlayState() 60 audioPlayer->mBufferQueue.mRear)) { in IPlay_SetPlayState()
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 150 List<size_t> mBufferQueue; member 215 while (mBufferQueue.empty()) { in writeData() 219 mCurrentBufferIndex = *mBufferQueue.begin(); in writeData() 222 mBufferQueue.erase(mBufferQueue.begin()); in writeData() 252 mBufferQueue.push_back(index); in onBufferAvailable()
|
/frameworks/wilhelm/src/desktop/ |
D | SndFile.c | 171 thiz->mBufferQueue.mNumBuffers = SndFile_NUMBUFS; in SndFile_checkAudioPlayerSourceSink() 194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count; in audioPlayerTransportUpdate() 214 IBufferQueue_Clear(&audioPlayer->mBufferQueue.mItf); in audioPlayerTransportUpdate() 229 SndFile_Callback(&audioPlayer->mBufferQueue.mItf, audioPlayer); in audioPlayerTransportUpdate() 256 SLBufferQueueItf bufferQueue = &thiz->mBufferQueue.mItf; in SndFile_Realize()
|
D | OutputMixExt.h | 38 struct BufferQueue_interface *mBufferQueue; member
|
/frameworks/wilhelm/src/ |
D | classes.h | 40 IBufferQueue mBufferQueue; member 138 IBufferQueue mBufferQueue; member 246 IBufferQueue mBufferQueue; member
|
D | data.c | 53 pDataLocator->mBufferQueue = *(SLDataLocator_BufferQueue *)pLocator; in checkDataLocator() 55 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator() 56 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator() 57 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mBufferQueue.numBuffers); in checkDataLocator() 229 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator() 230 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
|
D | data.h | 22 SLDataLocator_BufferQueue mBufferQueue; member
|
D | classes.c | 64 {MPH_BUFFERQUEUE, INTERFACE_EXPLICIT, offsetof(CAudioPlayer, mBufferQueue)}, 127 {MPH_ANDROIDSIMPLEBUFFERQUEUE, INTERFACE_EXPLICIT, offsetof(CAudioRecorder, mBufferQueue)}, 296 {MPH_BUFFERQUEUE, INTERFACE_EXPLICIT_GAME, offsetof(CMidiPlayer, mBufferQueue)},
|
/frameworks/av/services/audioflinger/ |
D | Tracks.cpp | 1728 if (mBufferQueue.size() < kMaxOverFlowBuffers) { in write() 1735 mBufferQueue.add(pInBuffer); in write() 1745 if (mBufferQueue.size()) { in write() 1746 pInBuffer = mBufferQueue.itemAt(0); in write() 1786 if (mBufferQueue.size()) { in write() 1787 mBufferQueue.removeAt(0); in write() 1791 mThread.unsafe_get(), mBufferQueue.size()); in write() 1802 if (mBufferQueue.size() < kMaxOverFlowBuffers) { in write() 1809 mBufferQueue.add(pInBuffer); in write() 1811 mThread.unsafe_get(), mBufferQueue.size()); in write() [all …]
|
D | PlaybackTracks.h | 275 bool bufferQueueEmpty() const { return mBufferQueue.size() == 0; } in bufferQueueEmpty() 288 Vector < Buffer* > mBufferQueue; variable
|