/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_meta.cpp | 32 bufferMeta->pts_ = pts_; in Clone() 33 bufferMeta->cts_ = cts_; in Clone() 34 bufferMeta->format_ = format_; in Clone() 39 bufferMeta->Update(*this); in Clone() 40 return bufferMeta; in Clone() 99 bufferMeta->pts_ = pts_; in Clone() 100 bufferMeta->cts_ = cts_; in Clone() 101 bufferMeta->width_ = width_; in Clone() 102 bufferMeta->height_ = height_; in Clone() 108 bufferMeta->Update(*this); in Clone() [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()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/common/ |
H A D | plugin_buffer.cpp | 159 *tags_ = *bufferMeta.tags_; in Update() 172 bufferMeta->Update(*this); in Clone() 173 return bufferMeta; in Clone() 180 bufferMeta->id = id; in Clone() 181 bufferMeta->width = width; in Clone() 182 bufferMeta->height = height; in Clone() 183 bufferMeta->planes = planes; in Clone() 184 bufferMeta->stride = stride; in Clone() 186 bufferMeta->Update(*this); in Clone() 187 return bufferMeta; in Clone() [all …]
|
/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 | 122 auto bufferMeta = buffer->GetBufferMeta(); in PushData() local 123 if (!bufferMeta || bufferMeta->GetType() != BufferMetaType::VIDEO) { 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()
|
/ohos5.0/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() 140 bufferMeta->SetMeta(Tag::USER_FRAME_PTS, buffer->pts); in PushData() 141 bufferMeta->SetMeta(Tag::USER_FRAME_NUMBER, frameNumber_.load()); in PushData()
|
/ohos5.0/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()
|
/ohos5.0/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 …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() 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 …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);
|
/ohos5.0/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()
|
/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 | 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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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);
|
/ohos5.0/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 …shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in VideoImageDisaplay()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 207 auto bufferMeta = frameBuffer->meta_; in CreatePixelMapYuv() local 210 auto hasProperty = bufferMeta->Get<Tag::VIDEO_WIDTH>(width); in CreatePixelMapYuv() 213 hasProperty = bufferMeta->Get<Tag::VIDEO_HEIGHT>(height); in CreatePixelMapYuv() 217 bufferMeta->Get<Tag::VIDEO_ROTATION>(rotation); in CreatePixelMapYuv() 219 bufferMeta->Get<Tag::VIDEO_IS_HDR_VIVID>(pixelMapInfo.isHdr); in CreatePixelMapYuv()
|
/ohos5.0/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()
|
/ohos5.0/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 …shared_ptr<VideoBufferMeta> videoMeta = std::reinterpret_pointer_cast<VideoBufferMeta>(bufferMeta); in FillAvFrame()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/ |
H A D | av_trans_buffer.h | 88 void UpdateBufferMeta(std::shared_ptr<BufferMeta> bufferMeta);
|
/ohos5.0/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()
|
/ohos5.0/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()
|