Home
last modified time | relevance | path

Searched refs:format (Results 51 - 75 of 1671) sorted by relevance

12345678910>>...67

/foundation/multimedia/av_codec/services/services/codec/server/
H A Dcodec_param_checker.cpp83 std::optional<CodecScenario> TemporalScalabilityChecker(CapabilityData &capData, const Format &format,
87 int32_t ResolutionChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
88 int32_t PixelFormatChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
89 int32_t FramerateChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
90 int32_t BitrateAndQualityChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
91 int32_t VideoProfileChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
92 int32_t RotaitonChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
93 int32_t QPChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
94 int32_t TemporalGopSizeChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
95 int32_t TemporalGopReferenceModeChecker(CapabilityData &capData, Format &format, CodecScenari
182 TemporalScalabilityChecker(CapabilityData &capData, const Format &format, AVCodecType codecType) TemporalScalabilityChecker() argument
212 ResolutionChecker(CapabilityData &capData, Format &format, CodecScenario scenario) ResolutionChecker() argument
236 PixelFormatChecker(CapabilityData &capData, Format &format, CodecScenario scenario) PixelFormatChecker() argument
254 FramerateChecker(CapabilityData &capData, Format &format, CodecScenario scenario) FramerateChecker() argument
273 BitrateAndQualityChecker(CapabilityData &capData, Format &format, CodecScenario scenario) BitrateAndQualityChecker() argument
326 VideoProfileChecker(CapabilityData &capData, Format &format, CodecScenario scenario) VideoProfileChecker() argument
344 RotaitonChecker(CapabilityData &capData, Format &format, CodecScenario scenario) RotaitonChecker() argument
363 PostProcessingChecker(CapabilityData &capData, Format &format, CodecScenario scenario) PostProcessingChecker() argument
388 QPChecker(CapabilityData &capData, Format &format, CodecScenario scenario) QPChecker() argument
412 TemporalGopSizeChecker(CapabilityData &capData, Format &format, CodecScenario scenario) TemporalGopSizeChecker() argument
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/
H A Dapi_test.cpp67 OH_AVFormat *format; member
76 if (format != nullptr) { in TearDown()
77 OH_AVFormat_Destroy(format); in TearDown()
78 format = nullptr; in TearDown()
194 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
195 ASSERT_NE(NULL, format); in HWTEST_F()
196 ASSERT_EQ(AV_ERR_INVALID_VAL, OH_VideoDecoder_Configure(NULL, format)); in HWTEST_F()
206 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
207 ASSERT_NE(NULL, format); in HWTEST_F()
209 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDT in HWTEST_F()
220 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
309 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
496 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
517 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
539 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
562 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
586 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
616 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
639 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
694 OH_AVFormat *format = OH_VideoDecoder_GetOutputDescription(vdec_); HWTEST_F() local
710 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/multimedia/media_foundation/tests/unittest/format/capi/
H A Davformat_capi_mock_factory.cpp22 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateFormat() local
23 format->InitTrackFormat(); in CreateFormat()
24 return format; in CreateFormat()
30 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateAudioFormat() local
31 format->InitAudioTrackFormat(mimeType, sampleRate, channelCount); in CreateAudioFormat()
32 return format; in CreateAudioFormat()
38 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateVideoFormat() local
39 format->InitVideoTrackFormat(mimeType, width, height); in CreateVideoFormat()
40 return format; in CreateVideoFormat()
/foundation/multimedia/av_codec/test/unittest/avsource_test/inner/
H A Davsource_inner_mock.cpp32 Format format; in GetSourceFormat() local
33 source_->GetSourceFormat(format); in GetSourceFormat()
34 return std::make_shared<AVFormatInnerMock>(format); in GetSourceFormat()
42 Format format; in GetTrackFormat() local
43 source_->GetTrackFormat(format, trackIndex); in GetTrackFormat()
44 return std::make_shared<AVFormatInnerMock>(format); in GetTrackFormat()
52 Format format; in GetUserData() local
53 source_->GetUserMeta(format); in GetUserData()
54 return std::make_shared<AVFormatInnerMock>(format); in GetUserData()
/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/
H A Daudio_ffmpeg_aac_decoder_plugin.cpp56 bool AudioFFMpegAacDecoderPlugin::CheckAdts(const Format &format) in CheckAdts() argument
59 if (format.GetIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, type)) { in CheckAdts()
73 bool AudioFFMpegAacDecoderPlugin::CheckSampleFormat(const Format &format) in CheckSampleFormat() argument
76 if (!format.GetIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, sampleFormat)) { in CheckSampleFormat()
77 AVCODEC_LOGW("Sample format missing, set to default f32le"); in CheckSampleFormat()
85 AVCODEC_LOGE("Output sample format not support"); in CheckSampleFormat()
96 bool AudioFFMpegAacDecoderPlugin::CheckChannelCount(const Format &format) in CheckChannelCount() argument
98 if (!format.GetIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, channels_)) { in CheckChannelCount()
109 bool AudioFFMpegAacDecoderPlugin::CheckSampleRate(const Format &format) const in CheckSampleRate()
112 if (!format in CheckSampleRate()
123 CheckFormat(const Format &format) CheckFormat() argument
131 Init(const Format &format) Init() argument
190 auto format = basePlugin->GetFormat(); global() variable
[all...]
H A Daudio_ffmpeg_amrwb_decoder_plugin.cpp55 int32_t AudioFFMpegAmrwbDecoderPlugin::Init(const Format &format) in Init() argument
58 int32_t checkresult = AudioFFMpegAmrwbDecoderPlugin::Checkinit(format); in Init()
66 ret = basePlugin->InitContext(format); in Init()
115 auto format = basePlugin->GetFormat(); variable
116 format.PutStringValue(MediaDescriptionKey::MD_KEY_CODEC_MIME, AVCodecMimeType::MEDIA_MIMETYPE_AUDIO_MPEG);
117 return format;
120 int32_t AudioFFMpegAmrwbDecoderPlugin::Checkinit(const Format &format) in Checkinit() argument
122 format.GetIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, channels); in Checkinit()
123 format.GetIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, sampleRate); in Checkinit()
124 format in Checkinit()
138 CheckSampleFormat(const Format &format) CheckSampleFormat() argument
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_format_helper.cpp293 void FFmpegFormatHelper::ParseTrackType(const AVFormatContext& avFormatContext, Meta& format) in ParseTrackType() argument
295 format.Set<Tag::MEDIA_TRACK_COUNT>(static_cast<int32_t>(avFormatContext.nb_streams)); in ParseTrackType()
318 format.Set<Tag::MEDIA_HAS_VIDEO>(hasVideo); in ParseTrackType()
319 format.Set<Tag::MEDIA_HAS_AUDIO>(hasAudio); in ParseTrackType()
320 format.Set<Tag::MEDIA_HAS_SUBTITLE>(hasSubtitle); in ParseTrackType()
321 format.Set<Tag::MEDIA_HAS_TIMEDMETA>(hasTimedMeta); in ParseTrackType()
324 void FFmpegFormatHelper::ParseMediaInfo(const AVFormatContext& avFormatContext, Meta& format) in ParseMediaInfo() argument
326 ParseTrackType(avFormatContext, format); in ParseMediaInfo()
327 format.Set<Tag::MEDIA_FILE_TYPE>(GetFileTypeByName(avFormatContext)); in ParseMediaInfo()
340 format in ParseMediaInfo()
354 ParseLocationInfo(const AVFormatContext& avFormatContext, Meta &format) ParseLocationInfo() argument
380 ParseUserMeta(const AVFormatContext& avFormatContext, std::shared_ptr<Meta> format) ParseUserMeta() argument
408 ParseTrackInfo(const AVStream& avStream, Meta& format, const AVFormatContext& avFormatContext) ParseTrackInfo() argument
429 ParseBaseTrackInfo(const AVStream& avStream, Meta &format, const AVFormatContext& avFormatContext) ParseBaseTrackInfo() argument
485 ParseAVTrackInfo(const AVStream& avStream, Meta &format) ParseAVTrackInfo() argument
510 ParseVideoTrackInfo(const AVStream& avStream, Meta &format, const AVFormatContext& avFormatContext) ParseVideoTrackInfo() argument
557 ParseRotationFromMatrix(const AVStream& avStream, Meta &format) ParseRotationFromMatrix() argument
597 ParseOrientationFromMatrix(const AVStream& avStream, Meta &format) ParseOrientationFromMatrix() argument
620 ParseImageTrackInfo(const AVStream& avStream, Meta &format) ParseImageTrackInfo() argument
634 ParseAudioTrackInfo(const AVStream& avStream, Meta &format) ParseAudioTrackInfo() argument
680 ParseTimedMetaTrackInfo(const AVStream& avStream, Meta &format) ParseTimedMetaTrackInfo() argument
697 ParseHvccBoxInfo(const AVStream& avStream, Meta &format) ParseHvccBoxInfo() argument
715 ParseColorBoxInfo(const AVStream& avStream, Meta &format) ParseColorBoxInfo() argument
733 ParseHevcInfo(const AVFormatContext &avFormatContext, HevcParseFormat parse, Meta &format) ParseHevcInfo() argument
779 ParseInfoFromMetadata(const AVDictionary* metadata, const TagType key, Meta &format) ParseInfoFromMetadata() argument
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/
H A Dparam_check_test.cpp110 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
122 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F()
127 format = OH_AVFormat_Create(); in HWTEST_F()
131 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F()
136 format = OH_AVFormat_Create(); in HWTEST_F()
140 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F()
145 format = OH_AVFormat_Create(); in HWTEST_F()
149 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F()
165 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
177 result0 = audioBufferAacEncDemo->Configure(codec, format, channe in HWTEST_F()
247 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
284 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
312 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
367 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
413 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
459 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
514 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
542 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
597 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
649 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
701 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/CastEngine/castengine_cast_framework/common/include/private/
H A Dcast_engine_log.h14 * Description: Log format definitions.
38 #define CLOGV(format, ...) \
41 (void)HiLog::Error(CAST_ENGINE_LABEL, "[%{public}s:%{public}d]: " format, __func__, __LINE__, \
45 #define CLOGD(format, ...) \
46 (void)HiLog::Error(CAST_ENGINE_LABEL, "[%{public}s:%{public}d]: " format, __func__, __LINE__, ##__VA_ARGS__)
47 #define CLOGI(format, ...) \
48 (void)HiLog::Error(CAST_ENGINE_LABEL, "[%{public}s:%{public}d]: " format, __func__, __LINE__, ##__VA_ARGS__)
49 #define CLOGW(format, ...) \
50 (void)HiLog::Error(CAST_ENGINE_LABEL, "[%{public}s:%{public}d]: " format, __func__, __LINE__, ##__VA_ARGS__)
51 #define CLOGE(format,
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/hevcswdecoder/src/
H A Dapi_test.cpp64 OH_AVFormat *format; member
84 if (format != nullptr) { in TearDown()
85 OH_AVFormat_Destroy(format); in TearDown()
86 format = nullptr; in TearDown()
216 format = OH_AVFormat_Create(); in HWTEST_F()
217 ASSERT_NE(NULL, format); in HWTEST_F()
218 ASSERT_EQ(AV_ERR_INVALID_VAL, OH_VideoDecoder_Configure(NULL, format)); in HWTEST_F()
230 format = OH_AVFormat_Create(); in HWTEST_F()
231 ASSERT_NE(NULL, format); in HWTEST_F()
232 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDT in HWTEST_F()
2393 OH_AVFormat *format = OH_AVCapability_GetFeatureProperties(capability, HWTEST_F() local
2411 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
2433 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
2455 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
2477 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/
H A Dapi_test.cpp29 #include "meta/format.h"
247 Format format; in HWTEST_F() local
248 format.PutIntValue(MediaDescriptionKey::MD_KEY_WIDTH, DEFAULT_WIDTH); in HWTEST_F()
249 format.PutIntValue(MediaDescriptionKey::MD_KEY_HEIGHT, DEFAULT_HEIGHT); in HWTEST_F()
250 format.PutDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, DEFAULT_FRAME_RATE); in HWTEST_F()
252 ASSERT_EQ(AVCS_ERR_OK, vdec_->Configure(format)); in HWTEST_F()
253 ASSERT_EQ(AVCS_ERR_INVALID_STATE, vdec_->Configure(format)); in HWTEST_F()
266 Format format; in HWTEST_F() local
267 format.PutIntValue(MediaDescriptionKey::MD_KEY_WIDTH, DEFAULT_WIDTH); in HWTEST_F()
268 format in HWTEST_F()
286 Format format; HWTEST_F() local
307 Format format; HWTEST_F() local
329 Format format; HWTEST_F() local
356 Format format; HWTEST_F() local
377 Format format; HWTEST_F() local
430 Format format; HWTEST_F() local
445 Format format; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeStablityTest.cpp145 OH_AVFormat* format; in GetAVFormatByDecoder() local
151 format = OH_AVFormat_Create(); in GetAVFormatByDecoder()
152 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in GetAVFormatByDecoder()
153 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in GetAVFormatByDecoder()
154 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in GetAVFormatByDecoder()
155 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in GetAVFormatByDecoder()
157 format = OH_AVFormat_Create(); in GetAVFormatByDecoder()
158 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in GetAVFormatByDecoder()
159 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in GetAVFormatByDecoder()
160 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRAT in GetAVFormatByDecoder()
180 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); RunDecode() local
209 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); RunLongTimeFlush() local
238 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); RunLongTimeReset() local
268 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); RunLongTimeStop() local
405 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
444 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
485 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
528 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
573 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
659 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
686 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
748 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
790 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
818 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
914 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); HWTEST_F() local
953 OH_AVFormat* format = GetAVFormatByDecoder(decoderName, inputFile); HWTEST_F() local
[all...]
H A DNativeFuzzTest.cpp184 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
185 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channel); in HWTEST_F()
186 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in HWTEST_F()
187 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, codedSample); in HWTEST_F()
188 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in HWTEST_F()
194 OH_AVErrCode ret = decoderDemo->NativeConfigure(handle, format); in HWTEST_F()
198 OH_AVFormat_Destroy(format); in HWTEST_F()
221 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
222 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
223 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RAT in HWTEST_F()
281 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
334 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
390 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/systemabilitymgr/samgr/test/autotest/tools/
H A Dpush_remove_source.py27 host.shell("hdc -t {} shell kill -9 `pidof listen_test`".format(sn))
28 host.shell("hdc -t {} target mount".format(sn))
29 host.shell("hdc -t {} shell rm -r /data/log/hilog".format(sn))
30 host.shell("hdc -t {} shell hilog -d /system/bin/samgr".format(sn))
33 host.shell("hdc -t {} shell chmod 644 /system/etc/init/listen_test.cfg".format(sn))
35 host.shell("hdc -t {} shell chmod 644 /system/profile/listen_test.json".format(sn))
39 host.shell("hdc -t {} shell chmod 644 /system/lib/liblisten_test.z.so".format(sn))
43 host.shell("hdc -t {} shell chmod 644 /system/lib/libtest_sa_proxy.z.so".format(sn))
47 host.shell("hdc -t {} shell chmod 644 /system/lib/libsystem_ability_fwk.z.so".format(sn))
51 host.shell("hdc -t {} shell chmod 644 /system/lib/libtest_audio_ability.z.so".format(s
[all...]
/foundation/multimedia/media_foundation/tests/unittest/format/
H A Davformat_unit_test.cpp22 #include "meta/format.h"
72 * @tc.desc: format put and get value
114 * @tc.desc: format put and get buffer
140 * 1. set format;
189 * 1. set format;
197 std::shared_ptr<Format> format = std::make_shared<Format>(); in HWTEST_F() local
198 EXPECT_TRUE(format->PutIntValue(INT_TESTKEY, INT_VALUE)); in HWTEST_F()
199 EXPECT_TRUE(format->PutLongValue(LONG_TESTKEY, LONG_VALUE)); in HWTEST_F()
200 EXPECT_TRUE(format->PutDoubleValue(DOUBLE_TESTKEY, DOUBLE_VALUE)); in HWTEST_F()
201 EXPECT_TRUE(format in HWTEST_F()
255 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
313 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
352 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
392 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
437 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
529 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
560 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
585 CheckValueType(std::shared_ptr<Format> &format) CheckValueType() argument
617 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
647 std::shared_ptr<Format> format = std::make_shared<Format>(); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
H A DInnerFuzzTest.cpp163 Format format; in HWTEST_F() local
178 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, audioChannels); in HWTEST_F()
179 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, audioSampleRate); in HWTEST_F()
180 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitRate); in HWTEST_F()
181 format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, audioSampleKey); in HWTEST_F()
182 format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, audioSampleFormat); in HWTEST_F()
183 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, audioChannelLayout); in HWTEST_F()
185 encoderDemo->InnerConfigure(format); in HWTEST_F()
205 Format format; in HWTEST_F() local
208 format in HWTEST_F()
264 Format format; HWTEST_F() local
331 Format format; HWTEST_F() local
389 Format format; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/
H A Davformat_capi_mock_factory.cpp22 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateFormat() local
23 format->InitTrackFormat(); in CreateFormat()
24 return format; in CreateFormat()
30 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateAudioFormat() local
31 format->InitAudioTrackFormat(mimeType, sampleRate, channelCount); in CreateAudioFormat()
32 return format; in CreateAudioFormat()
38 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateVideoFormat() local
39 format->InitVideoTrackFormat(mimeType, width, height); in CreateVideoFormat()
40 return format; in CreateVideoFormat()
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/inner/
H A Davformat_inner_mock_factory.cpp28 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatInnerMock>(); in CreateAudioFormat() local
29 format->InitAudioTrackFormat(mimeType, sampleRate, channelCount); in CreateAudioFormat()
30 return format; in CreateAudioFormat()
36 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatInnerMock>(); in CreateVideoFormat() local
37 format->InitVideoTrackFormat(mimeType, width, height); in CreateVideoFormat()
38 return format; in CreateVideoFormat()
44 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatInnerMock>(); in CreateTimedMetadataFormat() local
45 format->InitMetadataTrackFormat(mimeType, metadataKey, srcTrackID); in CreateTimedMetadataFormat()
46 return format; in CreateTimedMetadataFormat()
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/audio_manager_stub_unit_test/src/
H A Daudio_manager_stub_unit_test.cpp129 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_AEC_MODE); in HWTEST_F() local
134 auto ret = audioServer->HandleThirdPartCode(format, data, reply, option); in HWTEST_F()
147 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_NOISE_SUPPRESSION_MODE); in HWTEST_F() local
153 auto ret = audioServerN ->HandleFourthPartCode(format, data, reply, option); in HWTEST_F()
166 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_WHISPER_DETECTION_MODE); in HWTEST_F() local
172 auto ret = audioServerN ->HandleFourthPartCode(format, data, reply, option); in HWTEST_F()
185 uint32_t format = static_cast<uint32_t>(6000); in HWTEST_F() local
190 auto ret = audioServerN ->HandleFourthPartCode(format, data, reply, option); in HWTEST_F()
203 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_NOISE_SUPPRESSION_MODE); in HWTEST_F() local
211 auto ret = audioServer->HandleFourthPartCode(format, dat in HWTEST_F()
224 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_WHISPER_DETECTION_MODE); HWTEST_F() local
245 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_WHISPER_DETECTION_MODE); HWTEST_F() local
266 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_VOICE_CONTROL_MODE); HWTEST_F() local
287 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_VOICE_MUTE_MODE); HWTEST_F() local
308 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::IS_WHISPERING); HWTEST_F() local
329 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_EFFECT_OFFLOAD_ENABLED); HWTEST_F() local
350 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SUSPEND_RENDERSINK); HWTEST_F() local
371 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::RESTORE_RENDERSINK); HWTEST_F() local
392 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::LOAD_HDI_EFFECT_MODEL); HWTEST_F() local
413 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_EFFECT_BT_OFFLOAD_SUPPORTED); HWTEST_F() local
434 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_SINK_MUTE_FOR_SWITCH_DEVICE); HWTEST_F() local
455 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ROTATION_TO_EFFECT); HWTEST_F() local
476 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_SESSION_CONNECTION_STATE); HWTEST_F() local
497 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_SINGLE_STREAM_MUTE); HWTEST_F() local
518 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::RESTORE_SESSION); HWTEST_F() local
539 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::NOTIFY_STREAM_VOLUME_CHANGED); HWTEST_F() local
557 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_SPATIALIZATION_SCENE_TYPE); HWTEST_F() local
575 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_MAX_AMPLITUDE); HWTEST_F() local
593 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::RESET_AUDIO_ENDPOINT); HWTEST_F() local
611 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::RESET_ROUTE_FOR_DISCONNECT); HWTEST_F() local
629 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_EFFECT_LATENCY); HWTEST_F() local
647 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_LATENCY_TIMESTAMP); HWTEST_F() local
665 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_AEC_MODE); HWTEST_F() local
683 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_AEC_MODE); HWTEST_F() local
704 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_NOISE_SUPPRESSION_MODE); HWTEST_F() local
722 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_WHISPER_DETECTION_MODE); HWTEST_F() local
740 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_EFFECT_PROPERTY); HWTEST_F() local
758 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_ENHANCE_PROPERTY); HWTEST_F() local
776 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_EFFECT_PROPERTY); HWTEST_F() local
797 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_ENHANCE_PROPERTY); HWTEST_F() local
818 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UNSET_OFFLOAD_MODE); HWTEST_F() local
836 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_OFFLOAD_MODE); HWTEST_F() local
856 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::CHECK_REMOTE_DEVICE_STATE); HWTEST_F() local
873 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_VOICE_VOLUME); HWTEST_F() local
890 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_MONO_STATE); HWTEST_F() local
907 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_BALANCE_VALUE); HWTEST_F() local
924 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::LOAD_AUDIO_EFFECT_LIBRARIES); HWTEST_F() local
947 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::REQUEST_THREAD_PRIORITY); HWTEST_F() local
964 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::CREATE_AUDIO_EFFECT_CHAIN_MANAGER); HWTEST_F() local
1005 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_OUTPUT_DEVICE_SINK); HWTEST_F() local
1023 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::CREATE_PLAYBACK_CAPTURER_MANAGER); HWTEST_F() local
1040 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_SUPPORT_STREAM_USAGE); HWTEST_F() local
1058 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_CAPTURE_SILENT_STATE); HWTEST_F() local
1075 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_SPATIALIZATION_STATE); HWTEST_F() local
1094 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_SPATIAL_DEVICE_TYPE); HWTEST_F() local
1111 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::OFFLOAD_SET_VOLUME); HWTEST_F() local
1128 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::NOTIFY_STREAM_VOLUME_CHANGED); HWTEST_F() local
1145 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::AUDIO_SERVER_CODE_MAX); HWTEST_F() local
1166 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_ASR_NOISE_SUPPRESSION_MODE); HWTEST_F() local
1187 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_AUDIO_PARAMETER); HWTEST_F() local
1205 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_PARAMETER); HWTEST_F() local
1223 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_EXTRA_AUDIO_PARAMETERS); HWTEST_F() local
1242 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_EXTRA_AUDIO_PARAMETERS); HWTEST_F() local
1264 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_MICROPHONE_MUTE); HWTEST_F() local
1282 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_SCENE); HWTEST_F() local
1304 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_AUDIO_SCENE); HWTEST_F() local
1327 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_ROUTE_REQ); HWTEST_F() local
1348 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_ROUTES_REQ); HWTEST_F() local
1370 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_ROUTES_REQ); HWTEST_F() local
1392 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_DUAL_TONE_REQ); HWTEST_F() local
1412 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_TRANSACTION_ID); HWTEST_F() local
1432 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_PARAMETER_CALLBACK); HWTEST_F() local
1453 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::GET_REMOTE_AUDIO_PARAMETER); HWTEST_F() local
1474 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_REMOTE_AUDIO_PARAMETER); HWTEST_F() local
1496 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::NOTIFY_DEVICE_INFO); HWTEST_F() local
1516 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::UPDATE_SPATIALIZATION_STATE); HWTEST_F() local
1536 uint32_t format = static_cast<uint32_t>(AudioServerInterfaceCode::SET_ASR_VOICE_CONTROL_MODE); HWTEST_F() local
1553 uint32_t format = static_cast<uint32_t>(700); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/
H A Daudio_ffmpeg_flac_encoder_plugin.cpp97 int32_t AudioFFMpegFlacEncoderPlugin::SetContext(const Format &format) in SetContext() argument
102 format.GetIntValue(MediaDescriptionKey::MD_KEY_COMPLIANCE_LEVEL, complianceLevel); in SetContext()
103 format.GetIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, bitsPerCodedSample); in SetContext()
109 bool AudioFFMpegFlacEncoderPlugin::CheckBitRate(const Format &format) const in CheckBitRate()
111 if (!format.ContainKey(MediaDescriptionKey::MD_KEY_BITRATE)) { in CheckBitRate()
116 format.GetLongValue(MediaDescriptionKey::MD_KEY_BITRATE, bitRate); in CheckBitRate()
124 int32_t AudioFFMpegFlacEncoderPlugin::CheckFormat(const Format &format) in CheckFormat() argument
131 format.GetIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, channelCount); in CheckFormat()
132 format.GetIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, sampleRate); in CheckFormat()
133 format in CheckFormat()
180 Init(const Format &format) Init() argument
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/
H A Dvideoenc_ndk_sample.cpp67 static void VencFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VencFormatChanged() argument
140 OH_AVFormat *format = OH_AVFormat_Create(); in ConfigureVideoEncoder() local
141 if (format == nullptr) { in ConfigureVideoEncoder()
142 cout << "Fatal: Failed to create format" << endl; in ConfigureVideoEncoder()
145 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH); in ConfigureVideoEncoder()
146 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); in ConfigureVideoEncoder()
147 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, DEFAULT_PIX_FMT); in ConfigureVideoEncoder()
148 (void)OH_AVFormat_SetDoubleValue(format, OH_MD_KEY_FRAME_RATE, DEFAULT_FRAME_RATE); in ConfigureVideoEncoder()
149 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in ConfigureVideoEncoder()
150 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_I_FRAME_INTERVA in ConfigureVideoEncoder()
163 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_Temporal() local
194 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_fuzz() local
282 OH_AVFormat *format = OH_AVFormat_Create(); testApi() local
318 OH_AVFormat *format = OH_VideoEncoder_GetInputDescription(venc_); GetStride() local
583 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local
599 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local
632 OH_AVFormat *format = OH_AVFormat_Create(); SetForceIDR() local
931 SetParameter(OH_AVFormat *format) SetParameter() argument
[all...]
/foundation/ai/ai_engine/services/common/platform/os_wrapper/audio_loader/source/
H A Daudio_utils.cpp23 bool IsAudioCoderFormatSupported(AudioCodecFormat format) in IsAudioCoderFormatSupported() argument
25 if ((format < AAC_LC) || (format > AAC_ELD)) { in IsAudioCoderFormatSupported()
26 HILOGE("[AudioUtils]Invalid format = %d", format); in IsAudioCoderFormatSupported()
32 Profile GetProfileFromAudioCoderFormat(AudioCodecFormat format) in GetProfileFromAudioCoderFormat() argument
34 switch (format) { in GetProfileFromAudioCoderFormat()
46 HILOGW("[AudioUtils]Invalid format = 0x%.8x, replace with default", format); in GetProfileFromAudioCoderFormat()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/aac/
H A Dffmpeg_aac_decoder_plugin.cpp98 auto format = basePlugin->GetFormat(); in SetParameter() local
99 format->SetData(Tag::AUDIO_MAX_INPUT_SIZE, GetInputBufferSize()); in SetParameter()
100 format->SetData(Tag::AUDIO_MAX_OUTPUT_SIZE, GetOutputBufferSize()); in SetParameter()
101 format->SetData(Tag::MIME_TYPE, MediaAVCodec::AVCodecMimeType::MEDIA_MIMETYPE_AUDIO_AAC); in SetParameter()
141 bool FFmpegAACDecoderPlugin::CheckAdts(const std::shared_ptr<Meta> &format) in CheckAdts() argument
144 if (format->GetData(Tag::AUDIO_AAC_IS_ADTS, type)) { in CheckAdts()
158 bool FFmpegAACDecoderPlugin::CheckSampleFormat(const std::shared_ptr<Meta> &format) in CheckSampleFormat() argument
160 return basePlugin->CheckSampleFormat(format, channels_); in CheckSampleFormat()
163 bool FFmpegAACDecoderPlugin::CheckFormat(const std::shared_ptr<Meta> &format) in CheckFormat() argument
165 if (!CheckAdts(format) || !CheckChannelCoun in CheckFormat()
171 CheckChannelCount(const std::shared_ptr<Meta> &format) CheckChannelCount() argument
[all...]
/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/
H A DAVMuxerDemo.cpp30 int32_t AVMuxerDemo::GetFdByMode(OH_AVOutputFormat format) in GetFdByMode() argument
32 if (format == AV_OUTPUT_FORMAT_MPEG_4) { in GetFdByMode()
34 } else if (format == AV_OUTPUT_FORMAT_M4A) { in GetFdByMode()
36 } else if (format == AV_OUTPUT_FORMAT_AMR) { in GetFdByMode()
38 } else if (format == AV_OUTPUT_FORMAT_MP3) { in GetFdByMode()
62 int32_t AVMuxerDemo::GetFdByName(OH_AVOutputFormat format, string fileName) in GetFdByName() argument
64 if (format == AV_OUTPUT_FORMAT_MPEG_4) { in GetFdByName()
66 } else if (format == AV_OUTPUT_FORMAT_M4A) { in GetFdByName()
68 } else if (format == AV_OUTPUT_FORMAT_AMR) { in GetFdByName()
70 } else if (format in GetFdByName()
83 InnerGetFdByMode(OutputFormat format) InnerGetFdByMode() argument
100 InnerGetFdByName(OutputFormat format, string fileName) InnerGetFdByName() argument
116 NativeCreate(int32_t fd, OH_AVOutputFormat format) NativeCreate() argument
158 InnerCreate(int32_t fd, OutputFormat format) InnerCreate() argument
[all...]
/foundation/ai/intelligent_voice_framework/llt/hdt/testcase/intell_voice_utils/
H A Dtest_time_util.cpp24 enum TimeFormat format = TIME_FORMAT_DEFAULT; variable
25 std::string str = TimeUtil::GetCurrTime(format);
28 SECTION("continuous time format") {
29 TimeFormat format = TIME_FORMAT_CONTINOUS; variable
30 str = TimeUtil::GetCurrTime(format);
33 SECTION("standard time format") {
34 TimeFormat format = TIME_FORMAT_STANDARD; variable
35 str = TimeUtil::GetCurrTime(format);

Completed in 15 milliseconds

12345678910>>...67