Lines Matching refs:c2buffer
108 std::shared_ptr<C2Buffer> c2buffer; in cloneAndReleaseBuffer() local
109 if (!releaseBuffer(buffer, &c2buffer, true)) { in cloneAndReleaseBuffer()
112 if (!copy->canCopy(c2buffer)) { in cloneAndReleaseBuffer()
115 if (!copy->copy(c2buffer)) { in cloneAndReleaseBuffer()
236 std::shared_ptr<C2Buffer> *c2buffer, in releaseSlot() argument
259 if (c2buffer) { in releaseSlot()
260 *c2buffer = result; in releaseSlot()
265 bool FlexBuffersImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
269 if (!compBuffer || compBuffer != c2buffer) { in expireComponentBuffer()
349 std::shared_ptr<C2Buffer> *c2buffer, in returnBuffer() argument
377 if (c2buffer) { in returnBuffer()
378 *c2buffer = result; in returnBuffer()
383 bool BuffersArrayImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
390 if (c2buffer == compBuffer) { in expireComponentBuffer()
474 std::shared_ptr<C2Buffer> *c2buffer, in releaseBuffer() argument
476 return mImpl.returnBuffer(buffer, c2buffer, release); in releaseBuffer()
480 const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
481 return mImpl.expireComponentBuffer(c2buffer); in expireComponentBuffer()
510 std::shared_ptr<C2Buffer> *c2buffer, in releaseBuffer() argument
512 return mImpl.releaseSlot(buffer, c2buffer, release); in releaseBuffer()
516 const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
517 return mImpl.expireComponentBuffer(c2buffer); in expireComponentBuffer()
682 std::shared_ptr<C2Buffer> *c2buffer, in releaseBuffer() argument
684 return mImpl.releaseSlot(buffer, c2buffer, release); in releaseBuffer()
688 const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
689 return mImpl.expireComponentBuffer(c2buffer); in expireComponentBuffer()
752 std::shared_ptr<C2Buffer> *c2buffer, in releaseBuffer() argument
754 return mImpl.releaseSlot(buffer, c2buffer, release); in releaseBuffer()
758 const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() argument
759 return mImpl.expireComponentBuffer(c2buffer); in expireComponentBuffer()
857 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) { in releaseBuffer() argument
858 return mImpl.returnBuffer(buffer, c2buffer, true); in releaseBuffer()
877 void OutputBuffersArray::realloc(const std::shared_ptr<C2Buffer> &c2buffer) { in realloc() argument
878 switch (c2buffer->data().type()) { in realloc()
881 const std::vector<C2ConstLinearBlock> &linear_blocks = c2buffer->data().linearBlocks(); in realloc()
914 ALOGD("Unsupported type: %d", (int)c2buffer->data().type()); in realloc()
955 std::shared_ptr<C2Buffer> *c2buffer) { in releaseBuffer() argument
956 return mImpl.releaseSlot(buffer, c2buffer, true); in releaseBuffer()
1042 sp<Codec2Buffer> c2buffer = ConstGraphicBlockBuffer::AllocateEmpty( in wrap() local
1047 if (c2buffer == nullptr) { in wrap()
1051 c2buffer->setRange(0, 0); in wrap()
1052 return c2buffer; in wrap()