Home
last modified time | relevance | path

Searched refs:c2Buffer (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp58 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() local
62 ASSERT_EQ(OK, buffers->registerBuffer(c2Buffer, &index, &clientBuffer)); in TEST()
76 std::shared_ptr<C2Buffer> c2Buffer; in TEST() local
77 ASSERT_TRUE(buffers->releaseBuffer(clientBuffers[index], &c2Buffer)) in TEST()
81 ASSERT_TRUE(c2Buffer->data().linearBlocks().empty()); in TEST()
82 ASSERT_EQ(1u, c2Buffer->data().graphicBlocks().size()); in TEST()
83 C2ConstGraphicBlock block = c2Buffer->data().graphicBlocks().front(); in TEST()
241 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() local
245 ASSERT_EQ(OK, buffers->registerBuffer(c2Buffer, &index, &clientBuffer)); in TEST()
381 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateGraphicBuffer(block->share( in TEST() local
[all …]
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp514 std::shared_ptr<C2Buffer>* c2Buffer, in popFromStashAndRegister() argument
524 *c2Buffer = entry.buffer; in popFromStashAndRegister()
551 status_t err = registerBuffer(*c2Buffer, index, outBuffer); in popFromStashAndRegister()
911 sp<Codec2Buffer> c2Buffer; in requestNewBuffer() local
912 status_t err = mImpl.grabBuffer(index, &c2Buffer); in requestNewBuffer()
914 c2Buffer->setFormat(mFormat); in requestNewBuffer()
915 handleImageData(c2Buffer); in requestNewBuffer()
916 *buffer = c2Buffer; in requestNewBuffer()
1322 sp<Codec2Buffer> c2Buffer; in registerBuffer() local
1325 &c2Buffer, in registerBuffer()
[all …]
DCCodecBufferChannel.cpp464 const std::shared_ptr<C2Buffer> &c2Buffer, in attachBuffer() argument
466 if (!buffer->copy(c2Buffer)) { in attachBuffer()
614 std::shared_ptr<C2Buffer> c2Buffer{C2Buffer::CreateLinearBuffer( in attachEncryptedBuffers() local
616 if (!buffer->copy(c2Buffer)) { in attachEncryptedBuffers()
752 std::shared_ptr<C2Buffer> c2Buffer{C2Buffer::CreateLinearBuffer( in attachEncryptedBuffer() local
754 if (!buffer->copy(c2Buffer)) { in attachEncryptedBuffer()
1100 std::shared_ptr<C2Buffer> c2Buffer; in renderOutputBuffer() local
1105 released = output->buffers->releaseBuffer(buffer, &c2Buffer); in renderOutputBuffer()
1113 if (!c2Buffer) { in renderOutputBuffer()
1126 const std::vector<std::shared_ptr<const C2Info>> infoParams = c2Buffer->info(); in renderOutputBuffer()
[all …]
DC2NodeImpl.cpp358 std::shared_ptr<C2Buffer> c2Buffer( in submitBuffer() local
361 work->input.buffers.push_back(c2Buffer); in submitBuffer()
369 c2Buffer->setInfo(staticInfo); in submitBuffer()
372 c2Buffer->setInfo(dynamicInfo); in submitBuffer()
DCCodecBufferChannel.h81 const std::shared_ptr<C2Buffer> &c2Buffer,
DCCodecBuffers.h383 std::shared_ptr<C2Buffer>* c2Buffer,
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp287 const std::shared_ptr<C2Buffer> &c2Buffer, in attachBuffer() argument
289 switch (c2Buffer->data().type()) { in attachBuffer()
291 if (c2Buffer->data().linearBlocks().size() != 1u) { in attachBuffer()
294 C2ConstLinearBlock block{c2Buffer->data().linearBlocks().front()}; in attachBuffer()
309 if (c2Buffer->data().graphicBlocks().size() != 1u) { in attachBuffer()
312 C2ConstGraphicBlock block{c2Buffer->data().graphicBlocks().front()}; in attachBuffer()
DMediaCodec.cpp5953 std::shared_ptr<C2Buffer> c2Buffer; in queueCSDInputBuffer() local
5991 c2Buffer = C2Buffer::CreateLinearBuffer(block->share(0, csd->size(), C2Fence{})); in queueCSDInputBuffer()
6023 if (c2Buffer) { in queueCSDInputBuffer()
6025 new WrapperObject<std::shared_ptr<C2Buffer>>{c2Buffer}}; in queueCSDInputBuffer()
6149 std::shared_ptr<C2Buffer> c2Buffer; in onQueueInputBuffer() local
6154 c2Buffer = static_cast<WrapperObject<std::shared_ptr<C2Buffer>> *>(obj.get())->value; in onQueueInputBuffer()
6183 } else if (!c2Buffer) { in onQueueInputBuffer()
6310 if (c2Buffer || memory) { in onQueueInputBuffer()
6316 if (c2Buffer) { in onQueueInputBuffer()
6317 err = mBufferChannel->attachBuffer(c2Buffer, buffer); in onQueueInputBuffer()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DCodecBase.h427 const std::shared_ptr<C2Buffer> &c2Buffer, in attachBuffer() argument
429 (void)c2Buffer; in attachBuffer()
/frameworks/av/media/libstagefright/include/
DACodecBufferChannel.h87 const std::shared_ptr<C2Buffer> &c2Buffer,
/frameworks/av/media/codec2/hal/common/
DMultiAccessUnitHelper.cpp784 std::shared_ptr<C2Buffer> c2Buffer = C2Buffer::CreateLinearBuffer( in finalizeWork() local
786 frame.mLargeWork->worklets.front()->output.buffers.push_back(std::move(c2Buffer)); in finalizeWork()
789 std::shared_ptr<C2Buffer>& c2Buffer = in finalizeWork() local
791 if (c2Buffer != nullptr) { in finalizeWork()
803 c2Buffer->setInfo(std::const_pointer_cast<C2Info>(info)); in finalizeWork()
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
DInputSurfaceConnection.cpp217 std::shared_ptr<C2Buffer> c2Buffer( in submitBuffer() local
228 work->input.buffers.push_back(c2Buffer); in submitBuffer()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacEnc.cpp420 std::shared_ptr<C2Buffer> c2Buffer = in onEncodedFlacAvailable() local
422 mOutputBuffers.push_back({c2Buffer, mAnchorTimeStamp + outTimeStamp, current_frame}); in onEncodedFlacAvailable()
/frameworks/av/media/libstagefright/tests/mediacodec/
DMediaCodecTest.cpp53 (const std::shared_ptr<C2Buffer> &c2Buffer, const sp<MediaCodecBuffer> &buffer),
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp829 std::shared_ptr<C2Buffer> c2Buffer = buffer->asC2Buffer(); in getOutputFrame() local
830 if (c2Buffer) { in getOutputFrame()
831 switch (c2Buffer->data().type()) { in getOutputFrame()
835 context->mBuffer = c2Buffer; in getOutputFrame()
848 const C2Handle *c2Handle = c2Buffer->data().graphicBlocks().front().handle(); in getOutputFrame()