Home
last modified time | relevance | path

Searched refs:GetMemory (Results 1 – 25 of 75) sorted by relevance

123

/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dstream_demuxer.cpp150 bufferPtr->GetMemory()->Write(tempBuffer->GetMemory()->GetReadOnlyData(), in PullDataWithCache()
162 mergedBuffer->GetMemory()->Write(tempBuffer->GetMemory()->GetReadOnlyData(), in PullDataWithCache()
180 auto bufferMemory = bufferPtr->GetMemory(); in ProcInnerDash()
186 auto mergeMemory = mergedBuffer->GetMemory(); in ProcInnerDash()
220 if (bufferPtr->GetMemory() == nullptr) { in PullDataWithoutCache()
225 buffer->GetMemory()->Write(bufferPtr->GetMemory()->GetReadOnlyData(), in PullDataWithoutCache()
226 bufferPtr->GetMemory()->GetSize(), 0); in PullDataWithoutCache()
288 if (data->GetMemory() != nullptr) { in PullData()
289 auto realSize = data->GetMemory()->GetCapacity(); in PullData()
303 position_ += data->GetMemory()->GetSize(); in PullData()
[all …]
H A Dpts_and_index_conversion.cpp132 auto memory = buffer->GetMemory(); in ReadLargeSize()
144 auto memory = buffer->GetMemory(); in ReadBoxHeader()
257 auto memory = buffer->GetMemory(); in ParseCtts()
294 auto memory = buffer->GetMemory(); in ParseStts()
330 auto memory = buffer->GetMemory(); in ParseHdlr()
366 auto memory = buffer->GetMemory(); in ParseMdhd()
H A Dbase_stream_demuxer.h62 if (data->GetMemory() != nullptr) { in CheckCacheExist()
63 return len >= offset && len < (offset + data->GetMemory()->GetSize()); in CheckCacheExist()
/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/utils/
H A Ddump_buffer.cpp52 if (buffer->GetMemory() == nullptr) { in DumpBufferToFile()
56 size_t bufferSize = buffer->GetMemory()->GetSize(); in DumpBufferToFile()
58 auto addr = reinterpret_cast<const char*>(buffer->GetMemory()->GetReadOnlyData()); in DumpBufferToFile()
102 size_t bufferSize = buffer->GetMemory()->GetSize(); in DumpBufferToLog()
108 const uint8_t* p = buffer->GetMemory()->GetReadOnlyData(); in DumpBufferToLog()
115 …PUBLIC_LOG_ZU ") : " PUBLIC_LOG_S, desc, offset, bufferSize, buffer->GetMemory()->GetCapacity(), t… in DumpBufferToLog()
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/
H A DTestDataPacker.cpp49 buffer->GetMemory()->Write(data + offset, size); in CreateBuffer()
57 buffer->GetMemory()->Write((uint8_t*)"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", size); in CreateEmptyBuffer()
122 ASSERT_STREQ("45", (const char *)(bufferOut->GetMemory()->GetReadOnlyData()));
135 bufferOut->GetMemory()->UpdateDataSize(0);
152 bufferOut->GetMemory()->UpdateDataSize(0);
167 ASSERT_EQ(15, bufferOut->GetMemory()->GetSize());
168 ASSERT_STREQ("1234567890abcde", (const char*)(bufferOut->GetMemory()->GetReadOnlyData()));
H A DTestPluginCommon.cpp31 ASSERT_TRUE(nullptr == audioBuffer->GetMemory(10));
32 std::shared_ptr<Memory> memory = audioBuffer->GetMemory(0);
H A DTestPluginManager.cpp141 buffer->GetMemory()->Write(reinterpret_cast<const uint8_t *>("UtPlugin"), 8); in ReadAt()
162 buffer->GetMemory()->Write(reinterpret_cast<const uint8_t *>("12345678"), 8); in ReadAt()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/
H A Ddata_stream_source_plugin.cpp126 std::shared_ptr<AVSharedMemory> DataStreamSourcePlugin::GetMemory() in GetMemory() function in OHOS::Media::Plugin::DataStreamSource::DataStreamSourcePlugin
140 std::shared_ptr<AVSharedMemory> memory = GetMemory(); in Read()
175 if (buffer && buffer->GetMemory()) { in Read()
176 buffer->GetMemory()->Write(memory->GetBase(), realLen, 0); in Read()
182 ", retryTimes: " PUBLIC_LOG_U32, (buffer && buffer->GetMemory()) ? in Read()
183 buffer->GetMemory()->GetSize() : -100, realLen, retryTimes_); // -100 invalid size in Read()
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/
H A Ddata_packer.cpp49 return ptr->GetMemory()->GetSize(); in GetBufferSize()
54 return ptr->GetMemory()->GetWritableAddr(size, position); in GetBufferWritableData()
59 return ptr->GetMemory()->GetReadOnlyData(); in GetBufferReadOnlyData()
199 bufferPtr->GetMemory()->UpdateDataSize(size - needCopySize); in PeekRangeInternal()
209 …FALSE_RETURN_V_MSG_E(bufferPtr && (!bufferPtr->IsEmpty()) && bufferPtr->GetMemory()->GetCapacity()… in GetRange()
242 …FALSE_RETURN_V_MSG_E(bufferPtr && (!bufferPtr->IsEmpty()) && bufferPtr->GetMemory()->GetCapacity()… in GetRange()
283 bufferPtr->GetMemory()->UpdateDataSize(size - needCopySize); in GetRange()
347 auto memory = buffer->GetMemory(); in RemoveBufferContent()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output_audio/
H A Ddsoftbus_output_audio_plugin.cpp250 if (buffer == nullptr || buffer->IsEmpty() || buffer->GetMemory() == nullptr) { in PushData()
259 size_t bufSize = buffer->GetMemory()->GetSize(); in PushData()
263 tempBuffer->GetMemory()->Write(buffer->GetMemory()->GetReadOnlyData(), bufSize); in PushData()
297 if (buffer == nullptr || buffer->GetBufferMeta() == nullptr || buffer->GetMemory() == nullptr) { in SendDataToSoftbus()
325 auto bufferData = buffer->GetMemory(); in SendDataToSoftbus()
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/
H A Dmemory_manager_test.cpp174 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory);
188 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory);
218 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory);
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_buffer.cpp47 memory_ = buffer_->GetMemory(); in Init()
97 auto mem = pluginBuffer->GetMemory(); in Copy()
120 memory_ = pluginBuffer->GetMemory(); in Rebind()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output/
H A Ddsoftbus_output_plugin.cpp262 auto bufferData = buffer->GetMemory(); in PushData()
308 if (buffer == nullptr || buffer->GetBufferMeta() == nullptr || buffer->GetMemory() == nullptr) { in SendDataToSoftbus()
328 hisAMeta->pts_, buffer->GetMemory()->GetSize(), hisAMeta->frameNum_); in SendDataToSoftbus()
345 auto bufferData = buffer->GetMemory(); in SendDataToSoftbus()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/
H A Dminimp3_decoder_plugin.cpp140 outputBuffer->GetMemory()->Reset(); in GetPcmDataProcess()
209 auto inData = inBuffer->GetMemory(); in AudioDecoderMp3Process()
210 auto outData = outBuffer->GetMemory(); in AudioDecoderMp3Process()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/lite_aac_decoder/
H A Dlite_aac_decoder_plugin.cpp240 ioInfo->GetMemory()->Reset(); in ReceiveBufferLocked()
292 auto inData = inBuffer->GetMemory(); in AudioDecoderAACMp4Process()
293 auto outData = outBuffer->GetMemory(); in AudioDecoderAACMp4Process()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
H A Dnative_leak_state.cpp188 uint32_t memorySize = userMonitorInfo->GetMemory().size(); in IsMemoryLeak()
195 if (userMonitorInfo->GetMemory().at(i) < leakThreshold) { in IsMemoryLeak()
417 if (cpuSize != userMonitorInfo->GetMemory().size()) { in DumpUserMemInfo()
423 fout << setw(LOG_WEIGHT) << userMonitorInfo->GetMemory().at(i); in DumpUserMemInfo()
499 if (cpuSize != userMonitorInfo->GetMemory().size()) { in DumpUserMemInfoToSmapsFile()
504 + to_string(userMonitorInfo->GetMemory().at(i)) + longWeight in DumpUserMemInfoToSmapsFile()
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/source/media_source/
H A Dmedia_source_filter.cpp180 if (data != nullptr && data->GetMemory() != nullptr) { in PullData()
181 auto realSize = data->GetMemory()->GetCapacity(); in PullData()
198 position_ += data->GetMemory()->GetSize(); in PullData()
318 auto memory = bufferPtr->GetMemory(); in ReadLoop()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dscreen_input/
H A Ddscreen_input_plugin.cpp130 if (buffer->GetMemory() == nullptr) { in PushData()
135 buffer->pts, buffer->GetMemory()->GetSize(), in PushData()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_encoder/
H A Dvideo_ffmpeg_encoder_plugin.cpp397 if (inputBuffer->GetMemory() == nullptr) { in FillAvFrame()
400 const uint8_t *data = inputBuffer->GetMemory()->GetReadOnlyData(); in FillAvFrame()
468 auto frameBufferMem = packetBuffer->GetMemory(); in FillFrameBuffer()
504 if (packetBuffer->GetMemory() == nullptr) { in ReceiveBufferLocked()
507 packetBuffer->GetMemory()->Reset(); in ReceiveBufferLocked()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/std_stream_source/
H A Dstd_stream_source_plugin.cpp151 std::shared_ptr<AVSharedMemory> StdStreamSourcePlugin::GetMemory() in GetMemory() function in OHOS::Media::Plugin::StdStreamSource::StdStreamSourcePlugin
163 std::shared_ptr<AVSharedMemory> memory = GetMemory(); in Read()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dsoftbus_input/
H A Ddsoftbus_input_plugin.cpp290 auto bufData = buffer->GetMemory(); in CreateBuffer()
316 buffer->pts, buffer->GetMemory()->GetSize(), meta->frameNum_); in CreateBuffer()
331 auto bufferData = buffer->GetMemory(); in DataEnqueue()
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/audio_encoder/
H A Daudio_encoder_filter.cpp209 auto inputMemory = buffer->GetMemory(); in PushData()
220 if (cacheBuffer_->GetMemory() == nullptr) { in PushData()
224 …if (rb_->ReadBuffer(cacheBuffer_->GetMemory()->GetWritableAddr(encodeSize), encodeSize) != encodeS… in PushData()
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dmemory_manager.h40 OH_NN_ReturnCode GetMemory(const void* buffer, Memory& memory);
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/
H A Dvideo_ffmpeg_decoder_plugin.cpp457 auto inputMemory = inputBuffer->GetMemory(); in SendBufferLocked()
563 auto frameBufferMem = frameBuffer->GetMemory(); in WriteYuvDataStride()
609 auto frameBufferMem = frameBuffer->GetMemory(); in WriteRgbDataStride()
633 auto frameBufferMem = frameBuffer->GetMemory(); in WriteYuvData()
676 auto frameBufferMem = frameBuffer->GetMemory(); in WriteRgbData()
756 auto frameBufferMem = frameBuffer->GetMemory(); in ReceiveBufferLocked()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/
H A Daudio_ffmpeg_encoder_plugin.cpp419 auto inputMemory = inputBuffer->GetMemory(); in SendBufferLocked()
452 auto ioInfoMem = ioInfo->GetMemory(); in ReceiveFrameSucc()
480 if (ioInfo->GetMemory() == nullptr) { in ReceiveBufferLocked()
483 ioInfo->GetMemory()->Reset(); in ReceiveBufferLocked()

123