/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | stream_demuxer.cpp | 150 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 D | pts_and_index_conversion.cpp | 132 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 D | base_stream_demuxer.h | 62 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 D | dump_buffer.cpp | 52 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 D | TestDataPacker.cpp | 49 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 D | TestPluginCommon.cpp | 31 ASSERT_TRUE(nullptr == audioBuffer->GetMemory(10)); 32 std::shared_ptr<Memory> memory = audioBuffer->GetMemory(0);
|
H A D | TestPluginManager.cpp | 141 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 D | data_stream_source_plugin.cpp | 126 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 D | data_packer.cpp | 49 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 D | dsoftbus_output_audio_plugin.cpp | 250 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 D | memory_manager_test.cpp | 174 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 D | codec_buffer.cpp | 47 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 D | dsoftbus_output_plugin.cpp | 262 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 D | minimp3_decoder_plugin.cpp | 140 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 D | lite_aac_decoder_plugin.cpp | 240 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 D | native_leak_state.cpp | 188 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 D | media_source_filter.cpp | 180 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 D | dscreen_input_plugin.cpp | 130 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 D | video_ffmpeg_encoder_plugin.cpp | 397 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 D | std_stream_source_plugin.cpp | 151 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 D | dsoftbus_input_plugin.cpp | 290 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 D | audio_encoder_filter.cpp | 209 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 D | memory_manager.h | 40 OH_NN_ReturnCode GetMemory(const void* buffer, Memory& memory);
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/ |
H A D | video_ffmpeg_decoder_plugin.cpp | 457 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 D | audio_ffmpeg_encoder_plugin.cpp | 419 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()
|