Lines Matching refs:buffers
30 // MediaBufferGroup may create shared memory buffers at a
39 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit)
42 if (mGrowthLimit > 0 && buffers > mGrowthLimit) {
43 ALOGW("Preallocated buffers %zu > growthLimit %zu, increasing growthLimit",
44 buffers, mGrowthLimit);
45 mGrowthLimit = buffers;
55 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers;
58 for (size_t i = 0; i < buffers; ++i) {
61 ALOGW("Only allocated %zu shared buffers of size %zu", i, buffer_size);
72 for (size_t i = 0; i < buffers; ++i) {
76 ALOGW("Only allocated %zu malloc buffers of size %zu", i, buffer_size);
111 // if we're above our growth limit, release buffers if we can
131 return true; // We can add more buffers internally.
195 // All buffers are in use, block until one of them is returned.