Home
last modified time | relevance | path

Searched refs:mBufferQueue (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/libstagefright/httplive/
DLiveDataSource.cpp54 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()
DLiveDataSource.h52 List<sp<ABuffer> > mBufferQueue; member
/frameworks/wilhelm/src/itf/
DIOutputMixExt.cpp70 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 …]
DIEngine.cpp27 if (BUFFER_HEADER_TYPICAL >= ap->mBufferQueue.mNumBuffers) { in initializeBufferQueueMembers()
28 ap->mBufferQueue.mArray = ap->mBufferQueue.mTypical; in initializeBufferQueueMembers()
33 if (ap->mBufferQueue.mNumBuffers >= 256) { in initializeBufferQueueMembers()
36 ap->mBufferQueue.mArray = (BufferHeader *) in initializeBufferQueueMembers()
37 malloc((ap->mBufferQueue.mNumBuffers + 1) * sizeof(BufferHeader)); in initializeBufferQueueMembers()
38 if (NULL == ap->mBufferQueue.mArray) { in initializeBufferQueueMembers()
42 ap->mBufferQueue.mFront = ap->mBufferQueue.mArray; in initializeBufferQueueMembers()
43 ap->mBufferQueue.mRear = ap->mBufferQueue.mArray; in initializeBufferQueueMembers()
303 nbBuffers = (SLuint16) thiz->mDataSource.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer()
326 nbBuffers = thiz->mDataSink.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer()
[all …]
DIPlay.cpp59 if ((NULL != audioPlayer) && (audioPlayer->mBufferQueue.mFront != in IPlay_SetPlayState()
60 audioPlayer->mBufferQueue.mRear)) { in IPlay_SetPlayState()
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp326 interface_lock_exclusive(&ar->mBufferQueue); in audioRecorder_callback()
328 if (ar->mBufferQueue.mState.count != 0) { in audioRecorder_callback()
329 assert(ar->mBufferQueue.mFront != ar->mBufferQueue.mRear); in audioRecorder_callback()
331 BufferHeader *oldFront = ar->mBufferQueue.mFront; in audioRecorder_callback()
334 size_t availSink = oldFront->mSize - ar->mBufferQueue.mSizeConsumed; in audioRecorder_callback()
337 void *pDest = (char *)oldFront->mBuffer + ar->mBufferQueue.mSizeConsumed; in audioRecorder_callback()
342 ar->mBufferQueue.mSizeConsumed += availSource; in audioRecorder_callback()
347 ar->mBufferQueue.mSizeConsumed = 0; in audioRecorder_callback()
348 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_callback()
349 newFront = ar->mBufferQueue.mArray; in audioRecorder_callback()
[all …]
DAudioPlayer_to_android.cpp160 if (ap->mBufferQueue.mState.count != 0) { in adecoder_writeToBufferQueue()
161 assert(ap->mBufferQueue.mFront != ap->mBufferQueue.mRear); in adecoder_writeToBufferQueue()
163 BufferHeader *oldFront = ap->mBufferQueue.mFront; in adecoder_writeToBufferQueue()
166 uint8_t *pDest = (uint8_t *)oldFront->mBuffer + ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
167 if (ap->mBufferQueue.mSizeConsumed + size < oldFront->mSize) { in adecoder_writeToBufferQueue()
169 ap->mBufferQueue.mSizeConsumed += size; in adecoder_writeToBufferQueue()
175 sizeConsumed = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
178 ap->mBufferQueue.mSizeConsumed = 0; in adecoder_writeToBufferQueue()
179 if (newFront == &ap->mBufferQueue.mArray[ap->mBufferQueue.mNumBuffers + 1]) { in adecoder_writeToBufferQueue()
180 newFront = ap->mBufferQueue.mArray; in adecoder_writeToBufferQueue()
[all …]
/frameworks/av/cmds/stagefright/
Dstream.cpp153 List<size_t> mBufferQueue; member
224 while (mBufferQueue.empty()) { in writeData()
228 mCurrentBufferIndex = *mBufferQueue.begin(); in writeData()
231 mBufferQueue.erase(mBufferQueue.begin()); in writeData()
261 mBufferQueue.push_back(index); in onBufferAvailable()
/frameworks/wilhelm/src/desktop/
DSndFile.cpp171 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()
DOutputMixExt.h38 struct BufferQueue_interface *mBufferQueue; member
/frameworks/wilhelm/src/
Dclasses.h43 IBufferQueue mBufferQueue; member
145 IBufferQueue mBufferQueue; member
255 IBufferQueue mBufferQueue; member
Ddata.cpp56 pDataLocator->mBufferQueue = *(SLDataLocator_BufferQueue *)pLocator; in checkDataLocator()
58 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
59 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
60 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mBufferQueue.numBuffers); in checkDataLocator()
232 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
233 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
Ddata.h25 SLDataLocator_BufferQueue mBufferQueue; member
Dclasses.cpp64 {MPH_BUFFERQUEUE, INTERFACE_EXPLICIT, offsetof(CAudioPlayer, mBufferQueue)},
127 {MPH_ANDROIDSIMPLEBUFFERQUEUE, INTERFACE_EXPLICIT, offsetof(CAudioRecorder, mBufferQueue)},
299 {MPH_BUFFERQUEUE, INTERFACE_EXPLICIT_GAME, offsetof(CMidiPlayer, mBufferQueue)},
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp421 while (output->mBufferQueue.size() == 0 && !output->mEncoderReachedEOS) { in read()
425 *buffer = *output->mBufferQueue.begin(); in read()
426 output->mBufferQueue.erase(output->mBufferQueue.begin()); in read()
640 for (List<MediaBufferBase*>::iterator it = output->mBufferQueue.begin(); in signalEOS()
641 it != output->mBufferQueue.end(); it++) { in signalEOS()
644 output->mBufferQueue.clear(); in signalEOS()
974 output->mBufferQueue.push_back(mbuf); in onMessageReceived()
/frameworks/av/services/audioflinger/
DTracks.cpp1637 if (mBufferQueue.size()) { in write()
1638 pInBuffer = mBufferQueue.itemAt(0); in write()
1684 if (mBufferQueue.size()) { in write()
1685 mBufferQueue.removeAt(0); in write()
1692 (int)mThreadIoHandle, mBufferQueue.size()); in write()
1703 if (mBufferQueue.size() < kMaxOverFlowBuffers) { in write()
1709 mBufferQueue.add(pInBuffer); in write()
1711 (int)mThreadIoHandle, mBufferQueue.size()); in write()
1724 if (frames == 0 && mBufferQueue.size() == 0 && mActive) { in write()
1762 size_t size = mBufferQueue.size(); in clearBufferQueue()
[all …]
DPlaybackTracks.h322 bool bufferQueueEmpty() const { return mBufferQueue.size() == 0; } in bufferQueueEmpty()
352 Vector < Buffer* > mBufferQueue; variable
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecSource.h152 List<MediaBufferBase*> mBufferQueue; member
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp902 const bool mBufferQueue; member in android::C2AllocatorGralloc::Impl
914 : mInit(C2_OK), mBufferQueue(bufferQueue) { in Impl()
1000 0, 0, mBufferQueue ? ~0 : 0), in newGraphicAllocation()
1057 0, 0, mBufferQueue ? ~0 : 0), in newGraphicAllocation()