Home
last modified time | relevance | path

Searched refs:C2Buffer (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.h81 bool canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const;
86 bool copyLinear(const std::shared_ptr<C2Buffer> &buffer);
104 std::shared_ptr<C2Buffer> asC2Buffer() override { return nullptr; } in asC2Buffer()
105 bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const override;
106 bool copy(const std::shared_ptr<C2Buffer> &buffer) override;
117 const std::shared_ptr<C2Buffer> &buffer = nullptr);
119 std::shared_ptr<C2Buffer> asC2Buffer() override;
121 bool canCopy(const std::shared_ptr<C2Buffer> &buffer) const override;
122 bool copy(const std::shared_ptr<C2Buffer> &buffer) override;
125 std::shared_ptr<C2Buffer> mBufferRef;
[all …]
DCCodecBuffers.h117 std::shared_ptr<C2Buffer> *c2buffer,
125 const std::shared_ptr<C2Buffer> &c2buffer) = 0;
176 const std::shared_ptr<C2Buffer> &buffer,
195 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) = 0;
315 const std::shared_ptr<C2Buffer>& buffer,
367 std::shared_ptr<C2Buffer>* c2Buffer,
408 const std::shared_ptr<C2Buffer> &b, in StashEntry()
420 std::shared_ptr<C2Buffer> buffer;
565 std::shared_ptr<C2Buffer> *c2buffer,
576 bool expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer);
[all …]
DCodec2Buffer.cpp44 bool Codec2Buffer::canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const { in canCopyLinear()
69 bool Codec2Buffer::copyLinear(const std::shared_ptr<C2Buffer> &buffer) { in copyLinear()
97 bool LocalLinearBuffer::canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy()
101 bool LocalLinearBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy()
110 const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer) in DummyContainerBuffer()
116 std::shared_ptr<C2Buffer> DummyContainerBuffer::asC2Buffer() { in asC2Buffer()
124 bool DummyContainerBuffer::canCopy(const std::shared_ptr<C2Buffer> &) const { in canCopy()
128 bool DummyContainerBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy()
146 std::shared_ptr<C2Buffer> LinearBlockBuffer::asC2Buffer() { in asC2Buffer()
147 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer()
[all …]
DPipelineWatcher.h76 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;
DCCodecBuffers.cpp111 std::shared_ptr<C2Buffer> c2buffer; in cloneAndReleaseBuffer()
224 const std::shared_ptr<C2Buffer>& buffer, in pushToStash()
260 std::shared_ptr<C2Buffer>* c2Buffer, in popFromStashAndRegister()
434 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot()
440 std::shared_ptr<C2Buffer> *c2buffer, in releaseSlot()
458 std::shared_ptr<C2Buffer> result = mBuffers[index].compBuffer.lock(); in releaseSlot()
470 bool FlexBuffersImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer()
472 std::shared_ptr<C2Buffer> compBuffer = in expireComponentBuffer()
524 mBuffers.push_back({ allocate(), std::weak_ptr<C2Buffer>(), false }); in initialize()
554 std::shared_ptr<C2Buffer> *c2buffer, in returnBuffer()
[all …]
DPipelineWatcher.cpp50 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()
DC2OMXNode.cpp47 class Buffer2D : public C2Buffer {
49 explicit Buffer2D(C2ConstGraphicBlock block) : C2Buffer({ block }) {} in Buffer2D()
405 std::shared_ptr<C2Buffer> c2Buffer( in emptyBuffer()
/frameworks/av/media/libmedia/include/media/
DMediaCodecBuffer.h25 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/base/media/jni/
Dandroid_media_MediaCodecLinearBlock.h28 std::shared_ptr<C2Buffer> mBuffer;
43 std::shared_ptr<C2Buffer> toC2Buffer(size_t offset, size_t size) { in toC2Buffer()
52 return C2Buffer::CreateLinearBuffer(block.subBlock(offset, size)); in toC2Buffer()
55 return C2Buffer::CreateLinearBuffer(mBlock->share(offset, size, C2Fence{})); in toC2Buffer()
Dandroid_media_MediaCodec.h33 class C2Buffer; variable
108 size_t index, const std::shared_ptr<C2Buffer> &buffer,
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkC2Common.h39 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/
DInputBufferManager.h177 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/
DC2Buffer.cpp108 friend class ::C2Buffer;
1203 class C2Buffer::Impl {
1205 Impl(C2Buffer *thiz, const std::vector<C2ConstLinearBlock> &blocks) in Impl()
1207 Impl(C2Buffer *thiz, const std::vector<C2ConstGraphicBlock> &blocks) in Impl()
1282 C2Buffer * const mThis;
1288 C2Buffer::C2Buffer(const std::vector<C2ConstLinearBlock> &blocks) in C2Buffer() function in C2Buffer
1291 C2Buffer::C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks) in C2Buffer() function in C2Buffer
1294 const C2BufferData C2Buffer::data() const { return mImpl->data(); } in data()
1296 c2_status_t C2Buffer::registerOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in registerOnDestroyNotify()
1300 c2_status_t C2Buffer::unregisterOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in unregisterOnDestroyNotify()
[all …]
DAndroid.bp27 "C2Buffer.cpp",
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp48 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST()
66 std::shared_ptr<C2Buffer> c2Buffer; in TEST()
/frameworks/av/media/codec2/components/base/include/
DSimpleC2Component.h142 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/
DSimpleC2Component.cpp591 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/
DInputBufferManager.cpp129 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()
DInputSurfaceConnection.cpp61 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()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCodecBase.h37 class C2Buffer; variable
308 const std::shared_ptr<C2Buffer> &c2Buffer, in attachBuffer()
DMediaCodec.h32 class C2Buffer; variable
169 const std::shared_ptr<C2Buffer> &buffer,
190 std::shared_ptr<C2Buffer> decrypt(
191 const std::shared_ptr<C2Buffer> &buffer,
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp454 const std::shared_ptr<C2Buffer> &buffer) in process()
477 const std::shared_ptr<C2Buffer> mBuffer; in process()
481 std::shared_ptr<C2Buffer> buffer; in process()
542 … std::shared_ptr<C2Buffer> buffer = createLinearBuffer(block, 0, outargs.numOutBytes); in process()
620 std::shared_ptr<C2Buffer> buffer; in process()
/frameworks/av/media/codec2/core/include/
DC2Work.h160 std::vector<std::shared_ptr<C2Buffer>> buffers;
DC2Buffer.h2035 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);
/frameworks/av/media/codec2/components/cmds/
Dcodec2.cpp67 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()

123