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.cpp320 interface_lock_exclusive(&ar->mBufferQueue); in audioRecorder_handleMoreData_lockRecord()
322 if (ar->mBufferQueue.mState.count != 0) { in audioRecorder_handleMoreData_lockRecord()
323 assert(ar->mBufferQueue.mFront != ar->mBufferQueue.mRear); in audioRecorder_handleMoreData_lockRecord()
325 BufferHeader *oldFront = ar->mBufferQueue.mFront; in audioRecorder_handleMoreData_lockRecord()
328 size_t availSink = oldFront->mSize - ar->mBufferQueue.mSizeConsumed; in audioRecorder_handleMoreData_lockRecord()
331 void *pDest = (char *)oldFront->mBuffer + ar->mBufferQueue.mSizeConsumed; in audioRecorder_handleMoreData_lockRecord()
336 ar->mBufferQueue.mSizeConsumed += availSource; in audioRecorder_handleMoreData_lockRecord()
339 ar->mBufferQueue.mSizeConsumed = 0; in audioRecorder_handleMoreData_lockRecord()
340 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_handleMoreData_lockRecord()
341 newFront = ar->mBufferQueue.mArray; in audioRecorder_handleMoreData_lockRecord()
[all …]
DAudioPlayer_to_android.cpp162 if (ap->mBufferQueue.mState.count != 0) { in adecoder_writeToBufferQueue()
163 assert(ap->mBufferQueue.mFront != ap->mBufferQueue.mRear); in adecoder_writeToBufferQueue()
165 BufferHeader *oldFront = ap->mBufferQueue.mFront; in adecoder_writeToBufferQueue()
168 uint8_t *pDest = (uint8_t *)oldFront->mBuffer + ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
169 if (ap->mBufferQueue.mSizeConsumed + size < oldFront->mSize) { in adecoder_writeToBufferQueue()
171 ap->mBufferQueue.mSizeConsumed += size; in adecoder_writeToBufferQueue()
177 sizeConsumed = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
180 ap->mBufferQueue.mSizeConsumed = 0; in adecoder_writeToBufferQueue()
181 if (newFront == &ap->mBufferQueue.mArray[ap->mBufferQueue.mNumBuffers + 1]) { in adecoder_writeToBufferQueue()
182 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.h44 IBufferQueue mBufferQueue; member
146 IBufferQueue mBufferQueue; member
257 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.cpp413 while (output->mBufferQueue.size() == 0 && !output->mEncoderReachedEOS) { in read()
417 *buffer = *output->mBufferQueue.begin(); in read()
418 output->mBufferQueue.erase(output->mBufferQueue.begin()); in read()
656 for (List<MediaBufferBase*>::iterator it = output->mBufferQueue.begin(); in signalEOS()
657 it != output->mBufferQueue.end(); it++) { in signalEOS()
660 output->mBufferQueue.clear(); in signalEOS()
1017 output->mBufferQueue.push_back(mbuf); in onMessageReceived()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecSource.h155 List<MediaBufferBase*> mBufferQueue; member
/frameworks/av/services/audioflinger/
DTracks.cpp2036 if (mBufferQueue.size()) { in write()
2037 pInBuffer = mBufferQueue.itemAt(0); in write()
2082 if (mBufferQueue.size()) { in write()
2083 mBufferQueue.removeAt(0); in write()
2090 (int)mThreadIoHandle, mBufferQueue.size()); in write()
2101 if (mBufferQueue.size() < kMaxOverFlowBuffers) { in write()
2107 mBufferQueue.add(pInBuffer); in write()
2109 (int)mThreadIoHandle, mBufferQueue.size()); in write()
2122 if (frames == 0 && mBufferQueue.size() == 0 && mActive) { in write()
2160 size_t size = mBufferQueue.size(); in clearBufferQueue()
[all …]
DPlaybackTracks.h383 bool bufferQueueEmpty() const { return mBufferQueue.size() == 0; } in bufferQueueEmpty()
413 Vector < Buffer* > mBufferQueue; variable
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp945 const bool mBufferQueue; member in android::C2AllocatorGralloc::Impl
957 : mInit(C2_OK), mBufferQueue(bufferQueue) { in Impl()
990 0, 0, mBufferQueue ? ~0 : 0), in newGraphicAllocation()