Home
last modified time | relevance | path

Searched refs:format (Results 1 - 25 of 1671) sorted by relevance

12345678910>>...67

/foundation/multimedia/av_codec/test/fuzztest/audiodecoderconfigure_fuzzer/
H A DaudiodecoderConfigure_fuzzer.cpp35 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACConfigureFuzzTest() local
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACConfigureFuzzTest()
37 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACConfigureFuzzTest()
38 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACConfigureFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACConfigureFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACConfigureFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACConfigureFuzzTest()
42 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACConfigureFuzzTest()
44 OH_AudioCodec_Configure(source, format); in AudioAACConfigureFuzzTest()
48 if (format ! in AudioAACConfigureFuzzTest()
88 OH_AVFormat *format = OH_AVFormat_Create(); AudioFlacConfigureFuzzTest() local
140 OH_AVFormat *format = OH_AVFormat_Create(); AudioMP3ConfigureFuzzTest() local
170 OH_AVFormat *format = OH_AVFormat_Create(); AudioVorbisConfigureFuzzTest() local
200 OH_AVFormat *format = OH_AVFormat_Create(); AudioLBVCConfigureFuzzTest() local
252 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRNBConfigureFuzzTest() local
304 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRWBConfigureFuzzTest() local
356 OH_AVFormat *format = OH_AVFormat_Create(); AudioAPEConfigureFuzzTest() local
408 OH_AVFormat *format = OH_AVFormat_Create(); AudioOPUSConfigureFuzzTest() local
460 OH_AVFormat *format = OH_AVFormat_Create(); AudioG711ConfigureFuzzTest() local
512 OH_AVFormat *format = OH_AVFormat_Create(); AudioVividConfigureFuzzTest() local
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audiodecodersetparameter_fuzzer/
H A DaudiodecoderSetParameter_fuzzer.cpp32 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACSetParameterFuzzTest() local
35 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACSetParameterFuzzTest()
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACSetParameterFuzzTest()
37 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACSetParameterFuzzTest()
38 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACSetParameterFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACSetParameterFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACSetParameterFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACSetParameterFuzzTest()
43 OH_AudioCodec_SetParameter(source, format); in AudioAACSetParameterFuzzTest()
47 if (format ! in AudioAACSetParameterFuzzTest()
87 OH_AVFormat *format = OH_AVFormat_Create(); AudioFlacSetParameterFuzzTest() local
139 OH_AVFormat *format = OH_AVFormat_Create(); AudioMP3SetParameterFuzzTest() local
169 OH_AVFormat *format = OH_AVFormat_Create(); AudioVorbisSetParameterFuzzTest() local
199 OH_AVFormat *format = OH_AVFormat_Create(); AudioLBVCSetParameterFuzzTest() local
251 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRNBSetParameterFuzzTest() local
303 OH_AVFormat *format = OH_AVFormat_Create(); AudioAMRWBSetParameterFuzzTest() local
355 OH_AVFormat *format = OH_AVFormat_Create(); AudioAPESetParameterFuzzTest() local
407 OH_AVFormat *format = OH_AVFormat_Create(); AudioOPUSSetParameterFuzzTest() local
459 OH_AVFormat *format = OH_AVFormat_Create(); AudioG711SetParameterFuzzTest() local
511 OH_AVFormat *format = OH_AVFormat_Create(); AudioVividSetParameterFuzzTest() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
H A DInnerFunctionTest.cpp60 Format format; in runEncode() local
61 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); in runEncode()
62 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE_16000); in runEncode()
63 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, SAMPLE_RATE_128000); in runEncode()
64 format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F32LE); in runEncode()
65 format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_F32LE); in runEncode()
66 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, MONO); in runEncode()
67 format.PutIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, 1); in runEncode()
68 encoderDemo->InnerRunCase(inputFile, outputFile, encoderName.c_str(), format); in runEncode()
70 Format format; in runEncode() local
102 Format format; HWTEST_F() local
138 Format format; HWTEST_F() local
188 Format format; HWTEST_F() local
224 Format format; HWTEST_F() local
260 Format format; HWTEST_F() local
301 Format format; HWTEST_F() local
352 Format format; HWTEST_F() local
383 Format format; HWTEST_F() local
415 Format format; HWTEST_F() local
446 Format format; HWTEST_F() local
[all...]
H A DInnerStablityTest.cpp28 #include "meta/format.h"
107 Format format; in HWTEST_F() local
109 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); in HWTEST_F()
110 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, 44100); in HWTEST_F()
111 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 112000); in HWTEST_F()
112 format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F32LE); in HWTEST_F()
113 format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_F32LE); in HWTEST_F()
114 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, MONO); in HWTEST_F()
116 encoderDemo->InnerConfigure(format); in HWTEST_F()
140 Format format; in HWTEST_F() local
177 Format format; HWTEST_F() local
216 Format format; HWTEST_F() local
253 Format format; HWTEST_F() local
289 Format format; HWTEST_F() local
325 Format format; HWTEST_F() local
369 Format format; HWTEST_F() local
403 Format format; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/
H A DNativeFunctionTest.cpp107 OH_AVFormat* format = OH_AVFormat_Create(); in getAVFormatByEncoder() local
109 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_AAC); in getAVFormatByEncoder()
110 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_AAC); in getAVFormatByEncoder()
111 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder()
112 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder()
113 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in getAVFormatByEncoder()
114 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in getAVFormatByEncoder()
115 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, BITS_RATE_AAC); in getAVFormatByEncoder()
117 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_FLAC); in getAVFormatByEncoder()
118 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RAT in getAVFormatByEncoder()
131 OH_AVFormat* format = getAVFormatByEncoder(encoderName); runEncode() local
143 OH_AVFormat* format = OH_AVFormat_Create(); getAVFormatAAC() local
173 OH_AVFormat* format = OH_AVFormat_Create(); getAVFormatFlac() local
244 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, BITS_RATE_AAC); HWTEST_F() local
286 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, BITS_RATE_AAC); HWTEST_F() local
326 OH_AVFormat* format = getAVFormatAAC(channelCount, sampleRate, bitrateList[i]); HWTEST_F() local
368 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, OH_BitsPerSample::SAMPLE_S16LE, BITS_RATE_FLAC); HWTEST_F() local
419 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); HWTEST_F() local
470 OH_AVFormat* format = getAVFormatFlac(channelCount, sampleRate, sampleFormat, bitrate); HWTEST_F() local
497 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
529 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
563 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
595 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
629 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
733 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
764 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
794 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
824 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
854 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeParamCheckTest.cpp91 * @tc.name : OH_AudioEncoder_Configure - format(MD_KEY_BITRATE) check
100 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
101 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
102 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
103 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
104 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
105 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in HWTEST_F()
106 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); in HWTEST_F()
107 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
109 OH_AVErrCode ret = encoderDemo->NativeConfigure(handle, format); in HWTEST_F()
159 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
218 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
277 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
338 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
399 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
460 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
511 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
564 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
617 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
670 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
712 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
771 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
829 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeNullCheckTest.cpp154 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
155 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
156 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
157 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
158 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in HWTEST_F()
159 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in HWTEST_F()
160 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); in HWTEST_F()
161 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
163 OH_AVErrCode ret = encoderDemo->NativeConfigure(nullptr, format); in HWTEST_F()
166 OH_AVFormat_Destroy(format); in HWTEST_F()
202 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
239 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
279 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
322 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
384 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
427 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
470 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
513 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
562 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
606 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
650 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/include/
H A Dge_log.h33 #define LOGI(format, ...) HILOG_INFO(LOG_CORE, format, ##__VA_ARGS__)
34 #define LOGD(format, ...) HILOG_DEBUG(LOG_CORE, format, ##__VA_ARGS__)
35 #define LOGE(format, ...) HILOG_ERROR(LOG_CORE, format, ##__VA_ARGS__)
36 #define LOGW(format, ...) HILOG_WARN(LOG_CORE, format, ##__VA_ARGS__)
37 #define LOGF(format, ...) HILOG_FATAL(LOG_CORE, format, ##__VA_ARGS_
[all...]
/foundation/multimedia/media_foundation/src/capi/
H A Dnative_avformat.cpp44 FALSE_RETURN_V_MSG_E(audioFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateAudioFormat()
55 FALSE_RETURN_V_MSG_E(videoFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateVideoFormat()
62 void OH_AVFormat_Destroy(struct OH_AVFormat *format) in OH_AVFormat_Destroy() argument
64 delete format; in OH_AVFormat_Destroy()
69 FALSE_RETURN_V_MSG_E(to != nullptr, false, "to format is nullptr!"); in OH_AVFormat_Copy()
71 FALSE_RETURN_V_MSG_E(from != nullptr, false, "from format is nullptr!"); in OH_AVFormat_Copy()
78 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue() argument
80 FALSE_RETURN_V_MSG_E(format != nullptr, false, "input format is nullptr!"); in OH_AVFormat_SetIntValue()
81 FALSE_RETURN_V_MSG_E(format in OH_AVFormat_SetIntValue()
87 OH_AVFormat_SetLongValue(struct OH_AVFormat *format, const char *key, int64_t value) OH_AVFormat_SetLongValue() argument
96 OH_AVFormat_SetFloatValue(struct OH_AVFormat *format, const char *key, float value) OH_AVFormat_SetFloatValue() argument
105 OH_AVFormat_SetDoubleValue(struct OH_AVFormat *format, const char *key, double value) OH_AVFormat_SetDoubleValue() argument
114 OH_AVFormat_SetStringValue(struct OH_AVFormat *format, const char *key, const char *value) OH_AVFormat_SetStringValue() argument
124 OH_AVFormat_SetBuffer(struct OH_AVFormat *format, const char *key, const uint8_t *addr, size_t size) OH_AVFormat_SetBuffer() argument
135 OH_AVFormat_GetIntValue(struct OH_AVFormat *format, const char *key, int32_t *out) OH_AVFormat_GetIntValue() argument
145 OH_AVFormat_GetLongValue(struct OH_AVFormat *format, const char *key, int64_t *out) OH_AVFormat_GetLongValue() argument
155 OH_AVFormat_GetFloatValue(struct OH_AVFormat *format, const char *key, float *out) OH_AVFormat_GetFloatValue() argument
165 OH_AVFormat_GetDoubleValue(struct OH_AVFormat *format, const char *key, double *out) OH_AVFormat_GetDoubleValue() argument
175 OH_AVFormat_GetStringValue(struct OH_AVFormat *format, const char *key, const char **out) OH_AVFormat_GetStringValue() argument
208 OH_AVFormat_GetBuffer(struct OH_AVFormat *format, const char *key, uint8_t **addr, size_t *size) OH_AVFormat_GetBuffer() argument
219 OH_AVFormat_DumpInfo(struct OH_AVFormat *format) OH_AVFormat_DumpInfo() argument
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/
H A Dconfigure_test.cpp83 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
84 ASSERT_NE(NULL, format); in HWTEST_F()
85 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH); in HWTEST_F()
86 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); in HWTEST_F()
87 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_NV12); in HWTEST_F()
88 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, -1); in HWTEST_F()
89 ASSERT_EQ(AV_ERR_OK, OH_VideoDecoder_Configure(vdec, format)); in HWTEST_F()
91 OH_AVFormat_Destroy(format); in HWTEST_F()
103 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
104 ASSERT_NE(NULL, format); in HWTEST_F()
123 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
143 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_encoder_avbuffer_capi_unit_test.cpp127 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
130 (void)format; in OnOutputFormatChanged()
188 OH_AVFormat *format = nullptr; member in OHOS::MediaAVCodec::AudioEncoderBufferCapiUnitTest
543 format = OH_AVFormat_Create(); in HWTEST_F()
544 EXPECT_NE(nullptr, format); in HWTEST_F()
545 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), SAMPLE_RATE); in HWTEST_F()
546 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in HWTEST_F()
549 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_MAX_INPUT_SIZE.data(), 0); in HWTEST_F()
550 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), CHANNEL_COUNT); in HWTEST_F()
551 EXPECT_EQ(OH_AVErrCode::AV_ERR_OK, OH_AudioCodec_Configure(audioEnc_, format)); // norma in HWTEST_F()
[all...]
H A Daudio_encoder_capi_unit_test.cpp111 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
114 (void)format; in OnOutputFormatChanged()
170 OH_AVFormat *format; member in OHOS::MediaAVCodec::AudioCodeCapiEncoderUnitTest
293 format = OH_AVFormat_Create(); in ProceFunc()
340 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), OPUS_CHANNEL_COUNT); in HWTEST_F()
341 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), OPUS_SAMPLE_RATE); in HWTEST_F()
342 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), OPUS_BITS_RATE); in HWTEST_F()
343 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in HWTEST_F()
345 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_COMPLIANCE_LEVEL.data(), OPUS_COMPLIANCE_LEVEL); in HWTEST_F()
347 EXPECT_EQ(OH_AVErrCode::AV_ERR_OK, OH_AudioEncoder_Configure(audioEnc_, format)); in HWTEST_F()
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeParamCheckTest.cpp115 * @tc.name : OH_AudioDecoder_Configure - format(MD_KEY_BITRATE) check
124 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local
125 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
126 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
127 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
129 OH_AVErrCode ret = decoderDemo->NativeConfigure(handle, format); in HWTEST_F()
133 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, -1); in HWTEST_F()
134 ret = decoderDemo->NativeConfigure(handle, format); in HWTEST_F()
138 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, 1); in HWTEST_F()
139 ret = decoderDemo->NativeConfigure(handle, format); in HWTEST_F()
179 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
234 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
289 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
346 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
403 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
460 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
507 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
556 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
605 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
654 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeFunctionTest.cpp177 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local
178 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode()
179 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode()
180 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in runDecode()
182 decoderDemo->NativeRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode()
183 OH_AVFormat_Destroy(format); in runDecode()
185 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local
186 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode()
187 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode()
189 decoderDemo->NativeRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode()
193 OH_AVFormat* format = OH_AVFormat_Create(); runDecode() local
203 OH_AVFormat* format = OH_AVFormat_Create(); runDecode() local
211 OH_AVFormat* format = OH_AVFormat_Create(); runDecode() local
219 OH_AVFormat* format = OH_AVFormat_Create(); runDecode() local
261 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
307 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
353 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
399 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
444 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
488 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
533 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
578 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
624 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
670 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
717 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
762 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
807 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
851 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
894 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
936 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
979 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1010 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1040 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1080 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1123 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1165 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1208 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1236 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1263 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1302 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1505 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1532 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1558 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1585 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1611 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1637 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
1664 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
H A DNativeNullCheckTest.cpp154 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
155 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); in HWTEST_F()
156 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); in HWTEST_F()
157 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, 4); in HWTEST_F()
158 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); in HWTEST_F()
160 OH_AVErrCode ret = decoderDemo->NativeConfigure(nullptr, format); in HWTEST_F()
163 OH_AVFormat_Destroy(format); in HWTEST_F()
171 * @tc.name : OH_AudioDecoder_Configure - format check
199 OH_AVFormat* format = OH_AVFormat_Create(); in HWTEST_F() local
200 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUN in HWTEST_F()
233 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
270 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
310 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
369 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
409 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
449 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
489 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
535 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
576 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
617 OH_AVFormat* format = OH_AVFormat_Create(); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/
H A DInnerFunctionTest.cpp79 Format format; in runDecode() local
84 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, CHANNEL_COUNT); in runDecode()
85 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE); in runDecode()
86 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, BITS_RATE); in runDecode()
87 format.PutIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_IS_ADTS); in runDecode()
88 decoderDemo->InnerRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode()
90 Format format; in runDecode() local
94 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, CHANNEL_COUNT); in runDecode()
95 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE); in runDecode()
96 format in runDecode()
99 Format format; runDecode() local
110 Format format; runDecode() local
140 Format format; HWTEST_F() local
172 Format format; HWTEST_F() local
203 Format format; HWTEST_F() local
234 Format format; HWTEST_F() local
266 Format format; HWTEST_F() local
298 Format format; HWTEST_F() local
329 Format format; HWTEST_F() local
360 Format format; HWTEST_F() local
392 Format format; HWTEST_F() local
424 Format format; HWTEST_F() local
455 Format format; HWTEST_F() local
485 Format format; HWTEST_F() local
516 Format format; HWTEST_F() local
544 Format format; HWTEST_F() local
575 Format format; HWTEST_F() local
600 Format format; HWTEST_F() local
626 Format format; HWTEST_F() local
647 Format format; HWTEST_F() local
677 Format format; HWTEST_F() local
703 Format format; HWTEST_F() local
730 Format format; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/base/log/
H A Dace_trace.cpp27 bool AceTraceBeginWithArgv(const char* format, va_list args) in AceTraceBeginWithArgv() argument
30 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceTraceBeginWithArgv()
37 bool AceTraceBeginWithArgvCommercial(const char* format, va_list args) in AceTraceBeginWithArgvCommercial() argument
40 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceTraceBeginWithArgvCommercial()
47 bool AceTraceBeginWithArgs(const char* format, ...) in AceTraceBeginWithArgs() argument
50 va_start(args, format); in AceTraceBeginWithArgs()
51 bool retVal = AceTraceBeginWithArgv(format, args); in AceTraceBeginWithArgs()
56 void AceCountTraceWidthArgs(int32_t count, const char* format, ...) in AceCountTraceWidthArgs() argument
60 va_start(args, format); in AceCountTraceWidthArgs()
61 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, arg in AceCountTraceWidthArgs()
68 AceScopedTrace(const char* format, ...) AceScopedTrace() argument
83 AceScopedTraceCommercial(const char* format, ...) AceScopedTraceCommercial() argument
98 AceScopedTraceFlag(bool flag, const char* format, ...) AceScopedTraceFlag() argument
115 AceAsyncTraceBeginWithArgv(int32_t taskId, const char* format, va_list args) AceAsyncTraceBeginWithArgv() argument
125 AceAsyncTraceBeginWithArgs(int32_t taskId, char* format, ...) AceAsyncTraceBeginWithArgs() argument
136 AceAsyncScopedTrace(const char* format, ...) AceAsyncScopedTrace() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/common/
H A Drs_log.h40 void RSB_EXPORT RSLogOutput(RSLog::Tag tag, RSLog::Level level, const char* format, ...);
110 #define ROSEN_LOGI(format, ...) \
111 HILOG_INFO(LOG_CORE, format, ##__VA_ARGS__)
112 #define ROSEN_LOGD(format, ...) \
113 HILOG_DEBUG(LOG_CORE, format, ##__VA_ARGS__)
114 #define ROSEN_LOGE(format, ...) \
115 HILOG_ERROR(LOG_CORE, format, ##__VA_ARGS__)
116 #define ROSEN_LOGW(format, ...) \
117 HILOG_WARN(LOG_CORE, format, ##__VA_ARGS__)
118 #define ROSEN_LOGF(format,
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/
H A Dconfigure_test.cpp26 OH_AVFormat *format; member
78 if (format != nullptr) { in TearDown()
79 OH_AVFormat_Destroy(format); in TearDown()
80 format = nullptr; in TearDown()
101 format = OH_AVFormat_Create(); in HWTEST_F()
102 ASSERT_NE(nullptr, format); in HWTEST_F()
103 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); in HWTEST_F()
104 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in HWTEST_F()
105 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_NV12); in HWTEST_F()
106 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDT in HWTEST_F()
[all...]
H A Dfunc_test.cpp36 OH_AVFormat *format; member
85 if (format != nullptr) { in TearDown()
86 OH_AVFormat_Destroy(format); in TearDown()
87 format = nullptr; in TearDown()
188 * @tc.name : set color format
195 format = OH_AVFormat_Create(); in HWTEST_F()
196 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_RANGE_FLAG, 1)); in HWTEST_F()
197 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_COLOR_PRIMARIES, OH_ColorPrimary::COLOR_PRIMARY_BT709)); in HWTEST_F()
198 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_TRANSFER_CHARACTERISTICS, in HWTEST_F()
200 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_MATRIX_COEFFICIENT in HWTEST_F()
[all...]
H A Dapi_test.cpp37 OH_AVFormat *format; member
106 if (format != nullptr) { in TearDown()
107 OH_AVFormat_Destroy(format); in TearDown()
108 format = nullptr; in TearDown()
253 format = OH_AVFormat_Create(); in HWTEST_F()
254 ASSERT_NE(nullptr, format); in HWTEST_F()
255 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, 100000); in HWTEST_F()
256 ret = OH_VideoEncoder_Configure(venc_, format); in HWTEST_F()
315 format = OH_VideoEncoder_GetOutputDescription(nullptr); in HWTEST_F()
316 ASSERT_EQ(format, nullpt in HWTEST_F()
[all...]
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_unit_test.cpp35 void HEncoderCallback::OnOutputFormatChanged(const Format &format) in OnOutputFormatChanged() argument
257 Format format; in HWTEST_F() local
258 format.PutStringValue(MediaDescriptionKey::MD_KEY_CODEC_MIME, CodecMimeType::VIDEO_AVC); in HWTEST_F()
259 format.PutIntValue(MediaDescriptionKey::MD_KEY_WIDTH, 1024); // 1024 width of the video in HWTEST_F()
260 format.PutIntValue(MediaDescriptionKey::MD_KEY_HEIGHT, 768); // 768 hight of the video in HWTEST_F()
261 format.PutIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::RGBA)); in HWTEST_F()
262 format.PutDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, 30.0); // 30.0 frame rate in HWTEST_F()
263 format.PutIntValue(MediaDescriptionKey::MD_KEY_VIDEO_ENCODE_BITRATE_MODE, VBR); in HWTEST_F()
264 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 3000000); // 3000000 bit rate in HWTEST_F()
265 format in HWTEST_F()
279 Format format; HWTEST_F() local
301 Format format; HWTEST_F() local
322 Format format; HWTEST_F() local
343 Format format; HWTEST_F() local
359 Format format; HWTEST_F() local
375 Format format; HWTEST_F() local
391 Format format; HWTEST_F() local
407 Format format; HWTEST_F() local
424 Format format; HWTEST_F() local
441 Format format; HWTEST_F() local
461 Format format; HWTEST_F() local
481 Format format; HWTEST_F() local
500 Format format; HWTEST_F() local
520 Format format; HWTEST_F() local
540 Format format; HWTEST_F() local
559 Format format; HWTEST_F() local
579 Format format; HWTEST_F() local
599 Format format; HWTEST_F() local
623 Format format; HWTEST_F() local
648 Format format; HWTEST_F() local
673 Format format; HWTEST_F() local
700 Format format; HWTEST_F() local
727 Format format; HWTEST_F() local
755 Format format; HWTEST_F() local
779 Format format; HWTEST_F() local
844 Format format; ConfigureAvcEncoder() local
860 Format format; ConfigureHevcEncoder() local
938 Format format; HWTEST_F() local
[all...]
/foundation/resourceschedule/ffrt/src/dfx/log/
H A Dffrt_log_api.h79 #define FFRT_LOGD(format, ...) \
81 constexpr auto fmtPub = convertFmtToPublic("%u:%s:%d " format); \
85 #define FFRT_LOGD(format, ...)
89 #define FFRT_LOGI(format, ...) \
91 constexpr auto fmtPub = convertFmtToPublic("%u:%s:%d " format); \
95 #define FFRT_LOGI(format, ...)
99 #define FFRT_LOGW(format, ...) \
101 constexpr auto fmtPub = convertFmtToPublic("%u:%s:%d " format); \
105 #define FFRT_LOGW(format, ...)
108 #define FFRT_LOGE(format,
[all...]
/foundation/multimedia/av_codec/services/engine/codeclist/
H A Dcodeclist_core.cpp40 bool CodecListCore::CheckBitrate(const Format &format, const CapabilityData &data) in CheckBitrate() argument
43 if (!format.ContainKey("bitrate")) { in CheckBitrate()
44 AVCODEC_LOGD("The bitrate of the format are not specified"); in CheckBitrate()
47 (void)format.GetLongValue("bitrate", targetBitrate); in CheckBitrate()
54 bool CodecListCore::CheckVideoResolution(const Format &format, const CapabilityData &data) in CheckVideoResolution() argument
58 if ((!format.ContainKey("width")) || (!format.ContainKey("height"))) { in CheckVideoResolution()
59 AVCODEC_LOGD("The width and height of the format are not specified"); in CheckVideoResolution()
62 (void)format.GetIntValue("width", targetWidth); in CheckVideoResolution()
63 (void)format in CheckVideoResolution()
71 CheckVideoPixelFormat(const Format &format, const CapabilityData &data) CheckVideoPixelFormat() argument
85 CheckVideoFrameRate(const Format &format, const CapabilityData &data) CheckVideoFrameRate() argument
118 CheckAudioChannel(const Format &format, const CapabilityData &data) CheckAudioChannel() argument
132 CheckAudioSampleRate(const Format &format, const CapabilityData &data) CheckAudioSampleRate() argument
146 IsVideoCapSupport(const Format &format, const CapabilityData &data) IsVideoCapSupport() argument
152 IsAudioCapSupport(const Format &format, const CapabilityData &data) IsAudioCapSupport() argument
158 FindCodec(const Format &format, bool isEncoder) FindCodec() argument
207 FindEncoder(const Format &format) FindEncoder() argument
212 FindDecoder(const Format &format) FindDecoder() argument
[all...]
/foundation/CastEngine/castengine_wifi_display/services/codec/src/
H A Dcodec_factory.cpp24 std::shared_ptr<AudioEncoder> CodecFactory::CreateAudioEncoder(CodecId format) in CreateAudioEncoder() argument
29 switch (format) { in CreateAudioEncoder()
43 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateAudioEncoder()
50 std::shared_ptr<AudioDecoder> CodecFactory::CreateAudioDecoder(CodecId format) in CreateAudioDecoder() argument
54 switch (format) { in CreateAudioDecoder()
65 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateAudioDecoder()
72 std::shared_ptr<VideoEncoder> CodecFactory::CreateVideoEncoder(CodecId format) in CreateVideoEncoder() argument
76 switch (format) { in CreateVideoEncoder()
91 CreateVideoDecoder(CodecId format) CreateVideoDecoder() argument
[all...]

Completed in 17 milliseconds

12345678910>>...67