Home
last modified time | relevance | path

Searched refs:dataSource (Results 1 - 25 of 48) sorted by relevance

12

/foundation/multimedia/av_codec/test/unittest/avsource_test/capi/
H A Davsource_capi_mock_factory.cpp39 const std::shared_ptr<Media::IMediaDataSource> &dataSource) in CreateWithDataSource()
44 std::shared_ptr<AVSourceMock> AVSourceMockFactory::CreateWithDataSource(OH_AVDataSource *dataSource) in CreateWithDataSource() argument
46 OH_AVSource *source = OH_AVSource_CreateWithDataSource(dataSource); in CreateWithDataSource()
38 CreateWithDataSource( const std::shared_ptr<Media::IMediaDataSource> &dataSource) CreateWithDataSource() argument
/foundation/multimedia/av_codec/test/unittest/avsource_test/inner/
H A Davsource_inner_mock_factory.cpp39 const std::shared_ptr<Media::IMediaDataSource> &dataSource) in CreateWithDataSource()
41 std::shared_ptr<AVSource> source = AVSourceFactory::CreateWithDataSource(dataSource); in CreateWithDataSource()
48 std::shared_ptr<AVSourceMock> AVSourceMockFactory::CreateWithDataSource(OH_AVDataSource *dataSource) in CreateWithDataSource() argument
38 CreateWithDataSource( const std::shared_ptr<Media::IMediaDataSource> &dataSource) CreateWithDataSource() argument
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_mock.h45 const std::shared_ptr<Media::IMediaDataSource> &dataSource);
46 static std::shared_ptr<AVSourceMock> CreateWithDataSource(OH_AVDataSource *dataSource);
54 explicit NativeAVDataSource(OH_AVDataSource *dataSource) in NativeAVDataSource() argument
55 : dataSource_(dataSource) in NativeAVDataSource()
/foundation/multimedia/av_codec/frameworks/native/capi/avsource/
H A Dnative_avsource.cpp34 explicit NativeAVDataSource(OH_AVDataSource *dataSource) in NativeAVDataSource() argument
35 : dataSource_(dataSource) in NativeAVDataSource()
95 struct OH_AVSource *OH_AVSource_CreateWithDataSource(OH_AVDataSource *dataSource) in OH_AVSource_CreateWithDataSource() argument
97 CHECK_AND_RETURN_RET_LOG(dataSource != nullptr, nullptr, "Input dataSource is nullptr"); in OH_AVSource_CreateWithDataSource()
98 CHECK_AND_RETURN_RET_LOG(dataSource->size != 0, nullptr, "Datasource size must be greater than zero"); in OH_AVSource_CreateWithDataSource()
99 std::shared_ptr<NativeAVDataSource> nativeAVDataSource = std::make_shared<NativeAVDataSource>(dataSource); in OH_AVSource_CreateWithDataSource()
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/wav_demuxer/
H A Dwav_demuxer_plugin.cpp50 int Sniff(const std::string& pluginName, std::shared_ptr<DataSource> dataSource);
72 ioContext_.dataSource = source; in SetDataSource()
73 if (ioContext_.dataSource != nullptr) { in SetDataSource()
74 ioContext_.dataSource->GetSize(fileSize_); in SetDataSource()
85 Status status = ioContext_.dataSource->ReadAt(0, buffer, WAV_HEAD_INFO_LEN); in GetMediaInfo()
134 Status retResult = ioContext_.dataSource->ReadAt(dataOffset_, outBufferPtr, WAV_PER_FRAME_SIZE); in ReadFrame()
213 int Sniff(const std::string& name, std::shared_ptr<DataSource> dataSource) in Sniff() argument
218 auto status = dataSource->ReadAt(0, buffer, PROBE_READ_LENGTH); in Sniff()
/foundation/multimedia/av_codec/interfaces/inner_api/native/
H A Davsource.h75 static std::shared_ptr<AVSource> CreateWithDataSource(const std::shared_ptr<Media::IMediaDataSource> &dataSource) in CreateWithDataSource() argument
100 static std::shared_ptr<AVSource> CreateWithDataSource(const std::shared_ptr<Media::IMediaDataSource> &dataSource);
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/capi_demo/
H A Davsource_demo.cpp67 int32_t AVSourceDemo::CreateWithDataSource(OH_AVDataSource *dataSource) in CreateWithDataSource() argument
69 this->avsource_ = OH_AVSource_CreateWithDataSource(dataSource); in CreateWithDataSource()
H A Davsource_demo.h32 int32_t CreateWithDataSource(OH_AVDataSource *dataSource);
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/
H A Dminimp4_demuxer_plugin.cpp46 int Sniff(const std::string &name, std::shared_ptr<DataSource> dataSource);
70 ioContext_.dataSource = source; in SetDataSource()
71 if (ioContext_.dataSource != nullptr) { in SetDataSource()
72 ioContext_.dataSource->GetSize(fileSize_); in SetDataSource()
110 ioContext_.dataSource.reset(); in Reset()
179 auto result = ioContext_.dataSource->ReadAt(ioContext_.offset, buffer, static_cast<size_t>(readSize)); in DoReadFromSource()
246 if (fileSize_ == 0 || ioContext_.dataSource == nullptr) { in GetMediaInfo()
441 int Sniff(const std::string &name, std::shared_ptr<DataSource> dataSource) in Sniff() argument
448 if (dataSource->ReadAt(MP4_HEADER_OFFSET, buffer, static_cast<size_t>(sizeof(m4aCheck))) != Status::OK) { in Sniff()
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/aac_demuxer/
H A Daac_demuxer_plugin.cpp41 int Sniff(const std::string& name, std::shared_ptr<DataSource> dataSource);
65 ioContext_.dataSource = source; in SetDataSource()
66 if (ioContext_.dataSource != nullptr) { in SetDataSource()
67 ioContext_.dataSource->GetSize(fileSize_); in SetDataSource()
90 auto result = ioContext_.dataSource->ReadAt(offset, buffer, static_cast<size_t>(readSize)); in DoReadFromSource()
254 ioContext_.dataSource.reset(); in Reset()
256 ioContext_.dataSource.reset(); in Reset()
417 int Sniff(const std::string& name, std::shared_ptr<DataSource> dataSource) in Sniff() argument
421 auto result = dataSource->ReadAt(0, buffer, static_cast<size_t>(PROBE_READ_LENGTH)); in Sniff()
/foundation/multimedia/av_codec/frameworks/native/avsource/
H A Davsource_impl.cpp68 const std::shared_ptr<Media::IMediaDataSource> &dataSource) in CreateWithDataSource()
75 int32_t ret = sourceImpl->InitWithDataSource(dataSource); in CreateWithDataSource()
123 int32_t AVSourceImpl::InitWithDataSource(const std::shared_ptr<Media::IMediaDataSource> &dataSource) in InitWithDataSource() argument
132 std::shared_ptr<MediaSource> mediaSource = std::make_shared<MediaSource>(dataSource); in InitWithDataSource()
67 CreateWithDataSource( const std::shared_ptr<Media::IMediaDataSource> &dataSource) CreateWithDataSource() argument
H A Davsource_impl.h35 int32_t InitWithDataSource(const std::shared_ptr<Media::IMediaDataSource> &dataSource);
/foundation/multimedia/media_foundation/test/unittest/plugins/
H A DUtDemuxerTest1.cpp20 static int Sniff(const std::string& name, std::shared_ptr<DataSource> dataSource) in Sniff() argument
24 if (dataSource->ReadAt(0, bufData, bufferSize) == Status::OK) { in Sniff()
/foundation/multimedia/media_foundation/src/plugin/
H A Dplugin_manager_v2.cpp46 std::string PluginManagerV2::SnifferPlugin(PluginType pluginType, std::shared_ptr<DataSource> dataSource) in SnifferPlugin() argument
57 auto prob = pluginDef->GetSniffer()(pluginDef->name, dataSource); in SnifferPlugin()
/foundation/multimedia/av_codec/interfaces/kits/c/
H A Dnative_avsource.h33 * @param dataSource User customized media resource.
36 * 1. dataSource is nullptr.
37 * 2. dataSource->size == 0.
43 OH_AVSource *OH_AVSource_CreateWithDataSource(OH_AVDataSource *dataSource);
/foundation/multimedia/media_lite/services/recorder_lite/impl/src/
H A Drecorder_impl.cpp91 sourceManager_[i].dataSource = nullptr; in RecorderImpl()
140 if (sourceManager_[i].dataSource != nullptr) { in ResetConfig()
141 delete sourceManager_[i].dataSource; in ResetConfig()
142 sourceManager_[i].dataSource = nullptr; in ResetConfig()
186 if (sourceManager_[i].dataSource == nullptr) { in GetFreeDataSourceID()
218 } else if (sourceManager_[index].dataSource != nullptr) { in GetIndexBySourceID()
392 return sourceManager_[validIndex].dataSource->GetSurface(); in GetSurface()
553 MEDIA_ERR_LOG("dataSource source = %d is invalid", source); in SetDataSource()
562 sourceManager_[freeIndex].dataSource = new(std::nothrow) RecorderDataSource(); in SetDataSource()
563 if (sourceManager_[freeIndex].dataSource in SetDataSource()
[all...]
/foundation/multimedia/media_foundation/interface/inner_api/plugin/
H A Dplugin_manager_v2.h38 std::string SnifferPlugin(PluginType pluginType, std::shared_ptr<DataSource> dataSource);
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_demuxer_plugin.cpp64 int Sniff(const std::string& pluginName, std::shared_ptr<DataSource> dataSource);
191 ioContext_.dataSource = source; in SetDataSource()
536 if (ioContext && ioContext->dataSource) { in AVReadPacket()
539 auto result = ioContext->dataSource->ReadAt(ioContext->offset, buffer, static_cast<size_t>(bufSize)); in AVReadPacket()
590 if (ioContext->dataSource->GetSize(mediaDataSize) == Status::OK) { in AVSeek()
610 int Sniff(const std::string& pluginName, std::shared_ptr<DataSource> dataSource) in Sniff() argument
612 if (pluginName.empty() || !dataSource) { in Sniff()
613 MEDIA_LOG_E("Sniff failed due to empty plugin name or dataSource invalid."); in Sniff()
623 if (dataSource->GetSize(fileSize) == Status::OK) { in Sniff()
630 if (bufData && dataSource in Sniff()
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/
H A Dminimp3_demuxer_plugin.cpp58 int Sniff(const std::string& pluginName, std::shared_ptr<DataSource> dataSource);
87 ioContext_.dataSource = source; in SetDataSource()
88 if (ioContext_.dataSource != nullptr) { in SetDataSource()
89 ioContext_.dataSource->GetSize(fileSize_); in SetDataSource()
106 auto res = ioContext_.dataSource->ReadAt(ioContext_.offset, buffer, static_cast<size_t>(readSize)); in DoReadFromSource()
342 ioContext_.dataSource.reset(); in Reset()
673 int Sniff(const std::string& name, std::shared_ptr<DataSource> dataSource) in Sniff() argument
684 dataSource->GetSize(sourceSize); in Sniff()
689 status = dataSource->ReadAt(offset, buffer, static_cast<size_t>(readSize)); in Sniff()
/foundation/multimedia/media_foundation/engine/plugin/core/
H A Dplugin_wrapper.h29 DataSourceWrapper(uint32_t pkgVersion, std::shared_ptr<DataSourceHelper> dataSource);
H A Dplugin_wrapper.cpp67 DataSourceWrapper::DataSourceWrapper(uint32_t pkgVersion, std::shared_ptr<DataSourceHelper> dataSource) in DataSourceWrapper() argument
68 : version(pkgVersion), helper(std::move(dataSource)) in DataSourceWrapper()
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_utils.cpp334 bool ThumbnailUtils::ScaleTargetPixelMap(std::shared_ptr<PixelMap> &dataSource, const Size &targetSize, in ScaleTargetPixelMap() argument
341 if (!postProc.ScalePixelMapEx(targetSize, *dataSource, option)) { in ScaleTargetPixelMap()
349 bool ThumbnailUtils::CenterScaleEx(std::shared_ptr<PixelMap> &dataSource, const Size &desiredSize, in CenterScaleEx() argument
352 if (dataSource->GetHeight() * dataSource->GetWidth() == 0) { in CenterScaleEx()
357 float sourceScale = static_cast<float>(dataSource->GetHeight()) / static_cast<float>(dataSource->GetWidth()); in CenterScaleEx()
360 scale = static_cast<float>(desiredSize.height) / static_cast<float>(dataSource->GetHeight()); in CenterScaleEx()
362 scale = static_cast<float>(desiredSize.width) / static_cast<float>(dataSource->GetWidth()); in CenterScaleEx()
369 static_cast<int32_t>(scale * dataSource in CenterScaleEx()
2324 std::shared_ptr<PixelMap> dataSource = isSourceEx ? data.sourceEx : data.source; ScaleThumbnailFromSource() local
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_reference_parser.cpp150 parserRefIoContext_.dataSource = ioContext_.dataSource; in InitIoContext()
154 FALSE_RETURN_V_MSG_E(parserRefIoContext_.dataSource != nullptr, Status::ERROR_UNKNOWN, "Data source is nullptr"); in InitIoContext()
155 if (parserRefIoContext_.dataSource->GetSeekable() == Plugins::Seekable::SEEKABLE) { in InitIoContext()
156 parserRefIoContext_.dataSource->GetSize(parserRefIoContext_.fileSize); in InitIoContext()
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dtype_finder.cpp171 auto dataSource = shared_from_this(); in SniffMediaType() local
172 pluginName = Plugins::PluginManagerV2::Instance().SnifferPlugin(PluginType::DEMUXER, dataSource); in SniffMediaType()
/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/
H A Dtype_finder.cpp192 auto dataSource = shared_from_this(); in SniffMediaType() local
195 auto prob = Plugin::PluginManager::Instance().Sniffer(plugin->name, dataSource); in SniffMediaType()

Completed in 15 milliseconds

12