Lines Matching defs:format
52 void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData)
55 (void)format;
261 bool ADecDemoAuto::InitFormat(OH_AVFormat *format)
266 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AAC_IS_ADTS.data(),
268 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(),
273 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(),
278 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(),
281 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(),
283 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), channelCount);
284 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), sampleRate);
285 DEMO_CHECK_AND_RETURN_RET_LOG(Configure(format) == AVCS_ERR_OK, false,
362 int32_t ADecDemoAuto::Configure(OH_AVFormat* format)
364 return OH_AudioDecoder_Configure(audioDec_, format);
581 OH_AVFormat* format = OH_AVFormat_Create();
582 auto res = InitFormat(format);
602 if (format != nullptr) {
603 OH_AVFormat_Destroy(format);
604 format = nullptr;