Home
last modified time | relevance | path

Searched refs:oldFront (Results 1 – 6 of 6) sorted by relevance

/frameworks/wilhelm/src/android/
DBufferQueueSource.cpp77 AdvancedBufferHeader *oldFront = mAndroidBufferQueueSource->mFront; in readAt() local
78 AdvancedBufferHeader *newFront = &oldFront[1]; in readAt()
87 if (oldFront->mDataSizeConsumed == 0) { in readAt()
88 if (oldFront->mItems.mAdtsCmdData.mAdtsCmdCode & ANDROID_ADTSEVENT_EOS) { in readAt()
93 oldFront->mItems.mAdtsCmdData.mAdtsCmdCode = ANDROID_ADTSEVENT_NONE; in readAt()
99 if (offset + (off64_t) size <= mStreamToBqOffset + oldFront->mDataSize) { in readAt()
100 pSrc = ((char*)oldFront->mDataBuffer) + (offset - mStreamToBqOffset); in readAt()
102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) { in readAt()
104 oldFront->mDataSizeConsumed = oldFront->mDataSize; in readAt()
105 mStreamToBqOffset += oldFront->mDataSize; in readAt()
[all …]
Dandroid_StreamPlayer.cpp134 AdvancedBufferHeader *oldFront = NULL; in pullFromBuffQueue() local
148 oldFront = mAndroidBufferQueue->mFront; in pullFromBuffQueue()
149 AdvancedBufferHeader *newFront = &oldFront[1]; in pullFromBuffQueue()
152 if (oldFront->mDataSizeConsumed == 0) { in pullFromBuffQueue()
154 if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_EOS) { in pullFromBuffQueue()
158 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCONTINUITY) { in pullFromBuffQueue()
160 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCON_NEWPTS) { in pullFromBuffQueue()
163 (int64_t)oldFront->mItems.mTsCmdData.mPts); in pullFromBuffQueue()
165 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
172 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
[all …]
DAudioRecorder_to_android.cpp325 BufferHeader *oldFront = ar->mBufferQueue.mFront; in audioRecorder_handleMoreData_lockRecord() local
326 BufferHeader *newFront = &oldFront[1]; 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()
DAudioPlayer_to_android.cpp165 BufferHeader *oldFront = ap->mBufferQueue.mFront; in adecoder_writeToBufferQueue() local
166 BufferHeader *newFront = &oldFront[1]; 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()
177 sizeConsumed = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
1259 BufferHeader *oldFront = ap->mBufferQueue.mFront; in audioTrack_handleMoreData_lockPlay() local
1260 BufferHeader *newFront = &oldFront[1]; in audioTrack_handleMoreData_lockPlay()
1262 size_t availSource = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in audioTrack_handleMoreData_lockPlay()
1265 void *pSrc = (char *)oldFront->mBuffer + ap->mBufferQueue.mSizeConsumed; in audioTrack_handleMoreData_lockPlay()
/frameworks/wilhelm/src/itf/
DIOutputMixExt.cpp68 const BufferHeader *oldFront; in track_check() local
108 oldFront = audioPlayer->mBufferQueue.mFront; in track_check()
109 if (oldFront != audioPlayer->mBufferQueue.mRear) { in track_check()
111 track->mReader = oldFront->mBuffer; in track_check()
112 track->mAvail = oldFront->mSize; in track_check()
135 oldFront = audioPlayer->mBufferQueue.mFront; in track_check()
136 if (oldFront != audioPlayer->mBufferQueue.mRear) { in track_check()
138 track->mReader = oldFront->mBuffer; in track_check()
139 track->mAvail = oldFront->mSize; in track_check()
275 const BufferHeader *oldFront, *newFront, *rear; in IOutputMixExt_FillBuffer() local
[all …]
/frameworks/wilhelm/src/
DThreadPool.cpp193 Closure **oldFront = tp->mClosureFront; in ThreadPool_deinit_internal() local
194 while (oldFront != tp->mClosureRear) { in ThreadPool_deinit_internal()
195 Closure **newFront = oldFront; in ThreadPool_deinit_internal()
198 Closure *pClosure = *oldFront; in ThreadPool_deinit_internal()
200 *oldFront = NULL; in ThreadPool_deinit_internal()
339 Closure **oldFront = tp->mClosureFront; in ThreadPool_remove() local
341 if (oldFront == tp->mClosureRear) { in ThreadPool_remove()
349 Closure **newFront = oldFront; in ThreadPool_remove()
353 pClosure = *oldFront; in ThreadPool_remove()
355 *oldFront = NULL; in ThreadPool_remove()