Home
last modified time | relevance | path

Searched refs:MIME (Results 1 - 25 of 40) sorted by relevance

12

/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp27 static const std::string MIME = "mime"; member
44 if (!IsString(jsonObject, MIME)) { in FromJson()
45 DHLOGE("AudioEncoderIn MIME is invalid!\n"); in FromJson()
48 audioEncoderIn.mime = cJSON_GetObjectItem(jsonObject, MIME.c_str())->valuestring; in FromJson()
72 if (!IsString(jsonObject, MIME)) { in FromJson()
73 DHLOGE("AudioEncoderOut MIME is invalid!"); in FromJson()
76 audioEncoderOut.mime = cJSON_GetObjectItem(jsonObject, MIME.c_str())->valuestring; in FromJson()
141 if (!IsString(jsonObject, MIME)) { in FromJson()
142 DHLOGE("AudioDecoderIn MIME is invalid!"); in FromJson()
145 audioDecoderIn.mime = cJSON_GetObjectItem(jsonObject, MIME in FromJson()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/
H A Dhistreamer_ability_parser_test.cpp29 static const std::string MIME = "mime"; member
76 cJSON_AddNumberToObject(json, MIME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
95 cJSON_AddNumberToObject(json, MIME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
100 cJSON_ReplaceItemInObject(json, MIME.c_str(), cJSON_CreateString(AUDIO_ENCODEROUT_MIME.c_str())); in HWTEST_F()
162 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
166 cJSON_ReplaceItemInObject(jsonObject, MIME.c_str(), cJSON_CreateString(AUDIO_DECODERIN_MIME.c_str())); in HWTEST_F()
186 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
190 cJSON_ReplaceItemInObject(jsonObject, MIME.c_str(), cJSON_CreateString(AUDIO_DECODEROUT_MIME.c_str())); in HWTEST_F()
246 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), (double)(UINT16_ONE)); in HWTEST_F()
250 cJSON_ReplaceItemInObject(jsonObject, MIME in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_track_meta.cpp142 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_RAW); in ConvertRawAudioStreamToMetaInfo()
149 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in ConvertMP1StreamToMetaInfo()
158 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in ConvertMP2StreamToMetaInfo()
167 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in ConvertMP3StreamToMetaInfo()
176 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_FLAC); in ConvertFLACStreamToMetaInfo()
183 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_APE); in ConvertAPEStreamToMetaInfo()
190 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_AMR_NB); in ConvertAMRnbStreamToMetaInfo()
197 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_AMR_WB); in ConvertAMRwbStreamToMetaInfo()
204 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_OPUS); in ConvertOPUSStreamToMetaInfo()
211 meta.Set<Tag::MIME>(MEDIA_MIME_AUDIO_VORBI in ConvertVorbisStreamToMetaInfo()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/
H A Dhistreamer_ability_querier_test.cpp45 static const std::string MIME = "mime"; member
276 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), UINT16_ONE); in HWTEST_F()
293 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), UINT16_ONE); in HWTEST_F()
302 cJSON_AddStringToObject(jsonObject2, MIME.c_str(), AUDIO_ENCODEROUT_MIME.c_str()); in HWTEST_F()
363 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), UINT16_ONE); in HWTEST_F()
370 cJSON_AddStringToObject(jsonObject2, MIME.c_str(), AUDIO_DECODERIN_MIME.c_str()); in HWTEST_F()
390 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), UINT16_ONE); in HWTEST_F()
397 cJSON_AddStringToObject(jsonObject2, MIME.c_str(), AUDIO_DECODEROUT_MIME.c_str()); in HWTEST_F()
457 cJSON_AddNumberToObject(jsonObject, MIME.c_str(), UINT16_ONE); in HWTEST_F()
464 cJSON_AddStringToObject(jsonObject2, MIME in HWTEST_F()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp43 static const std::string MIME = "mime"; member
161 cJSON_AddStringToObject(jsonObject, MIME.c_str(), audioEncoderIn.mime.c_str()); in ToJson()
174 if (!IsString(jsonObject, MIME)) { in FromJson()
175 AVTRANS_LOGE("AudioEncoderIn MIME is invalid!"); in FromJson()
178 cJSON *mimeObj = cJSON_GetObjectItemCaseSensitive(jsonObject, MIME.c_str()); in FromJson()
201 cJSON_AddStringToObject(jsonObject, MIME.c_str(), audioEncoderOut.mime.c_str()); in ToJson()
213 if (!IsString(jsonObject, MIME)) { in FromJson()
214 AVTRANS_LOGE("AudioEncoderOut MIME is invalid!"); in FromJson()
217 cJSON *mimeObj = cJSON_GetObjectItemCaseSensitive(jsonObject, MIME.c_str()); in FromJson()
383 cJSON_AddStringToObject(jsonObject, MIME in ToJson()
[all...]
/foundation/multimedia/media_foundation/engine/scene/recorder/standard/
H A Drecorder_utils.cpp81 FALSE_LOG(encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_AAC)); in TransAudioEncoderFmt()
95 FALSE_LOG(encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_VIDEO_H264)); in TransVideoEncoderFmt()
100 FALSE_LOG(encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_VIDEO_MPEG4)); in TransVideoEncoderFmt()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/av_sender/src/
H A Dav_sender_engine.cpp392 encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_VIDEO_H264); in SetVideoCodecType()
398 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
400 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
404 encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_VIDEO_H265); in SetVideoCodecType()
408 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
410 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
424 encoderMeta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_AAC); in SetAudioCodecType()
429 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetAudioCodecType()
431 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetAudioCodecType()
/foundation/multimedia/media_foundation/test/unittest/
H A DTestAacDemuxerPlugin.cpp66 auto mimeStatus = aacDemuxerPlugin->GetParameter(Tag::MIME, para); in HWTEST()
88 ASSERT_TRUE(aacDemuxerPlugin->SetParameter(Tag::MIME, MEDIA_MIME_AUDIO_AAC) == Status::ERROR_UNIMPLEMENTED); in HWTEST()
H A DTestMiniMp4DemuxerPlugin.cpp66 auto mimeStatus = minimp4DemuxerPlugin->GetParameter(Tag::MIME, para); in HWTEST()
84 ASSERT_TRUE(minimp4DemuxerPlugin->SetParameter(Tag::MIME, MEDIA_MIME_AUDIO_RAW) == Status::ERROR_UNIMPLEMENTED); in HWTEST()
H A DTestWavDemuxerPlugin.cpp66 auto mimeStatus = wavDemuxerPlugin->GetParameter(Tag::MIME, para); in HWTEST()
84 ASSERT_TRUE(wavDemuxerPlugin->SetParameter(Tag::MIME, MEDIA_MIME_AUDIO_RAW) == Status::ERROR_UNIMPLEMENTED); in HWTEST()
H A DTestCompatibleCheck.cpp478 meta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_RAW); in HWTEST()
501 meta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in HWTEST()
517 ASSERT_TRUE(out1.Get<Tag::MIME>(outMime1)); in HWTEST()
534 meta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in HWTEST()
562 ASSERT_TRUE(out1.Get<Tag::MIME>(outMime1)); in HWTEST()
583 meta.Set<Plugin::Tag::MIME>(MEDIA_MIME_AUDIO_MPEG); in HWTEST()
H A DTestFFmpegDemuxer.cpp143 meta.Get<Tag::MIME>(mimeType); in HWTEST()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/av_receiver/src/
H A Dav_receiver_engine.cpp407 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
409 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
413 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
415 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetVideoCodecType()
429 avInput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetAudioCodecType()
431 avOutput_->SetParameter(static_cast<int32_t>(Plugin::Tag::MIME), mime); in SetAudioCodecType()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_output/
H A Dav_transport_output_filter.cpp182 if (paramsMap_.find(Tag::MIME) == paramsMap_.end() || in FindPlugin()
183 !Plugin::Any::IsSameTypeWith<std::string>(paramsMap_[Tag::MIME])) { in FindPlugin()
187 mime = Plugin::AnyCast<std::string>(paramsMap_[Tag::MIME]); in FindPlugin()
/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dplugin_tags.h95 MIME = SECTION_REGULAR_START + 1, ///< std::string member
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_port.cpp53 FALSE_LOG(meta.Get<Tag::MIME>(mime)); in Config()
/foundation/multimedia/media_foundation/engine/pipeline/filters/muxer/
H A Dmuxer_filter.cpp190 if (!upstreamMeta->Get<Plugin::Tag::MIME>(tmp)) { in Configure()
205 FALSE_LOG(meta->Set<Plugin::Tag::MIME>(containerMime_)); in Configure()
/foundation/multimedia/media_foundation/engine/plugin/core/
H A Dplugin_wrapper.cpp22 OHOS::Media::Plugin::Tag::MIME,
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_input_filter_test/
H A Dav_transport_input_filter_test.cpp64 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
92 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
244 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
322 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_output_filter_test/
H A Dav_transport_output_filter_test.cpp60 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
83 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
162 int32_t key = static_cast<int32_t>(Plugin::Tag::MIME); in HWTEST_F()
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/
H A Dplugin_settings.cpp94 {Tag::MIME, {CommonParameterChecker, PARAM_SET}}, in InitMuxerTable()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/av_transport_input/
H A Dav_transport_input_filter.cpp205 if (paramsMap_.find(Tag::MIME) == paramsMap_.end() || in FindPlugin()
206 !Plugin::Any::IsSameTypeWith<std::string>(paramsMap_[Tag::MIME])) { in FindPlugin()
210 mime = Plugin::AnyCast<std::string>(paramsMap_[Tag::MIME]); in FindPlugin()
/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dcompatible_check.cpp450 if (meta.Get<Plugin::Tag::MIME>(mime)) { in MetaToCapability()
480 resMeta.Set<Plugin::Tag::MIME>(cap.mime); in MergeMetaWithCapability()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_encoder/
H A Dvideo_encoder_filter.cpp151 FALSE_RETURN_V_MSG_E(encoderMeta->Get<Plugin::Tag::MIME>(mime), ErrorCode::ERROR_INVALID_PARAMETER_VALUE, in SetVideoEncoder()
316 FALSE_LOG(meta->Get<Plugin::Tag::MIME>(vencFormat_.mime)); in SetVideoEncoderFormat()
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/wav_demuxer/
H A Dwav_demuxer_plugin.cpp112 mediaInfo.tracks[0].Set<Tag::MIME>(MEDIA_MIME_AUDIO_RAW); in GetMediaInfo()

Completed in 17 milliseconds

12