/foundation/multimedia/av_codec/test/fuzztest/audiodecoderconfigure_fuzzer/ |
H A D | audiodecoderConfigure_fuzzer.cpp | 35 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 D | audiodecoderSetParameter_fuzzer.cpp | 32 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 D | InnerFunctionTest.cpp | 60 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 D | InnerStablityTest.cpp | 28 #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 D | NativeFunctionTest.cpp | 107 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 D | NativeParamCheckTest.cpp | 91 * @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 D | NativeNullCheckTest.cpp | 154 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/multimedia/media_foundation/src/capi/ |
H A D | native_avformat.cpp | 44 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...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_fourcc.c | 4 * DRM core format related functions 38 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 114 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 144 * Internal function to query information for a given format. See 147 const struct drm_format_info *__drm_format_info(u32 format) in __drm_format_info() argument 150 { .format = DRM_FORMAT_C1, .depth = 1, .num_planes = 1, in __drm_format_info() 152 { .format = DRM_FORMAT_C2, .depth = 2, .num_planes = 1, in __drm_format_info() 154 { .format = DRM_FORMAT_C4, .depth = 4, .num_planes = 1, in __drm_format_info() 156 { .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1, .is_color_indexed = true }, in __drm_format_info() 157 { .format in __drm_format_info() 336 drm_format_info(u32 format) drm_format_info() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/audio_test/ |
H A D | audio_encoder_avbuffer_capi_unit_test.cpp | 127 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 D | audio_encoder_capi_unit_test.cpp | 111 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...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_fourcc.c | 4 * DRM core format related functions 43 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 104 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 134 * drm_get_format_name - fill a string with a drm fourcc format's name 135 * @format: format to compute name of 138 const char *drm_get_format_name(uint32_t format, struct drm_format_name_buf *buf) in drm_get_format_name() argument 142 printable_char(format & 0xff), in drm_get_format_name() 143 printable_char((format >> 8) & 0xff), in drm_get_format_name() 144 printable_char((format >> 1 in drm_get_format_name() 157 __drm_format_info(u32 format) __drm_format_info() argument 319 drm_format_info(u32 format) drm_format_info() argument [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeParamCheckTest.cpp | 115 * @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 D | NativeFunctionTest.cpp | 177 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...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerFunctionTest.cpp | 79 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/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/ |
H A D | configure_test.cpp | 83 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/graphic/graphic_2d/rosen/modules/graphics_effect/include/ |
H A D | ge_log.h | 33 #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/av_codec/test/moduletest/vcodec/encoder/src/ |
H A D | func_test.cpp | 36 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 D | configure_test.cpp | 26 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 D | api_test.cpp | 37 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 D | hencoder_unit_test.cpp | 35 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...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | utprint.c | 309 * format - Standard printf format 318 int vsnprintf(char *string, acpi_size size, const char *format, va_list args) in vsnprintf() argument 342 for (; *format; ++format) { in vsnprintf() 343 if (*format != '%') { in vsnprintf() 344 pos = acpi_ut_bound_string_output(pos, end, *format); in vsnprintf() 354 ++format; in vsnprintf() 355 if (*format == '#') { in vsnprintf() 357 } else if (*format in vsnprintf() 571 snprintf(char *string, acpi_size size, const char *format, ...) snprintf() argument 596 sprintf(char *string, const char *format, ...) sprintf() argument 622 vprintf(const char *format, va_list args) vprintf() argument 649 printf(const char *format, ...) printf() argument 675 vfprintf(FILE * file, const char *format, va_list args) vfprintf() argument 703 fprintf(FILE * file, const char *format, ...) fprintf() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | utprint.c | 309 * format - Standard printf format 318 int vsnprintf(char *string, acpi_size size, const char *format, va_list args) in vsnprintf() argument 342 for (; *format; ++format) { in vsnprintf() 343 if (*format != '%') { in vsnprintf() 344 pos = acpi_ut_bound_string_output(pos, end, *format); in vsnprintf() 354 ++format; in vsnprintf() 355 if (*format == '#') { in vsnprintf() 357 } else if (*format in vsnprintf() 571 snprintf(char *string, acpi_size size, const char *format, ...) snprintf() argument 596 sprintf(char *string, const char *format, ...) sprintf() argument 622 vprintf(const char *format, va_list args) vprintf() argument 649 printf(const char *format, ...) printf() argument 675 vfprintf(FILE * file, const char *format, va_list args) vfprintf() argument 703 fprintf(FILE * file, const char *format, ...) fprintf() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_drm.c | 69 struct v4l2_subdev_format format; in vsp1_du_insert_uif() local 85 memset(&format, 0, sizeof(format)); in vsp1_du_insert_uif() 86 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; in vsp1_du_insert_uif() 87 format.pad = prev_pad; in vsp1_du_insert_uif() 89 ret = v4l2_subdev_call(&prev->subdev, pad, get_fmt, NULL, &format); in vsp1_du_insert_uif() 93 format.pad = UIF_PAD_SINK; in vsp1_du_insert_uif() 95 ret = v4l2_subdev_call(&uif->subdev, pad, set_fmt, NULL, &format); in vsp1_du_insert_uif() 99 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on UIF sink\n", in vsp1_du_insert_uif() 100 __func__, format in vsp1_du_insert_uif() 122 struct v4l2_subdev_format format; vsp1_du_pipeline_setup_rpf() local 232 struct v4l2_subdev_format format = { vsp1_du_pipeline_setup_brx() local 480 struct v4l2_subdev_format format = { 0, }; vsp1_du_pipeline_setup_output() local [all...] |
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | ace_trace.cpp | 27 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...] |