Lines Matching refs:ABuffer
87 void Codec2Buffer::setImageData(const sp<ABuffer> &imageData) { in setImageData()
107 : Codec2Buffer(format, new ABuffer(sDummyByte, 1)), in DummyContainerBuffer()
154 : Codec2Buffer(format, new ABuffer(writeView.data(), writeView.size())), in LinearBlockBuffer()
180 : Codec2Buffer(format, new ABuffer( in ConstLinearBlockBuffer()
216 mMediaImage(new ABuffer(sizeof(MediaImage2))) { in GraphicView2MediaImageConverter()
292 mWrapped = new ABuffer(const_cast<uint8_t *>(minPtr), in GraphicView2MediaImageConverter()
442 sp<ABuffer> wrap() const { in wrap()
449 bool setBackBuffer(const sp<ABuffer> &backBuffer) { in setBackBuffer()
471 const sp<ABuffer> &imageData() const { return mMediaImage; } in imageData()
480 sp<ABuffer> mWrapped; ///< wrapped buffer (if we can map C2Buffer to an ABuffer)
483 sp<ABuffer> mMediaImage;
484 std::function<sp<ABuffer>(size_t)> mAlloc;
486 sp<ABuffer> mBackBuffer; ///< backing buffer if we have to copy C2Buffer <=> ABuffer
501 std::function<sp<ABuffer>(size_t)> alloc) { in Allocate()
517 sp<ABuffer> buffer = converter.wrap(); in Allocate()
537 const sp<ABuffer> &buffer, in GraphicBlockBuffer()
540 const sp<ABuffer> &imageData, in GraphicBlockBuffer()
563 : Codec2Buffer(format, new ABuffer(sizeof(VideoNativeMetadata))), in GraphicMetadataBuffer()
614 std::function<sp<ABuffer>(size_t)> alloc) { in Allocate()
634 sp<ABuffer> aBuffer = converter.wrap(); in Allocate()
658 std::function<sp<ABuffer>(size_t)> alloc) { in AllocateEmpty()
666 sp<ABuffer> aBuffer(alloc(align(width, 16) * align(height, 16) * 3 / 2)); in AllocateEmpty()
678 const sp<ABuffer> &aBuffer, in ConstGraphicBlockBuffer()
681 const sp<ABuffer> &imageData, in ConstGraphicBlockBuffer()
748 sp<ABuffer> aBuffer = new ABuffer(base(), capacity()); in copy()
767 : Codec2Buffer(format, new ABuffer(memory->pointer(), memory->size())), in EncryptedLinearBlockBuffer()