Lines Matching refs:mInternal

47     : mInternal(new InternalData()) {  in MediaBufferGroup()
48 mInternal->mGrowthLimit = growthLimit; in MediaBufferGroup()
52 : mInternal(new InternalData()) { in MediaBufferGroup()
53 mInternal->mGrowthLimit = growthLimit; in MediaBufferGroup()
55 if (mInternal->mGrowthLimit > 0 && buffers > mInternal->mGrowthLimit) { in MediaBufferGroup()
57 buffers, mInternal->mGrowthLimit); in MediaBufferGroup()
58 mInternal->mGrowthLimit = buffers; in MediaBufferGroup()
97 for (MediaBufferBase *buffer : mInternal->mBuffers) { in ~MediaBufferGroup()
119 delete mInternal; in ~MediaBufferGroup()
123 Mutex::Autolock autoLock(mInternal->mLock); in add_buffer()
126 for (auto it = mInternal->mBuffers.begin(); in add_buffer()
127 mInternal->mGrowthLimit > 0 in add_buffer()
128 && mInternal->mBuffers.size() >= mInternal->mGrowthLimit in add_buffer()
129 && it != mInternal->mBuffers.end();) { in add_buffer()
133 it = mInternal->mBuffers.erase(it); in add_buffer()
140 mInternal->mBuffers.emplace_back(buffer); in add_buffer()
144 if (mInternal->mBuffers.size() < mInternal->mGrowthLimit) { in has_buffers()
147 for (MediaBufferBase *buffer : mInternal->mBuffers) { in has_buffers()
157 Mutex::Autolock autoLock(mInternal->mLock); in acquire_buffer()
161 auto free = mInternal->mBuffers.end(); in acquire_buffer()
162 for (auto it = mInternal->mBuffers.begin(); it != mInternal->mBuffers.end(); ++it) { in acquire_buffer()
176 && (free != mInternal->mBuffers.end() in acquire_buffer()
177 || mInternal->mBuffers.size() < mInternal->mGrowthLimit)) { in acquire_buffer()
188 if (free != mInternal->mBuffers.end()) { in acquire_buffer()
196 mInternal->mBuffers.emplace_back(buffer); in acquire_buffer()
211 mInternal->mCondition.wait(mInternal->mLock); in acquire_buffer()
217 return mInternal->mBuffers.size(); in buffers()
221 Mutex::Autolock autoLock(mInternal->mLock); in signalBufferReturned()
222 mInternal->mCondition.signal(); in signalBufferReturned()