/foundation/multimedia/av_codec/test/unittest/decoder_filter_test/ |
H A D | audio_decoder_filter_unit_test.cpp | 46 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder =
in HWTEST_F() local 50 audioDecoder->Init(eventReceive, filterCallback);
in HWTEST_F() 51 EXPECT_EQ(audioDecoder->DoPrepare(), Status::OK);
in HWTEST_F() 52 audioDecoder->filterType_ = Pipeline::FilterType::FILTERTYPE_ADEC;
in HWTEST_F() 53 EXPECT_EQ(audioDecoder->DoPrepare(), Status::OK);
in HWTEST_F() 56 audioDecoder->SetParameter(format);
in HWTEST_F() 57 audioDecoder->GetParameter(format);
in HWTEST_F() 58 audioDecoder->OnUpdatedResult(format);
in HWTEST_F() 59 audioDecoder->OnUnlinkedResult(format);
in HWTEST_F() 61 EXPECT_EQ(audioDecoder in HWTEST_F() 80 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder = HWTEST_F() local 96 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder = HWTEST_F() local 118 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder = HWTEST_F() local 137 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder = HWTEST_F() local 149 std::shared_ptr<Pipeline::AudioDecoderFilter> audioDecoder = HWTEST_F() local [all...] |
/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestHiPlayer.cpp | 36 MockObject<AudioDecoderFilter> audioDecoder {}; 48 MOCK_METHOD(audioDecoder, Init).defaults(); 53 MOCK_METHOD(audioDecoder, Prepare).defaults().will(returnValue(ErrorCode::SUCCESS)); 58 MOCK_METHOD(audioDecoder, Start).defaults().will(returnValue(ErrorCode::SUCCESS)); 63 MOCK_METHOD(audioDecoder, Stop).defaults().will(returnValue(ErrorCode::SUCCESS)); 68 MOCK_METHOD(audioDecoder, GetInPort).defaults().will(returnValue(emptyInPort)); 73 MOCK_METHOD(audioDecoder, GetOutPort).defaults().will(returnValue(emptyOutPort)); 78 player->audioDecoder_.reset<AudioDecoderFilter>(audioDecoder); 90 audioDecoder.verify(); 95 audioDecoder [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/ |
H A D | histreamer_ability_parser_test.cpp | 199 * @tc.desc: Verify the FromJson(const cJSON *jsonObj, AudioDecoder &audioDecoder) function 209 AudioDecoder audioDecoder; in HWTEST_F() local 211 FromJson(jsonObject, audioDecoder); in HWTEST_F() 212 EXPECT_TRUE(audioDecoder.name.empty()); in HWTEST_F() 215 FromJson(jsonObject, audioDecoder); in HWTEST_F() 216 EXPECT_EQ(AUDIO_DECODER_NAME, audioDecoder.name); in HWTEST_F() 217 EXPECT_TRUE(audioDecoder.ins.empty()); in HWTEST_F() 226 audioDecoder.ins.push_back(audioDecoderIn); in HWTEST_F() 227 FromJson(jsonObject, audioDecoder); in HWTEST_F() 229 EXPECT_FALSE(audioDecoder in HWTEST_F() 432 AudioDecoder audioDecoder; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/ |
H A D | histreamer_ability_querier_test.cpp | 406 * @tc.desc: Verify the FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) function. 413 AudioDecoder audioDecoder; in HWTEST_F() local 414 ToJson(jsonObject, audioDecoder); in HWTEST_F() 418 FromJson(jsonObject, audioDecoder); in HWTEST_F() 419 EXPECT_TRUE(audioDecoder.name.empty()); in HWTEST_F() 425 FromJson(jsonObject2, audioDecoder); in HWTEST_F() 426 EXPECT_EQ(AUDIO_DECODER_NAME, audioDecoder.name); in HWTEST_F() 427 EXPECT_TRUE(audioDecoder.ins.empty()); in HWTEST_F() 436 audioDecoder.ins.push_back(audioDecoderIn); in HWTEST_F() 437 FromJson(jsonObject2, audioDecoder); in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/ |
H A D | histreamer_ability_querier.cpp | 368 AudioDecoder audioDecoder; in QueryAudioDecoderAbility() local 369 audioDecoder.name = name; in QueryAudioDecoderAbility() 370 audioDecoder.ins = ParseAudioDecoderIn(pluginInfo->inCaps); in QueryAudioDecoderAbility() 371 audioDecoder.outs = ParseAudioDecoderOut(pluginInfo->outCaps); in QueryAudioDecoderAbility() 372 audioDecoders.push_back(audioDecoder); in QueryAudioDecoderAbility() 461 void ToJson(cJSON *jsonObject, const AudioDecoder &audioDecoder) in ToJson() argument 466 cJSON_AddStringToObject(jsonObject, NAME.c_str(), audioDecoder.name.c_str()); in ToJson() 472 for (const auto &in : audioDecoder.ins) { in ToJson() 487 for (const auto &out : audioDecoder.outs) { in ToJson() 499 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) in FromJson() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/ |
H A D | histreamer_ability_querier.h | 90 void ToJson(cJSON *jsonObject, const AudioDecoder &audioDecoder); 91 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder);
|
/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/ |
H A D | native_audio_decoder.cpp | 193 std::shared_ptr<AVCodecAudioDecoder> audioDecoder = AudioDecoderFactory::CreateByMime(mime); in OH_AudioDecoder_CreateByMime() local 194 CHECK_AND_RETURN_RET_LOG(audioDecoder != nullptr, nullptr, "failed to AudioDecoderFactory::CreateByMime"); in OH_AudioDecoder_CreateByMime() 196 struct AudioDecoderObject *object = new(std::nothrow) AudioDecoderObject(audioDecoder); in OH_AudioDecoder_CreateByMime() 207 std::shared_ptr<AVCodecAudioDecoder> audioDecoder = AudioDecoderFactory::CreateByName(name); in OH_AudioDecoder_CreateByName() local 208 CHECK_AND_RETURN_RET_LOG(audioDecoder != nullptr, nullptr, "failed to AudioDecoderFactory::CreateByMime"); in OH_AudioDecoder_CreateByName() 210 struct AudioDecoderObject *object = new(std::nothrow) AudioDecoderObject(audioDecoder); in OH_AudioDecoder_CreateByName() 235 AVCODEC_LOGE("audioDecoder Release failed!"); in OH_AudioDecoder_Destroy() 256 CHECK_AND_RETURN_RET_LOG(audioDecObj->audioDecoder_ != nullptr, AV_ERR_INVALID_VAL, "audioDecoder is nullptr!"); in OH_AudioDecoder_Configure() 260 "audioDecoder Configure failed!"); in OH_AudioDecoder_Configure() 276 "audioDecoder Prepar in OH_AudioDecoder_Prepare() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | histreamer_ability_parser.cpp | 184 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) in FromJson() argument 194 audioDecoder.name = cJSON_GetObjectItem(jsonObject, NAME.c_str())->valuestring; in FromJson() 205 audioDecoder.ins.push_back(in); in FromJson() 216 audioDecoder.outs.push_back(out); in FromJson()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/include/ |
H A D | histreamer_ability_parser.h | 303 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder);
|