Home
last modified time | relevance | path

Searched refs:oldFront (Results 1 – 7 of 7) 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 + 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.cpp132 AdvancedBufferHeader *oldFront = NULL; in pullFromBuffQueue() local
146 oldFront = mAndroidBufferQueue->mFront; in pullFromBuffQueue()
147 AdvancedBufferHeader *newFront = &oldFront[1]; in pullFromBuffQueue()
150 if (oldFront->mDataSizeConsumed == 0) { in pullFromBuffQueue()
152 if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_EOS) { in pullFromBuffQueue()
156 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCONTINUITY) { in pullFromBuffQueue()
158 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode & ANDROID_MP2TSEVENT_DISCON_NEWPTS) { in pullFromBuffQueue()
161 (int64_t)oldFront->mItems.mTsCmdData.mPts); in pullFromBuffQueue()
163 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
170 } else if (oldFront->mItems.mTsCmdData.mTsCmdCode in pullFromBuffQueue()
[all …]
DAudioRecorder_to_android.cpp228 BufferHeader *oldFront = ar->mBufferQueue.mFront; in audioRecorder_callback() local
229 BufferHeader *newFront = &oldFront[1]; in audioRecorder_callback()
232 short *pDest = (short*)((char *)oldFront->mBuffer + ar->mBufferQueue.mSizeConsumed); in audioRecorder_callback()
233 if (ar->mBufferQueue.mSizeConsumed + pBuff->size < oldFront->mSize) { in audioRecorder_callback()
245 pBuff->size = oldFront->mSize - ar->mBufferQueue.mSizeConsumed; in audioRecorder_callback()
DAudioPlayer_to_android.cpp119 BufferHeader *oldFront = ap->mBufferQueue.mFront; in adecoder_writeToBufferQueue() local
120 BufferHeader *newFront = &oldFront[1]; 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()
131 sizeConsumed = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in adecoder_writeToBufferQueue()
1139 BufferHeader *oldFront = ap->mBufferQueue.mFront; in audioTrack_callBack_pullFromBuffQueue() local
1140 BufferHeader *newFront = &oldFront[1]; in audioTrack_callBack_pullFromBuffQueue()
1143 void *pSrc = (char *)oldFront->mBuffer + ap->mBufferQueue.mSizeConsumed; in audioTrack_callBack_pullFromBuffQueue()
1144 if (ap->mBufferQueue.mSizeConsumed + pBuff->size < oldFront->mSize) { in audioTrack_callBack_pullFromBuffQueue()
1153 pBuff->size = oldFront->mSize - ap->mBufferQueue.mSizeConsumed; in audioTrack_callBack_pullFromBuffQueue()
/frameworks/wilhelm/src/itf/
DIOutputMixExt.c68 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.c193 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()
/frameworks/av/services/audioflinger/
DPipeReader.cpp53 int32_t oldFront = mFront; in availableToRead() local
55 mFramesOverrun += (size_t) (mFront - oldFront); in availableToRead()