/frameworks/av/media/codec2/vndk/include/ |
D | C2FenceFactory.h | 39 std::vector<int> ExtractFdsFromCodec2SyncFence(const C2Fence& fence); 58 static C2Fence CreateSurfaceFence( 70 static C2Fence CreateSyncFence(int fenceFd, bool validate = true); 82 static C2Fence CreateMultipleFdSyncFence(const std::vector<int>& fenceFds) { in CreateMultipleFdSyncFence() 110 static C2Fence CreateUnorderedMultiSyncFence( 131 static C2Fence CreateMultiSyncFence( 142 static C2Fence CreatePipeFence(int fd); 151 static C2Fence CreatePipeFence(::android::base::unique_fd &&ufd); 158 static native_handle_t* CreateNativeHandle(const C2Fence& fence); 172 static C2Fence CreateFromNativeHandle(
|
D | C2IgbaBufferPriv.h | 66 C2Fence *fence /* nonnull */) override; 80 C2Fence *fence /* nonnull */); 86 C2Fence mWaitFence;
|
D | C2BqBufferPriv.h | 76 C2Fence *fence /* nonnull */) override;
|
/frameworks/av/media/codec2/vndk/ |
D | C2Fence.cpp | 35 class C2Fence::Impl { 105 c2_status_t C2Fence::wait(c2_nsecs_t timeoutNs) { in wait() 113 bool C2Fence::valid() const { in valid() 121 bool C2Fence::ready() const { in ready() 129 int C2Fence::fd() const { in fd() 137 bool C2Fence::isHW() const { in isHW() 148 class _C2FenceFactory::SurfaceFenceImpl: public C2Fence::Impl { 203 C2Fence::C2Fence(std::shared_ptr<Impl> impl) : mImpl(impl) {} in C2Fence() function in C2Fence 205 C2Fence _C2FenceFactory::CreateSurfaceFence( in CreateSurfaceFence() 209 C2Fence::Impl *p in CreateSurfaceFence() [all …]
|
D | C2AllocatorBlob.cpp | 59 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, 61 c2_status_t unmap(void* addr, size_t size, C2Fence* fenceFd) override; 94 C2Fence* fence, void** addr /* nonnull */) { in map() 125 c2_status_t C2AllocationBlob::unmap(void* addr, size_t size, C2Fence* fenceFd) { in unmap()
|
D | C2AllocatorIon.cpp | 97 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, 99 virtual c2_status_t unmap(void *addr, size_t size, C2Fence *fenceFd) override; 181 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 217 c2_status_t unmap(void *addr, size_t size, C2Fence *fence) { in unmap() 234 *fence = C2Fence(); // not using fences in unmap() 439 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 443 c2_status_t C2AllocationIon::unmap(void *addr, size_t size, C2Fence *fence) { in unmap()
|
D | C2DmaBufAllocator.cpp | 106 virtual c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, 108 virtual c2_status_t unmap(void* addr, size_t size, C2Fence* fenceFd) override; 171 c2_status_t C2DmaBufAllocation::map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, in map() 209 c2_status_t C2DmaBufAllocation::unmap(void* addr, size_t size, C2Fence* fence) { in unmap() 226 *fence = C2Fence(); // not using fences in unmap()
|
D | C2Buffer.cpp | 126 C2Fence *fence /* nonnull */) { in fetchLinearBlock() 130 *fence = C2Fence(); in fetchLinearBlock() 138 C2Fence *fence /* nonnull */) { in fetchGraphicBlock() 142 *fence = C2Fence(); in fetchGraphicBlock() 306 …k::C2ConstLinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range, C2Fence fence) in C2ConstLinearBlock() 322 return AcquirableReadViewBuddy(error, C2Fence(), ReadViewBuddy(rvi, 0, len)); in map() 324 return AcquirableReadViewBuddy(error, C2Fence(), ReadViewBuddy(error)); in map() 352 return AcquirableWriteViewBuddy(error, C2Fence(), WriteViewBuddy(rvi)); in map() 354 return AcquirableWriteViewBuddy(error, C2Fence(), WriteViewBuddy(error)); in map() 358 C2ConstLinearBlock C2LinearBlock::share(size_t offset_, size_t size_, C2Fence fence) { in share() [all …]
|
D | C2AllocatorGralloc.cpp | 979 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, 982 uint8_t **addr /* nonnull */, C2Rect rect, C2Fence *fence /* nullable */) override; 1062 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, in map() 1130 uint8_t **addr, C2Rect rect, C2Fence *fence /* nullable */) { in unmap() 1324 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, 1327 uint8_t **addr /* nonnull */, C2Rect rect, C2Fence *fence /* nullable */) override; 1413 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, in map() 1480 uint8_t **addr, C2Rect rect, C2Fence *fence /* nullable */) { in unmap()
|
D | Android.bp | 67 "C2Fence.cpp",
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2FenceTest.cpp | 66 void validateNullFence(const C2Fence &fence); 69 void validateSingleFdFence(const C2Fence &fence, int fd); 72 void validateTwoFdUnorderedFence(const C2Fence &fence, int fd1, int fd2, int mergeFd); 75 void validateThreeFdFence(const C2Fence &fence, int fd1, int fd2, int fd3); 99 validateNullFence(C2Fence()); in TEST_F() 102 void C2FenceTest::validateNullFence(const C2Fence &fence) { in validateNullFence() 128 C2Fence fence = _C2FenceFactory::CreateSyncFence(-1, false /* validate */); in TEST_F() 139 C2Fence fence = _C2FenceFactory::CreateSyncFence(fd, false /* validate */); in TEST_F() 143 void C2FenceTest::validateSingleFdFence(const C2Fence &fence, int fd) { in validateSingleFdFence() 182 C2Fence fence = _C2FenceFactory::CreateUnorderedMultiSyncFence( in TEST_F() [all …]
|
D | C2BufferTest.cpp | 406 C2Fence fence; in TEST_F() 550 C2Fence fence; in TEST_F() 632 …std::shared_ptr<C2BufferData> data(new BufferData({ linearBlock1->share(0, kCapacity1, C2Fence()) … in TEST_F() 639 linearBlock1->share(0, kCapacity1, C2Fence()), in TEST_F() 640 linearBlock2->share(0, kCapacity2, C2Fence()), in TEST_F() 648 data.reset(new BufferData({ graphicBlock1->share(kCrop1, C2Fence()) })); in TEST_F() 655 graphicBlock1->share(kCrop1, C2Fence()), in TEST_F() 656 graphicBlock2->share(kCrop2, C2Fence()), in TEST_F() 691 std::shared_ptr<C2Buffer> buffer(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F() 698 buffer.reset(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F() [all …]
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 68 class C2Fence { 127 constexpr C2Fence() : mImpl(nullptr) { } in C2Fence() function 132 C2Fence(std::shared_ptr<Impl> impl); 134 friend std::vector<int> ExtractFdsFromCodec2SyncFence(const C2Fence& fence); 150 C2Fence fence() const; 176 c2_status_t merge(std::vector<C2Fence> fences); 219 class C2Acquirable : public C2Fence { 234 …C2Acquirable(c2_status_t error, C2Fence fence, T t) : C2Fence(fence), mInitialError(error), mT(t) … in C2Acquirable() 802 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence /* nullable */, 825 virtual c2_status_t unmap(void *addr, size_t size, C2Fence *fence /* nullable */) = 0; [all …]
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.h | 42 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer() 45 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer() 51 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
|
/frameworks/av/media/codec2/vndk/platform/ |
D | C2IgbaBuffer.cpp | 191 C2Fence fence; in fetchGraphicBlock() 206 std::shared_ptr<C2GraphicBlock> *block, C2Fence *fence) { in fetchGraphicBlock() 210 *fence = C2Fence(); in fetchGraphicBlock() 221 C2Fence *fence) { in _fetchGraphicBlock() 263 C2Fence syncFence = _C2FenceFactory::CreateSyncFence(allocation.fence.release()); in _fetchGraphicBlock()
|
D | C2BqBuffer.cpp | 379 C2Fence *c2Fence) { in fetchFromIgbp_l() 401 *c2Fence = C2Fence(); in fetchFromIgbp_l() 415 *c2Fence = C2Fence(); in fetchFromIgbp_l() 464 *c2Fence = dequeueable ? C2Fence() : in fetchFromIgbp_l() 480 *c2Fence = C2Fence(); in fetchFromIgbp_l() 530 *c2Fence = C2Fence(); in fetchFromIgbp_l() 578 *c2Fence = C2Fence(); in fetchFromIgbp_l() 586 *c2Fence = C2Fence(); in fetchFromIgbp_l() 622 C2Fence *fence) { in fetchGraphicBlock() 1183 C2Fence *fence /* nonnull */) { in fetchGraphicBlock()
|
/frameworks/av/media/codec2/hal/common/ |
D | BufferTypes.cpp | 39 const C2Fence& fence) { in CreateLinearBuffer() 69 const C2Fence& fence) { in CreateGraphicBuffer()
|
/frameworks/av/media/codec2/hal/common/include/codec2/common/ |
D | BufferTypes.h | 232 bool objcpy(Handle* d, const C2Fence& s) { in objcpy() 561 bool objcpy(C2Fence* d, const Handle& s) { in objcpy() 572 const C2Fence& fence); 579 const C2Fence& fence); 613 C2Fence dFence; in objcpy() 698 C2Fence dFence; in objcpy()
|
/frameworks/av/media/codec2/tests/aidl/ |
D | GraphicsTracker_test.cpp | 240 blk->share(C2Rect(1, 1), C2Fence()), in queueBuffer() 467 C2Fence waitFence = _C2FenceFactory::CreatePipeFence(waitFd); in TEST_F() 528 C2Fence waitFence = _C2FenceFactory::CreatePipeFence(waitFd); in TEST_F() 572 C2Fence waitFence = _C2FenceFactory::CreatePipeFence(waitFd); in TEST_F() 704 C2Fence waitFence = _C2FenceFactory::CreatePipeFence(waitFd); in TEST_F() 771 C2Fence waitFence = _C2FenceFactory::CreatePipeFence(waitFd); in TEST_F()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodecLinearBlock.h | 71 return C2Buffer::CreateLinearBuffer(mBlock->share(offset, size, C2Fence{})); in toC2Buffer()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 59 block->crop(), C2Fence{})); in TEST() 242 block->crop(), C2Fence{})); in TEST() 382 block->crop(), C2Fence{})); in TEST() 449 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, in map() 461 c2_status_t unmap(uint8_t **, C2Rect, C2Fence *) override { return C2_OK; } in unmap() argument 773 block->share(block->crop(), C2Fence())); in CreateAndFillBufferFromParam() 884 C2Buffer::CreateLinearBuffer(block->share(0, 1024, C2Fence())); in TEST()
|
/frameworks/av/media/codec2/hal/aidl/ |
D | BufferTypes.cpp | 170 bool objcpy(AidlNativeHandle* d, const C2Fence& s) { in objcpy() 190 bool objcpy(C2Fence* d, const AidlNativeHandle& s) { in objcpy()
|
/frameworks/av/media/codec2/fuzzer/ |
D | C2Fuzzer.cpp | 29 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer() 32 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer()
|
/frameworks/av/media/codec2/sfplugin/ |
D | FrameReassembler.cpp | 215 mCurrentBlock->share(0, mCurrentBlock->capacity(), C2Fence()))); in finishCurrentBlock()
|
D | Codec2Buffer.cpp | 154 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer() 755 mBlock->share(C2Rect(width, height), C2Fence())); in asC2Buffer() 821 block->share(C2Rect(buffer->width, buffer->height), C2Fence())); in asC2Buffer() 1006 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer()
|