/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.h | 82 bool canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const; 87 bool copyLinear(const std::shared_ptr<C2Buffer> &buffer); 105 std::shared_ptr<C2Buffer> asC2Buffer() override { return nullptr; } in asC2Buffer() 106 bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const override; 107 bool copy(const std::shared_ptr<C2Buffer> &buffer) override; 118 const std::shared_ptr<C2Buffer> &buffer = nullptr); 120 std::shared_ptr<C2Buffer> asC2Buffer() override; 122 bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const override; 123 bool copy(const std::shared_ptr<C2Buffer> &buffer) override; 126 std::shared_ptr<C2Buffer> mBufferRef; [all …]
|
D | CCodecBuffers.h | 135 std::shared_ptr<C2Buffer> *c2buffer, 143 const std::shared_ptr<C2Buffer> &c2buffer) = 0; 194 const std::shared_ptr<C2Buffer> &buffer, 213 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) = 0; 331 const std::shared_ptr<C2Buffer>& buffer, 383 std::shared_ptr<C2Buffer>* c2Buffer, 410 bool convert(const std::shared_ptr<C2Buffer> &src, sp<Codec2Buffer> *dst); 439 const std::shared_ptr<C2Buffer> &b, in StashEntry() 451 std::shared_ptr<C2Buffer> buffer; 596 std::shared_ptr<C2Buffer> *c2buffer, [all …]
|
D | PipelineWatcher.h | 83 std::vector<std::shared_ptr<C2Buffer>> &&buffers, 94 std::shared_ptr<C2Buffer> onInputBufferReleased( 135 Frame(std::vector<std::shared_ptr<C2Buffer>> &&b, in Frame() 139 std::vector<std::shared_ptr<C2Buffer>> buffers;
|
D | CCodecBuffers.cpp | 140 std::shared_ptr<C2Buffer> c2buffer; in cloneAndReleaseBuffer() 393 const std::shared_ptr<C2Buffer> &src, sp<Codec2Buffer> *dst) { in convert() 478 const std::shared_ptr<C2Buffer>& buffer, in pushToStash() 514 std::shared_ptr<C2Buffer>* c2Buffer, in popFromStashAndRegister() 677 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot() 683 std::shared_ptr<C2Buffer> *c2buffer, in releaseSlot() 701 std::shared_ptr<C2Buffer> result = mBuffers[index].compBuffer.lock(); in releaseSlot() 713 bool FlexBuffersImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() 715 std::shared_ptr<C2Buffer> compBuffer = in expireComponentBuffer() 768 mBuffers.push_back({ allocate(), std::weak_ptr<C2Buffer>(), false }); in initialize() [all …]
|
D | Codec2Buffer.cpp | 51 bool Codec2Buffer::canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const { in canCopyLinear() 76 bool Codec2Buffer::copyLinear(const std::shared_ptr<C2Buffer> &buffer) { in copyLinear() 104 bool LocalLinearBuffer::canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy() 108 bool LocalLinearBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 117 const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer) in DummyContainerBuffer() 123 std::shared_ptr<C2Buffer> DummyContainerBuffer::asC2Buffer() { in asC2Buffer() 131 bool DummyContainerBuffer::canCopy(const std::shared_ptr<C2Buffer> &) const { in canCopy() 135 bool DummyContainerBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 153 std::shared_ptr<C2Buffer> LinearBlockBuffer::asC2Buffer() { in asC2Buffer() 154 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer() [all …]
|
D | PipelineWatcher.cpp | 55 std::vector<std::shared_ptr<C2Buffer>> &&buffers, in onWorkQueued() 70 std::shared_ptr<C2Buffer> PipelineWatcher::onInputBufferReleased( in onInputBufferReleased() 85 std::shared_ptr<C2Buffer> buffer(std::move(it->second.buffers[arrayIndex])); in onInputBufferReleased() 122 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodecLinearBlock.h | 30 std::shared_ptr<C2Buffer> mBuffer; 45 std::shared_ptr<C2Buffer> toC2Buffer(size_t offset, size_t size) const { in toC2Buffer() 59 return std::make_shared<C2Buffer>(*mBuffer); in toC2Buffer() 62 std::shared_ptr<C2Buffer> buffer = in toC2Buffer() 63 C2Buffer::CreateLinearBuffer(block.subBlock(offset, size)); in toC2Buffer() 71 return C2Buffer::CreateLinearBuffer(mBlock->share(offset, size, C2Fence{})); in toC2Buffer()
|
D | android_media_MediaCodec.h | 33 class C2Buffer; variable 128 size_t index, const std::shared_ptr<C2Buffer> &buffer,
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaCodecBuffer.h | 25 class C2Buffer; variable 65 virtual std::shared_ptr<C2Buffer> asC2Buffer() { return nullptr; } in asC2Buffer() 74 virtual bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy() 87 virtual bool copy(const std::shared_ptr<C2Buffer> &buffer) { in copy()
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | InputBufferManager.h | 177 static void onBufferDestroyed(const C2Buffer* buf, void* arg); 178 void _onBufferDestroyed(const C2Buffer* buf, void* arg); 190 std::weak_ptr<C2Buffer> buffer; 194 const std::shared_ptr<C2Buffer>& buffer) in TrackedBuffer()
|
/frameworks/av/media/codec2/hal/common/ |
D | BufferTypes.cpp | 36 std::shared_ptr<C2Buffer>* buffer, in CreateLinearBuffer() 54 *buffer = C2Buffer::CreateLinearBuffer(block->share( in CreateLinearBuffer() 66 std::shared_ptr<C2Buffer>* buffer, in CreateGraphicBuffer() 84 *buffer = C2Buffer::CreateGraphicBuffer(block->share( in CreateGraphicBuffer() 100 for (const std::shared_ptr<C2Buffer>& buffer : frameData.buffers) { in forEachBlock()
|
D | MultiAccessUnitHelper.cpp | 130 class C2MultiAccessUnitBuffer : public C2Buffer { 134 C2Buffer(blocks) { in C2MultiAccessUnitBuffer() 354 const std::vector<std::shared_ptr<C2Buffer>>& inBuffers = w->input.buffers; in scatter() 383 std::shared_ptr<C2Buffer>(new C2MultiAccessUnitBuffer(au))); in scatter() 640 std::shared_ptr<C2Buffer>& buffer = (*worklet)->output.buffers[bufIdx]; in processWorklets() 784 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateLinearBuffer( in finalizeWork() 789 std::shared_ptr<C2Buffer>& c2Buffer = in finalizeWork()
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.h | 39 class LinearBuffer : public C2Buffer { 42 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer() 45 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer() 48 class GraphicBuffer : public C2Buffer { 51 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
|
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/ |
D | InputBufferManager.h | 175 static void onBufferDestroyed(const C2Buffer* buf, void* arg); 176 void _onBufferDestroyed(const C2Buffer* buf, void* arg); 188 std::weak_ptr<C2Buffer> buffer; 192 const std::shared_ptr<C2Buffer>& buffer) in TrackedBuffer()
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 114 friend class ::C2Buffer; 1666 class C2Buffer::Impl { 1668 Impl(C2Buffer *thiz, const std::vector<C2ConstLinearBlock> &blocks) in Impl() 1670 Impl(C2Buffer *thiz, const std::vector<C2ConstGraphicBlock> &blocks) in Impl() 1745 C2Buffer * const mThis; 1751 C2Buffer::C2Buffer(const std::vector<C2ConstLinearBlock> &blocks) in C2Buffer() function in C2Buffer 1754 C2Buffer::C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks) in C2Buffer() function in C2Buffer 1757 const C2BufferData C2Buffer::data() const { return mImpl->data(); } in data() 1759 c2_status_t C2Buffer::registerOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in registerOnDestroyNotify() 1763 c2_status_t C2Buffer::unregisterOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in unregisterOnDestroyNotify() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 58 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() 76 std::shared_ptr<C2Buffer> c2Buffer; in TEST() 241 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() 381 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() 699 static std::shared_ptr<C2Buffer> CreateAndFillBufferFromParam(const ParamType ¶m) { in CreateAndFillBufferFromParam() 772 return C2Buffer::CreateGraphicBuffer( in CreateAndFillBufferFromParam() 837 std::shared_ptr<C2Buffer> c2Buffer = CreateAndFillBufferFromParam(GetParam()); in TEST_P() 883 std::shared_ptr<C2Buffer> c2Buffer = in TEST() 884 C2Buffer::CreateLinearBuffer(block->share(0, 1024, C2Fence())); in TEST()
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | InputBufferManager.cpp | 129 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData() 191 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData() 229 void InputBufferManager::onBufferDestroyed(const C2Buffer* buf, void* arg) { in onBufferDestroyed() 233 void InputBufferManager::_onBufferDestroyed(const C2Buffer* buf, void* arg) { in _onBufferDestroyed()
|
D | InputSurfaceConnection.cpp | 61 class Buffer2D : public C2Buffer { 63 explicit Buffer2D(C2ConstGraphicBlock block) : C2Buffer({ block }) { in Buffer2D() 217 std::shared_ptr<C2Buffer> c2Buffer( in submitBuffer() 221 [bufferId, source = mSource](C2Buffer* ptr) { in submitBuffer()
|
/frameworks/av/media/codec2/hal/aidl/ |
D | InputBufferManager.cpp | 126 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData() 182 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData() 216 void InputBufferManager::onBufferDestroyed(const C2Buffer* buf, void* arg) { in onBufferDestroyed() 220 void InputBufferManager::_onBufferDestroyed(const C2Buffer* buf, void* arg) { in _onBufferDestroyed()
|
/frameworks/av/media/codec2/fuzzer/ |
D | C2Fuzzer.cpp | 26 class LinearBuffer : public C2Buffer { 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/hal/common/include/codec2/common/ |
D | BufferTypes.h | 350 bool objcpy(Buffer* d, const C2Buffer& s, in objcpy() 394 for (const std::shared_ptr<C2Buffer>& sBuffer : s.buffers) { in objcpy() 569 std::shared_ptr<C2Buffer>* buffer, 576 std::shared_ptr<C2Buffer>* buffer, 584 bool objcpy(std::shared_ptr<C2Buffer>* d, const Buffer& s, in objcpy() 743 std::shared_ptr<C2Buffer> dBuffer; in objcpy()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Work.h | 185 std::vector<std::shared_ptr<C2Buffer>> buffers;
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 285 const std::shared_ptr<C2Buffer> &buffer) in process() 306 const std::shared_ptr<C2Buffer> mBuffer; in process() 359 std::shared_ptr<C2Buffer> buffer; in process() 420 std::shared_ptr<C2Buffer> c2Buffer = in onEncodedFlacAvailable()
|
D | C2SoftFlacEnc.h | 84 std::shared_ptr<C2Buffer> buffer;
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 462 const std::shared_ptr<C2Buffer> &buffer) in process() 485 const std::shared_ptr<C2Buffer> mBuffer; in process() 489 std::shared_ptr<C2Buffer> buffer; in process() 550 … std::shared_ptr<C2Buffer> buffer = createLinearBuffer(block, 0, outargs.numOutBytes); in process() 642 std::shared_ptr<C2Buffer> buffer; in process()
|