/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.h | 62 virtual std::shared_ptr<C2Buffer> asC2Buffer() = 0; 71 virtual bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy() 84 virtual bool copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 95 bool canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const; 100 bool copyLinear(const std::shared_ptr<C2Buffer> &buffer); 118 std::shared_ptr<C2Buffer> asC2Buffer() override { return nullptr; } in asC2Buffer() 119 bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const override; 120 bool copy(const std::shared_ptr<C2Buffer> &buffer) override; 131 const std::shared_ptr<C2Buffer> &buffer = nullptr); 133 std::shared_ptr<C2Buffer> asC2Buffer() override; [all …]
|
D | CCodecBuffers.h | 114 std::shared_ptr<C2Buffer> *c2buffer, 122 const std::shared_ptr<C2Buffer> &c2buffer) = 0; 168 const std::shared_ptr<C2Buffer> &buffer, 187 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) = 0; 336 std::shared_ptr<C2Buffer> *c2buffer, 347 bool expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer); 374 std::weak_ptr<C2Buffer> compBuffer; 433 std::shared_ptr<C2Buffer> *c2buffer, 444 bool expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer); 492 std::weak_ptr<C2Buffer> compBuffer; [all …]
|
D | Codec2Buffer.cpp | 40 bool Codec2Buffer::canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const { in canCopyLinear() 65 bool Codec2Buffer::copyLinear(const std::shared_ptr<C2Buffer> &buffer) { in copyLinear() 93 bool LocalLinearBuffer::canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy() 97 bool LocalLinearBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 106 const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer) in DummyContainerBuffer() 112 std::shared_ptr<C2Buffer> DummyContainerBuffer::asC2Buffer() { in asC2Buffer() 116 bool DummyContainerBuffer::canCopy(const std::shared_ptr<C2Buffer> &) const { in canCopy() 120 bool DummyContainerBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy() 138 std::shared_ptr<C2Buffer> LinearBlockBuffer::asC2Buffer() { in asC2Buffer() 139 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer() [all …]
|
D | PipelineWatcher.h | 76 std::vector<std::shared_ptr<C2Buffer>> &&buffers, 87 std::shared_ptr<C2Buffer> onInputBufferReleased( 127 Frame(std::vector<std::shared_ptr<C2Buffer>> &&b, in Frame() 131 std::vector<std::shared_ptr<C2Buffer>> buffers;
|
D | CCodecBuffers.cpp | 108 std::shared_ptr<C2Buffer> c2buffer; in cloneAndReleaseBuffer() 230 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot() 236 std::shared_ptr<C2Buffer> *c2buffer, in releaseSlot() 254 std::shared_ptr<C2Buffer> result = mBuffers[index].compBuffer.lock(); in releaseSlot() 265 bool FlexBuffersImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() 267 std::shared_ptr<C2Buffer> compBuffer = in expireComponentBuffer() 319 mBuffers.push_back({ allocate(), std::weak_ptr<C2Buffer>(), false }); in initialize() 349 std::shared_ptr<C2Buffer> *c2buffer, in returnBuffer() 372 std::shared_ptr<C2Buffer> result = mBuffers[index].compBuffer.lock(); in returnBuffer() 383 bool BuffersArrayImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer() [all …]
|
D | PipelineWatcher.cpp | 50 std::vector<std::shared_ptr<C2Buffer>> &&buffers, in onWorkQueued() 65 std::shared_ptr<C2Buffer> PipelineWatcher::onInputBufferReleased( in onInputBufferReleased() 80 std::shared_ptr<C2Buffer> buffer(std::move(it->second.buffers[arrayIndex])); in onInputBufferReleased() 111 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
|
D | CCodecBufferChannel.h | 281 const std::shared_ptr<C2Buffer> &b, in Entry() 286 std::shared_ptr<C2Buffer> buffer; 300 const std::shared_ptr<C2Buffer> &buffer,
|
D | C2OMXNode.cpp | 47 class Buffer2D : public C2Buffer { 49 explicit Buffer2D(C2ConstGraphicBlock block) : C2Buffer({ block }) {} in Buffer2D() 405 std::shared_ptr<C2Buffer> c2Buffer( in emptyBuffer()
|
D | CCodecBufferChannel.cpp | 164 const std::shared_ptr<C2Buffer> &buffer, in emplace() 303 std::vector<std::shared_ptr<C2Buffer>> queuedBuffers; in queueInputBufferInternal() 308 std::shared_ptr<C2Buffer> c2buffer; in queueInputBufferInternal() 560 std::shared_ptr<C2Buffer> c2Buffer; in renderOutputBuffer() 1261 std::shared_ptr<C2Buffer> buffer = in onInputBufferDone() 1331 std::shared_ptr<C2Buffer> buffer; in handleWork()
|
/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/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/vndk/ |
D | C2Buffer.cpp | 105 friend class ::C2Buffer; 1162 class C2Buffer::Impl { 1164 Impl(C2Buffer *thiz, const std::vector<C2ConstLinearBlock> &blocks) in Impl() 1166 Impl(C2Buffer *thiz, const std::vector<C2ConstGraphicBlock> &blocks) in Impl() 1241 C2Buffer * const mThis; 1247 C2Buffer::C2Buffer(const std::vector<C2ConstLinearBlock> &blocks) in C2Buffer() function in C2Buffer 1250 C2Buffer::C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks) in C2Buffer() function in C2Buffer 1253 const C2BufferData C2Buffer::data() const { return mImpl->data(); } in data() 1255 c2_status_t C2Buffer::registerOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in registerOnDestroyNotify() 1259 c2_status_t C2Buffer::unregisterOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in unregisterOnDestroyNotify() [all …]
|
D | Android.bp | 24 "C2Buffer.cpp",
|
/frameworks/av/media/codec2/components/base/include/ |
D | SimpleC2Component.h | 142 std::shared_ptr<C2Buffer> createLinearBuffer( 145 std::shared_ptr<C2Buffer> createLinearBuffer( 148 std::shared_ptr<C2Buffer> createGraphicBuffer( 151 std::shared_ptr<C2Buffer> createGraphicBuffer(
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Component.cpp | 591 std::shared_ptr<C2Buffer> SimpleC2Component::createLinearBuffer( in createLinearBuffer() 596 std::shared_ptr<C2Buffer> SimpleC2Component::createLinearBuffer( in createLinearBuffer() 598 return C2Buffer::CreateLinearBuffer(block->share(offset, size, ::C2Fence())); in createLinearBuffer() 601 std::shared_ptr<C2Buffer> SimpleC2Component::createGraphicBuffer( in createGraphicBuffer() 606 std::shared_ptr<C2Buffer> SimpleC2Component::createGraphicBuffer( in createGraphicBuffer() 608 return C2Buffer::CreateGraphicBuffer(block->share(crop, ::C2Fence())); in createGraphicBuffer()
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | InputBufferManager.cpp | 128 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData() 189 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData() 226 void InputBufferManager::onBufferDestroyed(const C2Buffer* buf, void* arg) { in onBufferDestroyed() 230 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() 215 std::shared_ptr<C2Buffer> c2Buffer( in submitBuffer() 219 [bufferId, source = mSource](C2Buffer* ptr) { in submitBuffer()
|
D | types.cpp | 878 bool objcpy(Buffer* d, const C2Buffer& s, in objcpy() 921 for (const std::shared_ptr<C2Buffer>& sBuffer : s.buffers) { in objcpy() 1189 std::shared_ptr<C2Buffer>* buffer, in createLinearBuffer() 1207 *buffer = C2Buffer::CreateLinearBuffer(block->share( in createLinearBuffer() 1219 std::shared_ptr<C2Buffer>* buffer, in createGraphicBuffer() 1237 *buffer = C2Buffer::CreateGraphicBuffer(block->share( in createGraphicBuffer() 1250 bool objcpy(std::shared_ptr<C2Buffer>* d, const Buffer& s, in objcpy() 1343 std::shared_ptr<C2Buffer> dBuffer; in objcpy() 1754 for (const std::shared_ptr<C2Buffer>& buffer : frameData.buffers) { in forEachBlock()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 432 const std::shared_ptr<C2Buffer> &buffer) in process() 455 const std::shared_ptr<C2Buffer> mBuffer; in process() 459 std::shared_ptr<C2Buffer> buffer; in process() 520 … std::shared_ptr<C2Buffer> buffer = createLinearBuffer(block, 0, outargs.numOutBytes); in process() 598 std::shared_ptr<C2Buffer> buffer; in process()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 2035 class C2Buffer { 2050 typedef void (*OnDestroyNotify) (const C2Buffer *buf, void *arg); 2080 virtual ~C2Buffer() = default; 2137 static std::shared_ptr<C2Buffer> CreateLinearBuffer(const C2ConstLinearBlock &block); 2146 static std::shared_ptr<C2Buffer> CreateGraphicBuffer(const C2ConstGraphicBlock &block); 2150 explicit C2Buffer(const std::vector<C2ConstLinearBlock> &blocks); 2151 explicit C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks);
|
D | C2Work.h | 160 std::vector<std::shared_ptr<C2Buffer>> buffers;
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 364 std::shared_ptr<C2Buffer> buffer; in process() 371 const std::shared_ptr<C2Buffer> &buffer) in process() 394 const std::shared_ptr<C2Buffer> mBuffer; in process() 536 std::shared_ptr<C2Buffer> buffer = nullptr; in drainInternal()
|
/frameworks/av/media/codec2/components/cmds/ |
D | codec2.cpp | 67 class LinearBuffer : public C2Buffer { 70 : C2Buffer({ block->share(block->offset(), block->size(), ::C2Fence()) }) {} in LinearBuffer() 249 const std::shared_ptr<C2Buffer> &output = work->worklets.front()->output.buffers[0]; in play()
|
/frameworks/av/media/codec2/hidl/client/include/codec2/hidl/ |
D | client.h | 165 std::shared_ptr<C2Buffer> const& src, 166 std::shared_ptr<C2Buffer> const& dst);
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 582 class Buffer : public C2Buffer { 584 explicit Buffer(const std::vector<C2ConstLinearBlock> &blocks) : C2Buffer(blocks) {} in Buffer() 585 explicit Buffer(const std::vector<C2ConstGraphicBlock> &blocks) : C2Buffer(blocks) {} in Buffer() 659 void DestroyCallback(const C2Buffer * /* buf */, void *arg) { in DestroyCallback() argument 685 std::shared_ptr<C2Buffer> buffer(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F()
|