Home
last modified time | relevance | path

Searched refs:C2BufferData (Results 1 – 18 of 18) sorted by relevance

/frameworks/av/media/codec2/vndk/
DC2Config.cpp266 DEFINE_C2_ENUM_VALUE_CUSTOM_HELPER(C2BufferData::type_t, ({
267 { "invalid", C2BufferData::INVALID },
268 { "linear", C2BufferData::LINEAR },
269 { "linear-chunks", C2BufferData::LINEAR_CHUNKS },
270 { "graphic", C2BufferData::GRAPHIC },
271 { "graphic-chunks", C2BufferData::GRAPHIC_CHUNKS },
DC2Buffer.cpp106 class BufferDataBuddy : public C2BufferData {
107 using C2BufferData::C2BufferData;
1153 class C2BufferData::Impl {
1176 C2BufferData::C2BufferData(const std::vector<C2ConstLinearBlock> &blocks) : mImpl(new Impl(blocks))… in C2BufferData() function in C2BufferData
1177 C2BufferData::C2BufferData(const std::vector<C2ConstGraphicBlock> &blocks) : mImpl(new Impl(blocks)… in C2BufferData() function in C2BufferData
1179 C2BufferData::type_t C2BufferData::type() const { return mImpl->type(); } in type()
1181 const std::vector<C2ConstLinearBlock> C2BufferData::linearBlocks() const { in linearBlocks()
1185 const std::vector<C2ConstGraphicBlock> C2BufferData::graphicBlocks() const { in graphicBlocks()
1200 C2Param::Index index, const C2BufferData &data) in C2InfoBuffer()
1231 const C2BufferData &data() const { return mData; } in data()
[all …]
/frameworks/av/media/codec2/components/base/
DSimpleC2Interface.cpp102 C2BufferData::type_t rawBufferType = C2BufferData::LINEAR; in BaseParams()
106 C2BufferData::type_t codedBufferType = C2BufferData::LINEAR; in BaseParams()
116 rawBufferType = C2BufferData::GRAPHIC; in BaseParams()
122 rawBufferType = C2BufferData::LINEAR; in BaseParams()
DSimpleC2Component.cpp866 outputFormat.value == C2BufferData::GRAPHIC in processQueue()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp582 class BufferData : public C2BufferData {
584 explicit BufferData(const std::vector<C2ConstLinearBlock> &blocks) : C2BufferData(blocks) {} in BufferData()
585 explicit BufferData(const std::vector<C2ConstGraphicBlock> &blocks) : C2BufferData(blocks) {} in BufferData()
632 …std::shared_ptr<C2BufferData> data(new BufferData({ linearBlock1->share(0, kCapacity1, C2Fence()) … in TEST_F()
633 EXPECT_EQ(C2BufferData::LINEAR, data->type()); in TEST_F()
642 EXPECT_EQ(C2BufferData::LINEAR_CHUNKS, data->type()); in TEST_F()
649 EXPECT_EQ(C2BufferData::GRAPHIC, data->type()); in TEST_F()
658 EXPECT_EQ(C2BufferData::GRAPHIC_CHUNKS, data->type()); in TEST_F()
791 ASSERT_EQ(C2BufferData::LINEAR, spInfo->data().type()); in TEST_F()
804 ASSERT_EQ(C2BufferData::LINEAR, streamInfo.data().type()); in TEST_F()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaCodecLinearBlock.h47 if (mBuffer->data().type() != C2BufferData::LINEAR) { in toC2Buffer()
Dandroid_media_MediaCodec.cpp733 case C2BufferData::LINEAR: { in getOutputFrame()
747 case C2BufferData::GRAPHIC: { in getOutputFrame()
766 case C2BufferData::LINEAR_CHUNKS: [[fallthrough]]; in getOutputFrame()
767 case C2BufferData::GRAPHIC_CHUNKS: [[fallthrough]]; in getOutputFrame()
768 case C2BufferData::INVALID: [[fallthrough]]; in getOutputFrame()
3312 const C2BufferData data = buffer->data(); in android_media_MediaCodec_LinearBlock_native_map()
3313 if (data.type() != C2BufferData::LINEAR) { in android_media_MediaCodec_LinearBlock_native_map()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h2122 class C2BufferData {
2161 explicit C2BufferData(const std::vector<C2ConstLinearBlock> &blocks);
2162 explicit C2BufferData(const std::vector<C2ConstGraphicBlock> &blocks);
2179 const C2BufferData data() const;
2317 const C2BufferData data() const { return mData; } in data()
2367 C2BufferData mData;
2368 explicit C2InfoBuffer(C2Param::Index index, const C2BufferData &data);
DC2Config.h1044 typedef C2StreamParam<C2Setting, C2SimpleValueStruct<C2EasyEnum<C2BufferData::type_t>>,
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp211 if (src && src->data().type() != C2BufferData::LINEAR) { in convert()
1201 case C2BufferData::LINEAR: { in realloc()
1217 case C2BufferData::GRAPHIC: { in realloc()
1232 case C2BufferData::INVALID: [[fallthrough]]; in realloc()
1233 case C2BufferData::LINEAR_CHUNKS: [[fallthrough]]; in realloc()
1234 case C2BufferData::GRAPHIC_CHUNKS: [[fallthrough]]; in realloc()
1327 if (buffer->data().type() != C2BufferData::LINEAR) { in wrap()
DCodec2Buffer.cpp60 if (buffer->data().type() != C2BufferData::LINEAR) { in canCopyLinear()
181 || buffer->data().type() != C2BufferData::LINEAR in Allocate()
790 || buffer->data().type() != C2BufferData::GRAPHIC in Allocate()
888 if (buffer->data().type() != C2BufferData::GRAPHIC) { in canCopy()
DCCodecBufferChannel.cpp1099 bool graphic = (iStreamFormat.value == C2BufferData::GRAPHIC); in start()
1279 bool graphic = (oStreamFormat.value == C2BufferData::GRAPHIC); in start()
1430 if (oStreamFormat.value == C2BufferData::LINEAR) { in start()
1545 if (oStreamFormat.value == C2BufferData::LINEAR && in requestInitialInputBuffers()
DCCodec.cpp2732 param.reset(new C2StreamBufferTypeSetting::input(0u, C2BufferData::INVALID)); in getInputStreamFormat()
2799 if (streamFormat.value == C2BufferData::GRAPHIC in GetCommonAllocatorIds()
2800 || streamFormat.value == C2BufferData::GRAPHIC_CHUNKS) { in GetCommonAllocatorIds()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp279 case C2BufferData::LINEAR: { in attachBuffer()
293 case C2BufferData::GRAPHIC: { in attachBuffer()
310 case C2BufferData::LINEAR_CHUNKS: [[fallthrough]]; in attachBuffer()
311 case C2BufferData::GRAPHIC_CHUNKS: [[fallthrough]]; in attachBuffer()
DMediaCodec.cpp5198 && c2Buffer && c2Buffer->data().type() == C2BufferData::LINEAR) { in onQueueInputBuffer()
/frameworks/av/media/codec2/sfplugin/tests/
DFrameReassembler_test.cpp106 ASSERT_EQ(C2BufferData::LINEAR, buffer->data().type()); in testPushSameSize()
/frameworks/av/media/codec2/hidl/plugin/samples/
DSampleFilterPlugin.cpp175 0u, C2BufferData::GRAPHIC)) in Helper()
190 0u, C2BufferData::GRAPHIC)) in Helper()
/frameworks/av/media/codec2/hidl/1.0/utils/
Dtypes.cpp844 bool objcpy(Buffer* d, const C2BufferData& s, in objcpy()