Home
last modified time | relevance | path

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

123

/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.h82 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 …]
DCCodecBuffers.h122 std::shared_ptr<C2Buffer> *c2buffer,
130 const std::shared_ptr<C2Buffer> &c2buffer) = 0;
181 const std::shared_ptr<C2Buffer> &buffer,
200 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) = 0;
318 const std::shared_ptr<C2Buffer>& buffer,
370 std::shared_ptr<C2Buffer>* c2Buffer,
393 bool convert(const std::shared_ptr<C2Buffer> &src, sp<Codec2Buffer> *dst);
422 const std::shared_ptr<C2Buffer> &b, in StashEntry()
434 std::shared_ptr<C2Buffer> buffer;
579 std::shared_ptr<C2Buffer> *c2buffer,
[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.cpp131 std::shared_ptr<C2Buffer> c2buffer; in cloneAndReleaseBuffer()
210 const std::shared_ptr<C2Buffer> &src, sp<Codec2Buffer> *dst) { in convert()
295 const std::shared_ptr<C2Buffer>& buffer, in pushToStash()
331 std::shared_ptr<C2Buffer>* c2Buffer, in popFromStashAndRegister()
494 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot()
500 std::shared_ptr<C2Buffer> *c2buffer, in releaseSlot()
518 std::shared_ptr<C2Buffer> result = mBuffers[index].compBuffer.lock(); in releaseSlot()
530 bool FlexBuffersImpl::expireComponentBuffer(const std::shared_ptr<C2Buffer> &c2buffer) { in expireComponentBuffer()
532 std::shared_ptr<C2Buffer> compBuffer = in expireComponentBuffer()
585 mBuffers.push_back({ allocate(), std::weak_ptr<C2Buffer>(), false }); in initialize()
[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()
112 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
DCodec2Buffer.cpp52 bool Codec2Buffer::canCopyLinear(const std::shared_ptr<C2Buffer> &buffer) const { in canCopyLinear()
77 bool Codec2Buffer::copyLinear(const std::shared_ptr<C2Buffer> &buffer) { in copyLinear()
105 bool LocalLinearBuffer::canCopy(const std::shared_ptr<C2Buffer> &buffer) const { in canCopy()
109 bool LocalLinearBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy()
118 const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer) in DummyContainerBuffer()
124 std::shared_ptr<C2Buffer> DummyContainerBuffer::asC2Buffer() { in asC2Buffer()
132 bool DummyContainerBuffer::canCopy(const std::shared_ptr<C2Buffer> &) const { in canCopy()
136 bool DummyContainerBuffer::copy(const std::shared_ptr<C2Buffer> &buffer) { in copy()
154 std::shared_ptr<C2Buffer> LinearBlockBuffer::asC2Buffer() { in asC2Buffer()
155 return C2Buffer::CreateLinearBuffer(mBlock->share(offset(), size(), C2Fence())); in asC2Buffer()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaCodecLinearBlock.h30 std::shared_ptr<C2Buffer> mBuffer;
45 std::shared_ptr<C2Buffer> toC2Buffer(size_t offset, size_t size) const { in toC2Buffer()
55 std::shared_ptr<C2Buffer> buffer = in toC2Buffer()
56 C2Buffer::CreateLinearBuffer(block.subBlock(offset, size)); in toC2Buffer()
64 return C2Buffer::CreateLinearBuffer(mBlock->share(offset, size, C2Fence{})); in toC2Buffer()
Dandroid_media_MediaCodec.h33 class C2Buffer; variable
110 size_t index, const std::shared_ptr<C2Buffer> &buffer,
/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/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;
1218 class C2Buffer::Impl {
1220 Impl(C2Buffer *thiz, const std::vector<C2ConstLinearBlock> &blocks) in Impl()
1222 Impl(C2Buffer *thiz, const std::vector<C2ConstGraphicBlock> &blocks) in Impl()
1297 C2Buffer * const mThis;
1303 C2Buffer::C2Buffer(const std::vector<C2ConstLinearBlock> &blocks) in C2Buffer() function in C2Buffer
1306 C2Buffer::C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks) in C2Buffer() function in C2Buffer
1309 const C2BufferData C2Buffer::data() const { return mImpl->data(); } in data()
1311 c2_status_t C2Buffer::registerOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in registerOnDestroyNotify()
1315 c2_status_t C2Buffer::unregisterOnDestroyNotify(OnDestroyNotify onDestroyNotify, void *arg) { in unregisterOnDestroyNotify()
[all …]
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp58 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 &param) { 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/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()
217 std::shared_ptr<C2Buffer> c2Buffer( in submitBuffer()
221 [bufferId, source = mSource](C2Buffer* ptr) { in submitBuffer()
Dtypes.cpp876 bool objcpy(Buffer* d, const C2Buffer& s, in objcpy()
918 for (const std::shared_ptr<C2Buffer>& sBuffer : s.buffers) { in objcpy()
1192 std::shared_ptr<C2Buffer>* buffer, in createLinearBuffer()
1210 *buffer = C2Buffer::CreateLinearBuffer(block->share( in createLinearBuffer()
1222 std::shared_ptr<C2Buffer>* buffer, in createGraphicBuffer()
1240 *buffer = C2Buffer::CreateGraphicBuffer(block->share( in createGraphicBuffer()
1253 bool objcpy(std::shared_ptr<C2Buffer>* d, const Buffer& s, in objcpy()
1408 std::shared_ptr<C2Buffer> dBuffer; in objcpy()
1839 for (const std::shared_ptr<C2Buffer>& buffer : frameData.buffers) { in forEachBlock()
/frameworks/av/media/codec2/fuzzer/
DC2Fuzzer.cpp26 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/components/aac/
DC2SoftAacEnc.cpp455 const std::shared_ptr<C2Buffer> &buffer) in process()
478 const std::shared_ptr<C2Buffer> mBuffer; in process()
482 std::shared_ptr<C2Buffer> buffer; in process()
543 … std::shared_ptr<C2Buffer> buffer = createLinearBuffer(block, 0, outargs.numOutBytes); in process()
621 std::shared_ptr<C2Buffer> buffer; in process()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCodecBase.h37 class C2Buffer; variable
365 const std::shared_ptr<C2Buffer> &c2Buffer, in attachBuffer()
DMediaCodec.h33 class C2Buffer; variable
192 const std::shared_ptr<C2Buffer> &buffer,
213 std::shared_ptr<C2Buffer> decrypt(
214 const std::shared_ptr<C2Buffer> &buffer,
/frameworks/av/media/codec2/core/include/
DC2Work.h185 std::vector<std::shared_ptr<C2Buffer>> buffers;
DC2Buffer.h2172 class C2Buffer {
2187 typedef void (*OnDestroyNotify) (const C2Buffer *buf, void *arg);
2217 virtual ~C2Buffer() = default;
2274 static std::shared_ptr<C2Buffer> CreateLinearBuffer(const C2ConstLinearBlock &block);
2283 static std::shared_ptr<C2Buffer> CreateGraphicBuffer(const C2ConstGraphicBlock &block);
2287 explicit C2Buffer(const std::vector<C2ConstLinearBlock> &blocks);
2288 explicit C2Buffer(const std::vector<C2ConstGraphicBlock> &blocks);
/frameworks/av/media/codec2/components/base/include/
DSimpleC2Component.h169 std::shared_ptr<C2Buffer> createLinearBuffer(
172 std::shared_ptr<C2Buffer> createGraphicBuffer(
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp390 std::shared_ptr<C2Buffer> buffer; in process()
397 const std::shared_ptr<C2Buffer> &buffer) in process()
420 const std::shared_ptr<C2Buffer> mBuffer; in process()
562 std::shared_ptr<C2Buffer> buffer = nullptr; in drainInternal()
/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