Home
last modified time | relevance | path

Searched refs:BufferMetaType (Results 1 - 25 of 44) sorted by relevance

12

/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dplugin_buffer.h57 enum struct BufferMetaType : uint32_t { struct
78 BufferMetaType GetType() const;
88 explicit BufferMeta(BufferMetaType type);
91 BufferMetaType type_;
135 AudioBufferMeta() : BufferMeta(BufferMetaType::AUDIO) {} in AudioBufferMeta()
178 VideoBufferMeta() : BufferMeta(BufferMetaType::VIDEO) {} in VideoBufferMeta()
193 explicit Buffer(BufferMetaType type = BufferMetaType::AUDIO);
198 static std::shared_ptr<Buffer> CreateDefaultBuffer(BufferMetaType type, size_t capacity,
225 void ChangeBufferMetaType(BufferMetaType typ
[all...]
/foundation/multimedia/media_foundation/test/unittest/
H A DTestPluginCommon.cpp28 std::shared_ptr<Buffer> audioBuffer = Buffer::CreateDefaultBuffer(BufferMetaType::AUDIO, 16, in HWTEST()
41 audioBuffer->ChangeBufferMetaType(BufferMetaType::AUDIO); in HWTEST()
42 audioBuffer->ChangeBufferMetaType(BufferMetaType::VIDEO); in HWTEST()
43 std::shared_ptr<Buffer> videoBuffer = Buffer::CreateDefaultBuffer(BufferMetaType::VIDEO, 16, in HWTEST()
H A DTestFFmpegVideoDecoder.cpp73 std::shared_ptr<Buffer> inputBuffer = std::make_shared<Buffer>(BufferMetaType::VIDEO); in HWTEST()
H A DTestFFmpegAudioDecoder.cpp84 std::shared_ptr<Buffer> inputBuffer = std::make_shared<Buffer>(BufferMetaType::AUDIO); in HWTEST()
H A DTestFFmpegAudioEncoder.cpp85 std::shared_ptr<Buffer> inputBuffer = std::make_shared<Buffer>(BufferMetaType::AUDIO); in HWTEST()
H A DTestAudioCapturePlugin.cpp148 std::shared_ptr<Buffer> buffer = std::make_shared<Buffer>(BufferMetaType::AUDIO); in HWTEST()
/foundation/multimedia/media_foundation/engine/plugin/common/
H A Dplugin_buffer.cpp129 BufferMeta::BufferMeta(BufferMetaType type) : type_(type), tags_(std::make_shared<Meta>()) in BufferMeta()
146 BufferMetaType BufferMeta::GetType() const in GetType()
190 Buffer::Buffer(BufferMetaType type) : trackID(0), pts(0), dts(0), duration(0), flag (0), meta() in Buffer()
192 if (type == BufferMetaType::AUDIO) { in Buffer()
194 } else if (type == BufferMetaType::VIDEO) { in Buffer()
199 std::shared_ptr<Buffer> Buffer::CreateDefaultBuffer(BufferMetaType type, size_t capacity, in CreateDefaultBuffer()
302 BufferMetaType type = meta->GetType(); in Reset()
304 if (type == BufferMetaType::AUDIO) { in Reset()
306 } else if (type == BufferMetaType::VIDEO) { in Reset()
311 void Buffer::ChangeBufferMetaType(BufferMetaType typ
[all...]
/foundation/multimedia/media_foundation/engine/include/foundation/utils/
H A Dbuffer_pool.h56 void Init(size_t msgSize = DEFAULT_FRAME_SIZE, Plugin::BufferMetaType type = Plugin::BufferMetaType::AUDIO, in Init()
190 Plugin::BufferMetaType metaType_ = Plugin::BufferMetaType::AUDIO;
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/dscreen_input_test/
H A Ddscreen_input_test.cpp68 buffer->ChangeBufferMetaType(BufferMetaType::VIDEO); in HWTEST_F()
73 buffer->ChangeBufferMetaType(BufferMetaType::AUDIO); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/
H A Dav_trans_meta.h35 AVTransAudioBufferMeta() : OHOS::Media::Plugin::BufferMeta(BufferMetaType::AUDIO) {} in AVTransAudioBufferMeta()
68 AVTransVideoBufferMeta() : OHOS::Media::Plugin::BufferMeta(BufferMetaType::VIDEO) {} in AVTransVideoBufferMeta()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_output/output_control_test/
H A Doutput_controller_test.cpp41 std::shared_ptr<Plugin::Buffer> data = std::make_shared<Plugin::Buffer>(BufferMetaType::AUDIO); in HWTEST_F()
175 data = std::make_shared<Plugin::Buffer>(BufferMetaType::AUDIO); in HWTEST_F()
230 data = std::make_shared<Plugin::Buffer>(BufferMetaType::AUDIO); in HWTEST_F()
253 data = std::make_shared<Plugin::Buffer>(BufferMetaType::AUDIO); in HWTEST_F()
/foundation/multimedia/media_foundation/test/unittest/plugins/
H A DUtDemuxerTest1.cpp23 auto bufData = Buffer::CreateDefaultBuffer(BufferMetaType::AUDIO, bufferSize); in Sniff()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/
H A Dcodec_mode.cpp77 uint32_t bufferCnt, uint32_t bufferSize, Plugin::BufferMetaType bufferMetaType) in CreateOutBufferPool()
H A Dcodec_mode.h64 uint32_t bufferCnt, uint32_t bufferSize, Plugin::BufferMetaType bufferMetaType);
H A Dcodec_filter_base.h97 Plugin::BufferMetaType bufferMetaType_ = {};
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/buffer_calibration/
H A Daudio_buffer_calibration.cpp69 if (tmpMeta!= nullptr && tmpMeta->GetType() != Plugin::BufferMetaType::AUDIO) { in CorrectBufferImpl()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output_audio/
H A Ddsoftbus_output_audio_plugin.cpp260 auto tempBuffer = std::make_shared<Plugin::Buffer>(BufferMetaType::AUDIO); in PushData()
305 BufferMetaType metaType = buffer->GetBufferMeta()->GetType(); in SendDataToSoftbus()
307 if (metaType != BufferMetaType::AUDIO) { in SendDataToSoftbus()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/daudio_input/
H A Ddaudio_input_plugin.cpp133 if (bufferMeta->GetType() != BufferMetaType::AUDIO) { in PushData()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dscreen_input/
H A Ddscreen_input_plugin.cpp123 if (!bufferMeta || bufferMeta->GetType() != BufferMetaType::VIDEO) { in PushData()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/dsoftbus_output/
H A Ddsoftbus_output_plugin.cpp317 BufferMetaType metaType = bufferMeta->GetType(); in SendDataToSoftbus()
319 if (metaType != BufferMetaType::VIDEO) { in SendDataToSoftbus()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/audio_decoder/
H A Daudio_decoder_filter.cpp47 bufferMetaType_ = Plugin::BufferMetaType::AUDIO; in AudioDecoderFilter()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_decoder/
H A Dvideo_decoder_filter.cpp54 bufferMetaType_ = Plugin::BufferMetaType::VIDEO; in VideoDecoderFilter()
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_encoder/
H A Dvideo_ffmpeg_encoder_plugin.cpp402 FALSE_RETURN_V_MSG_W(bufferMeta != nullptr && bufferMeta->GetType() == BufferMetaType::VIDEO, in FillAvFrame()
523 packetBuffer->GetBufferMeta()->GetType() == BufferMetaType::VIDEO, in ReceiveBuffer()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_encoder/
H A Dvideo_encoder_filter.cpp275 outBufPool_->Init(bufferSize, Plugin::BufferMetaType::VIDEO); in AllocateOutputBuffers()
280 auto buf = CppExt::make_unique<AVBuffer>(Plugin::BufferMetaType::VIDEO); in AllocateOutputBuffers()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture/
H A Dvideo_file_capture_plugin.cpp244 FALSE_RETURN_V_MSG_E(bufferMeta != nullptr && bufferMeta->GetType() == BufferMetaType::VIDEO, in Read()

Completed in 10 milliseconds

12