Home
last modified time | relevance | path

Searched defs:memory (Results 1 – 25 of 67) sorted by relevance

123

/foundation/multimedia/player_framework/services/utils/
Davsharedmemorypool.cpp56 auto memory = AllocMemory(option_.memSize); in Init() local
68 AVSharedMemoryBase *memory = new (std::nothrow) AVSharedMemoryBase(size, option_.flags, name_); in AllocMemory() local
80 void AVSharedMemoryPool::ReleaseMemory(AVSharedMemory *memory) in ReleaseMemory()
183 AVSharedMemory *memory = nullptr; in AcquireMemory() local
199 …t = std::shared_ptr<AVSharedMemory>(memory, [weakPool = weak_from_this()](AVSharedMemory *memory) { in AcquireMemory()
228 for (auto &memory : idleList_) { in Reset() local
Davdatasrcmemory.cpp35 std::shared_ptr<AVDataSrcMemory> memory = std::make_shared<AVDataSrcMemory>(size, flags, name); in CreateFromLocal() local
45 …std::shared_ptr<AVDataSrcMemory> memory = std::make_shared<AVSharedMemoryBaseImpl>(fd, size, flags… in CreateFromRemote() local
Davsharedmemorybase.cpp39 …std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBase>(size, flags, nam… in CreateFromLocal() local
49 …std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBaseImpl>(fd, size, fl… in CreateFromRemote() local
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/
Dav_sync_utils.cpp61 void CloseAVTransSharedMemory(const AVTransSharedMemory &memory) noexcept in CloseAVTransSharedMemory()
74 int32_t WriteClockUnitToMemory(const AVTransSharedMemory &memory, AVSyncClockUnit &clockUnit) in WriteClockUnitToMemory()
115 int32_t ReadClockUnitFromMemory(const AVTransSharedMemory &memory, AVSyncClockUnit &clockUnit) in ReadClockUnitFromMemory()
161 int32_t WriteFrameInfoToMemory(const AVTransSharedMemory &memory, uint32_t frameNum, int64_t timest… in WriteFrameInfoToMemory()
192 int32_t ReadFrameInfoFromMemory(const AVTransSharedMemory &memory, uint32_t &frameNum, int64_t &tim… in ReadFrameInfoFromMemory()
223 int32_t ResetSharedMemory(const AVTransSharedMemory &memory) in ResetSharedMemory()
249 bool IsInValidSharedMemory(const AVTransSharedMemory &memory) in IsInValidSharedMemory()
260 std::string MarshalSharedMemory(const AVTransSharedMemory &memory) in MarshalSharedMemory()
/foundation/multimedia/player_framework/services/services/common/
Davsharedmemory_ipc.cpp29 int32_t WriteAVSharedMemoryToParcel(const std::shared_ptr<AVSharedMemory> &memory, MessageParcel &p… in WriteAVSharedMemoryToParcel()
52 …std::shared_ptr<AVSharedMemory> memory = AVSharedMemoryBase::CreateFromRemote(fd, size, flags, nam… in ReadAVSharedMemoryFromParcel() local
67 … std::shared_ptr<AVSharedMemory> memory = AVDataSrcMemory::CreateFromRemote(fd, size, flags, name); in ReadAVDataSrcMemoryFromParcel() local
/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/
Dmemory_manager_test.cpp121 void* memory = nullptr; variable
133 void* memory = malloc(10); variable
173 Memory memory; variable
187 Memory memory; variable
217 Memory memory; variable
/foundation/multimedia/av_codec/services/services/common/
Davsharedmemory_ipc.cpp28 int32_t WriteAVSharedMemoryToParcel(const std::shared_ptr<AVSharedMemory> &memory, MessageParcel &p… in WriteAVSharedMemoryToParcel()
54 …std::shared_ptr<AVSharedMemory> memory = AVSharedMemoryBase::CreateFromRemote(fd, size, flags, nam… in ReadAVSharedMemoryFromParcel() local
/foundation/ai/neural_network_runtime/frameworks/native/
Dmemory_manager.cpp46 Memory memory {fd, addr, length}; in MapMemory() local
64 auto& memory = m_memorys[buffer]; in UnMapMemory() local
Dexecutor.cpp240 …cutor::SetInputFromMemory(uint32_t index, const OH_NN_Tensor& nnTensor, const OH_NN_Memory& memory) in SetInputFromMemory()
332 OH_NN_ReturnCode Executor::SetOutputFromMemory(uint32_t index, const OH_NN_Memory& memory) in SetOutputFromMemory()
394 OH_NN_ReturnCode Executor::CreateInputMemory(uint32_t index, size_t length, OH_NN_Memory** memory) in CreateInputMemory()
423 OH_NN_ReturnCode Executor::DestroyInputMemory(uint32_t index, OH_NN_Memory** memory) in DestroyInputMemory()
457 OH_NN_ReturnCode Executor::CreateOutputMemory(uint32_t index, size_t length, OH_NN_Memory** memory) in CreateOutputMemory()
486 OH_NN_ReturnCode Executor::DestroyOutputMemory(uint32_t index, OH_NN_Memory** memory) in DestroyOutputMemory()
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/executor/
Dexecutor_test.cpp269 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
346 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
368 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
396 OH_NN_Memory memory = {data, 1 * sizeof(float)}; variable
417 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
438 OH_NN_Memory memory = {data, 1 * sizeof(float)}; variable
536 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
607 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
628 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
646 OH_NN_Memory memory = {data, 0}; variable
[all …]
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/executor/
Dexecutor_test.cpp269 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
346 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
368 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
396 OH_NN_Memory memory = {data, 1 * sizeof(float)}; variable
417 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
438 OH_NN_Memory memory = {data, 1 * sizeof(float)}; variable
536 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
607 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
628 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
646 OH_NN_Memory memory = {data, 0}; variable
[all …]
/foundation/multimedia/histreamer/tests/ut/
DTestPluginCommon.cpp32 std::shared_ptr<Memory> memory = audioBuffer->GetMemory(0); variable
/foundation/multimedia/histreamer/engine/plugin/common/
Dplugin_buffer.cpp203 … std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in CreateDefaultBuffer() local
210 …auto memory = std::shared_ptr<Memory>(new Memory(capacity, std::shared_ptr<uint8_t>(data, [](void*… in WrapMemory() local
218 auto memory = std::shared_ptr<Memory>(new Memory(capacity, data)); in WrapMemoryPtr() local
232 auto memory = std::shared_ptr<SurfaceMemory>(new SurfaceMemory(surfaceBuffer, bufferSize)); in WrapSurfaceMemory() local
241 std::shared_ptr<Memory> memory = nullptr; in AllocMemory() local
/foundation/multimedia/av_codec/services/engine/source/hst_releated/
Dplugin_buffer.cpp136 … std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in CreateDefaultBuffer() local
143 auto memory = std::shared_ptr<Memory>( in WrapMemory() local
152 auto memory = std::shared_ptr<Memory>(new Memory(capacity, dataptr)); in WrapMemoryPtr() local
161 std::shared_ptr<Memory> memory = nullptr; in AllocMemory() local
/foundation/multimedia/player_framework/services/services/media_data_source/ipc/
Dmedia_data_source_stub.cpp34 int32_t ReadFromParcel(MessageParcel &parcel, std::shared_ptr<AVSharedMemory> &memory) in ReadFromParcel()
80 std::shared_ptr<AVSharedMemory> memory = nullptr; in OnRemoteRequest() local
/foundation/multimedia/av_codec/services/services/codec/ipc/
Dcodec_listener_stub.cpp33 …void ReadFromParcel(uint32_t index, MessageParcel &parcel, std::shared_ptr<AVSharedMemory> &memory) in ReadFromParcel()
134 std::shared_ptr<AVSharedMemory> memory = nullptr; in OnRemoteRequest() local
143 std::shared_ptr<AVSharedMemory> memory = nullptr; in OnRemoteRequest() local
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/
Daudio_ffmpeg_encoder_plugin.cpp58 auto memory = inputBuffer->GetBuffer(); in PcmFillFrame() local
94 auto memory = inputBuffer->GetBuffer(); in SendBuffer() local
167 auto memory = outBuffer->GetBuffer(); in ReceivePacketSucc() local
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_control_center/inner_kits/src/
Dav_trans_control_center_callback.cpp35 int32_t AVTransControlCenterCallback::SetSharedMemory(const AVTransSharedMemory &memory) in SetSharedMemory()
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/common/
Dgst_shmemory_wrap_allocator.cpp40 GstShMemoryWrapMemory *memory = in gst_shmemory_wrap() local
67 static void gst_shmemory_wrap_allocator_free(GstAllocator *allocator, GstMemory *memory) in gst_shmemory_wrap_allocator_free()
Dgst_shmem_allocator.cpp63 …GstShMemMemory *memory = reinterpret_cast<GstShMemMemory *>(g_slice_alloc0(sizeof(GstShMemMemory))… in gst_shmem_allocator_alloc() local
76 void gst_shmem_allocator_free(GstAllocator *allocator, GstMemory *memory) in gst_shmem_allocator_free()
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/
Dneural_network_runtime_test.cpp1703 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1725 OH_NN_Memory** memory = nullptr; variable
1744 OH_NN_Memory* memory = nullptr; variable
1766 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1788 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1807 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1827 OH_NN_Memory** memory = nullptr; variable
1846 OH_NN_Memory* memory = nullptr; variable
1868 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1889 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
[all …]
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/
Dneural_network_runtime_test.cpp1703 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1725 OH_NN_Memory** memory = nullptr; variable
1744 OH_NN_Memory* memory = nullptr; variable
1766 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1788 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1807 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1827 OH_NN_Memory** memory = nullptr; variable
1846 OH_NN_Memory* memory = nullptr; variable
1868 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
1889 OH_NN_Memory memory = {data, 9 * sizeof(float)}; variable
[all …]
/foundation/multimedia/player_framework/services/engine/gstreamer/avcodec/sink_wrapper/
Dsink_bytebuffer_impl.cpp84 GstMemory *memory = gst_buffer_peek_memory(bufferList_[index]->gstBuffer_, 0); in GetOutputBuffer() local
157 GstMemory *memory = gst_buffer_peek_memory(buffer, 0); in HandleNewSampleCb() local
/foundation/multimedia/av_codec/services/utils/
Davsharedmemorybase.cpp41 …std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBase>(size, flags, nam… in CreateFromLocal() local
54 …std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBaseImpl>(fd, size, fl… in CreateFromRemote() local
/foundation/multimedia/player_framework/services/engine/gstreamer/avcodec/src_wrapper/
Dsrc_bytebuffer_impl.cpp107 GstMemory *memory = gst_buffer_peek_memory(bufferList_[index]->gstBuffer_, 0); in GetInputBuffer() local
224 GstMemory *memory = gst_buffer_peek_memory(buffer, 0); in HandleBufferAvailable() local

123