Home
last modified time | relevance | path

Searched refs:blockPool (Results 1 – 3 of 3) sorted by relevance

/external/v4l2_codec2/components/
DVideoFramePool.cpp29 std::optional<uint32_t> VideoFramePool::getBufferIdFromGraphicBlock(C2BlockPool& blockPool, in getBufferIdFromGraphicBlock() argument
31 ALOGV("%s() blockPool.getAllocatorId() = %u", __func__, blockPool.getAllocatorId()); in getBufferIdFromGraphicBlock()
33 if (blockPool.getAllocatorId() == android::V4L2AllocatorId::V4L2_BUFFERPOOL) { in getBufferIdFromGraphicBlock()
35 } else if (blockPool.getAllocatorId() == C2PlatformAllocatorStore::BUFFERQUEUE) { in getBufferIdFromGraphicBlock()
36 C2VdaBqBlockPool* bqPool = static_cast<C2VdaBqBlockPool*>(&blockPool); in getBufferIdFromGraphicBlock()
40 ALOGE("%s(): unknown allocator ID: %u", __func__, blockPool.getAllocatorId()); in getBufferIdFromGraphicBlock()
45 c2_status_t VideoFramePool::requestNewBufferSet(C2BlockPool& blockPool, int32_t bufferCount, in requestNewBufferSet() argument
48 ALOGV("%s() blockPool.getAllocatorId() = %u", __func__, blockPool.getAllocatorId()); in requestNewBufferSet()
50 if (blockPool.getAllocatorId() == android::V4L2AllocatorId::V4L2_BUFFERPOOL) { in requestNewBufferSet()
51 C2VdaPooledBlockPool* bpPool = static_cast<C2VdaPooledBlockPool*>(&blockPool); in requestNewBufferSet()
[all …]
DV4L2DecodeComponent.cpp258 std::shared_ptr<C2BlockPool> blockPool; in getVideoFramePool() local
259 auto status = GetCodec2BlockPool(poolId, std::move(sharedThis), &blockPool); in getVideoFramePool()
266 return VideoFramePool::Create(std::move(blockPool), numBuffers, size, pixelFormat, mIsSecure, in getVideoFramePool()
/external/v4l2_codec2/components/include/v4l2_codec2/components/
DVideoFramePool.h34 std::shared_ptr<C2BlockPool> blockPool, const size_t numBuffers, const ui::Size& size,
51 VideoFramePool(std::shared_ptr<C2BlockPool> blockPool, const ui::Size& size,
64 static c2_status_t requestNewBufferSet(C2BlockPool& blockPool, int32_t bufferCount,
68 static std::optional<uint32_t> getBufferIdFromGraphicBlock(C2BlockPool& blockPool,
73 static bool setNotifyBlockAvailableCb(C2BlockPool& blockPool, ::base::OnceClosure cb);