/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_meta.cpp | 31 auto bufferMeta = std::make_shared<AVTransAudioBufferMeta>();
in Clone() local 32 bufferMeta->pts_ = pts_;
in Clone() 33 bufferMeta->cts_ = cts_;
in Clone() 34 bufferMeta->format_ = format_;
in Clone() 35 bufferMeta->dataType_ = dataType_;
in Clone() 36 bufferMeta->frameNum_ = frameNum_;
in Clone() 37 bufferMeta->channels_ = channels_;
in Clone() 38 bufferMeta->sampleRate_ = sampleRate_;
in Clone() 39 bufferMeta->Update(*this);
in Clone() 40 return bufferMeta;
in Clone() 98 auto bufferMeta = std::make_shared<AVTransVideoBufferMeta>(); Clone() local [all...] |
H A D | av_trans_buffer.cpp | 68 void AVTransBuffer::UpdateBufferMeta(std::shared_ptr<BufferMeta> bufferMeta)
in UpdateBufferMeta() argument 70 meta_ = bufferMeta;
in UpdateBufferMeta()
|
/foundation/multimedia/media_foundation/engine/plugin/common/ |
H A D | plugin_buffer.cpp | 156 void BufferMeta::Update(const BufferMeta& bufferMeta) in Update() argument 158 type_ = bufferMeta.GetType(); in Update() 159 *tags_ = *bufferMeta.tags_; in Update() 164 auto bufferMeta = std::shared_ptr<AudioBufferMeta>(new AudioBufferMeta()); in Clone() local 165 bufferMeta->samples = samples; in Clone() 166 bufferMeta->sampleFormat = sampleFormat; in Clone() 167 bufferMeta->sampleRate = sampleRate; in Clone() 168 bufferMeta->channels = channels; in Clone() 169 bufferMeta->bytesPreFrame = bytesPreFrame; in Clone() 170 bufferMeta in Clone() 178 auto bufferMeta = std::shared_ptr<VideoBufferMeta>(new VideoBufferMeta()); Clone() local 284 UpdateBufferMeta(const BufferMeta& bufferMeta) UpdateBufferMeta() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dscreen_input/ |
H A D | dscreen_input_plugin.cpp | 122 auto bufferMeta = buffer->GetBufferMeta(); in PushData() local 123 if (!bufferMeta || bufferMeta->GetType() != BufferMetaType::VIDEO) { in PushData() 124 AVTRANS_LOGE("bufferMeta is nullptr or empty."); in PushData() 129 bufferMeta->SetMeta(Tag::USER_FRAME_NUMBER, frameNumber_.load()); in PushData() 136 Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::USER_FRAME_NUMBER))); in PushData() 143 bufferMeta->SetMeta(Tag::MEDIA_START_TIME, audioTimestamp); in PushData() 144 bufferMeta->SetMeta(Tag::AUDIO_SAMPLE_PER_FRAME, audioFrameNum); in PushData()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/daudio_input/ |
H A D | daudio_input_plugin.cpp | 131 auto bufferMeta = buffer->GetBufferMeta(); in PushData() local 132 TRUE_RETURN_V(bufferMeta == nullptr, Status::ERROR_NULL_POINTER); in PushData() 133 if (bufferMeta->GetType() != BufferMetaType::AUDIO) { in PushData() 134 AVTRANS_LOGE("bufferMeta is wrong."); in PushData() 140 bufferMeta->SetMeta(Tag::USER_FRAME_PTS, buffer->pts); in PushData() 141 bufferMeta->SetMeta(Tag::USER_FRAME_NUMBER, frameNumber_.load()); in PushData()
|
/foundation/multimedia/av_codec/test/unittest/demuxer_test/inner/ |
H A D | demuxer_inner_buffer_mock.cpp | 76 std::shared_ptr<Meta> bufferMeta = buffer->meta_; in ReadSample() local 77 if (bufferMeta == nullptr) { in ReadSample() 82 bufferMeta->GetData(Tag::BUFFER_DURATION, duration); in ReadSample() 83 bufferMeta->GetData(Tag::BUFFER_DECODING_TIMESTAMP, dts); in ReadSample()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/output_control/src/ |
H A D | time_statistician.cpp | 26 auto bufferMeta = data->GetBufferMeta(); in CalProcessTime() local 27 if (!bufferMeta->IsExist(Tag::USER_PUSH_DATA_TIME)) { in CalProcessTime() 31 int64_t pushTime = Plugin::AnyCast<int64_t>(bufferMeta->GetMeta(Tag::USER_PUSH_DATA_TIME)); in CalProcessTime()
|
H A D | output_controller.cpp | 275 auto bufferMeta = data->GetBufferMeta(); in CheckSyncInfo() local 276 bool isAFrameNumberExist = bufferMeta->IsExist(Tag::AUDIO_SAMPLE_PER_FRAME); in CheckSyncInfo() 277 bool isAPtsExist = bufferMeta->IsExist(Tag::MEDIA_START_TIME); in CheckSyncInfo() 362 auto bufferMeta = data->GetBufferMeta(); in AcquireSyncClockTime() local 363 clockUnit.frameNum = Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::AUDIO_SAMPLE_PER_FRAME)); in AcquireSyncClockTime() 526 auto bufferMeta = data->GetBufferMeta(); in HandleSyncTime() local 528 uint32_t vFrameNumber = Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::USER_FRAME_NUMBER)); in HandleSyncTime()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture/ |
H A D | video_file_capture_plugin.cpp | 223 void VideoFileCapturePlugin::SetVideoBufferMeta(std::shared_ptr<BufferMeta>& bufferMeta) in SetVideoBufferMeta() argument 225 std::shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in SetVideoBufferMeta() 243 auto bufferMeta = buffer->GetBufferMeta(); in Read() local 244 FALSE_RETURN_V_MSG_E(bufferMeta != nullptr && bufferMeta->GetType() == BufferMetaType::VIDEO, in Read() 245 Status::ERROR_INVALID_PARAMETER, "bufferMeta or fp is invalid"); in Read() 267 SetVideoBufferMeta(bufferMeta); in Read()
|
H A D | video_capture_plugin.cpp | 272 void VideoCapturePlugin::SetVideoBufferMeta(std::shared_ptr<BufferMeta>& bufferMeta) in SetVideoBufferMeta() argument 274 std::shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in SetVideoBufferMeta() 294 auto bufferMeta = buffer->GetBufferMeta(); in Read() local 295 if (!bufferMeta || bufferMeta->GetType() != BufferMetaType::VIDEO || surfaceConsumer_ == nullptr) { in Read() 323 SetVideoBufferMeta(bufferMeta); in Read()
|
H A D | video_file_capture_plugin.h | 52 void SetVideoBufferMeta(std::shared_ptr<BufferMeta>& bufferMeta);
|
H A D | video_capture_plugin.h | 68 void SetVideoBufferMeta(std::shared_ptr<BufferMeta>& bufferMeta);
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dscreen_output/ |
H A D | dscreen_output_plugin.cpp | 168 auto bufferMeta = data->GetBufferMeta(); in OnOutput() local 170 if (bufferMeta->IsExist(Tag::USER_FRAME_NUMBER)) { in OnOutput() 171 vFrameNumber = Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::USER_FRAME_NUMBER)); in OnOutput()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/daudio_output/ |
H A D | daudio_output_plugin.cpp | 242 auto bufferMeta = buffer->GetBufferMeta(); in PushData() local 243 if (bufferMeta->IsExist(Tag::USER_FRAME_NUMBER) && bufferMeta->IsExist(Tag::USER_FRAME_PTS)) { in PushData() 244 int64_t pts = Plugin::AnyCast<int64_t>(bufferMeta->GetMeta(Tag::USER_FRAME_PTS)); in PushData() 245 uint32_t frameNum = Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::USER_FRAME_NUMBER)); in PushData()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output/ |
H A D | dsoftbus_output_plugin.cpp | 316 auto bufferMeta = buffer->GetBufferMeta(); in SendDataToSoftbus() local 317 BufferMetaType metaType = bufferMeta->GetType(); in SendDataToSoftbus() 329 if (bufferMeta->IsExist(Tag::MEDIA_START_TIME)) { in SendDataToSoftbus() 330 hisAMeta->extPts_ = Plugin::AnyCast<int64_t>(bufferMeta->GetMeta(Tag::MEDIA_START_TIME)); in SendDataToSoftbus() 332 if (bufferMeta->IsExist(Tag::AUDIO_SAMPLE_PER_FRAME)) { in SendDataToSoftbus() 333 hisAMeta->extFrameNum_ = Plugin::AnyCast<uint32_t>(bufferMeta->GetMeta(Tag::AUDIO_SAMPLE_PER_FRAME)); in SendDataToSoftbus()
|
/foundation/multimedia/media_foundation/engine/include/plugin/common/ |
H A D | plugin_buffer.h | 82 void Update(const BufferMeta& bufferMeta); 218 void UpdateBufferMeta(const BufferMeta& bufferMeta);
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 261 auto bufferMeta = frameBuffer->meta_; in DumpAVBuffer() local 265 bufferMeta->Get<Tag::VIDEO_WIDTH>(width); in DumpAVBuffer() 266 bufferMeta->Get<Tag::VIDEO_HEIGHT>(height); in DumpAVBuffer() 267 bufferMeta->Get<Tag::VIDEO_IS_HDR_VIVID>(isHdr); in DumpAVBuffer() 307 auto bufferMeta = frameBuffer->meta_; in CreatePixelMapYuv() local 310 auto hasProperty = bufferMeta->Get<Tag::VIDEO_WIDTH>(width); in CreatePixelMapYuv() 313 hasProperty = bufferMeta->Get<Tag::VIDEO_HEIGHT>(height); in CreatePixelMapYuv() 317 bufferMeta->Get<Tag::VIDEO_ROTATION>(rotation); in CreatePixelMapYuv() 319 bufferMeta->Get<Tag::VIDEO_IS_HDR_VIVID>(pixelMapInfo.isHdr); in CreatePixelMapYuv() 333 bufferMeta in CreatePixelMapYuv() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/sink/sdl/video_sink/ |
H A D | sdl_video_sink_plugin.cpp | 368 auto bufferMeta = inputInfo->GetBufferMeta(); in VideoImageDisaplay() local 369 if (bufferMeta == nullptr || bufferMeta->GetType() != BufferMetaType::VIDEO) { in VideoImageDisaplay() 373 std::shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in VideoImageDisaplay()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/ |
H A D | av_trans_buffer.h | 88 void UpdateBufferMeta(std::shared_ptr<BufferMeta> bufferMeta);
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_encoder/ |
H A D | video_ffmpeg_encoder_plugin.cpp | 401 auto bufferMeta = inputBuffer->GetBufferMeta(); in FillAvFrame() local 402 FALSE_RETURN_V_MSG_W(bufferMeta != nullptr && bufferMeta->GetType() == BufferMetaType::VIDEO, in FillAvFrame() 404 std::shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in FillAvFrame()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/audio_capture/ |
H A D | audio_capture_plugin.cpp | 432 auto bufferMeta = buffer->GetBufferMeta(); in Read() local 433 if (!bufferMeta || bufferMeta->GetType() != BufferMetaType::AUDIO) { in Read()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/ |
H A D | video_ffmpeg_decoder_plugin.cpp | 714 auto bufferMeta = frameBuffer->GetBufferMeta(); in FillFrameBuffer() local 715 if (bufferMeta != nullptr && bufferMeta->GetType() == BufferMetaType::VIDEO) { in FillFrameBuffer() 716 std::shared_ptr<VideoBufferMeta> videoMeta = ReinterpretPointerCast<VideoBufferMeta>(bufferMeta); in FillFrameBuffer()
|
/foundation/multimedia/av_codec/services/media_engine/modules/source/audio_capture/ |
H A D | audio_capture_module.cpp | 310 auto bufferMeta = buffer->meta_; in Read() local 311 if (!bufferMeta) { in Read()
|