Home
last modified time | relevance | path

Searched refs:videoDecoderOut (Results 1 - 6 of 6) sorted by relevance

/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/
H A Dhistreamer_ability_parser_test.cpp338 * @tc.desc: Verify the FromJson(const cJSON *jsonObj, VideoDecoderOut &videoDecoderOut) function
348 VideoDecoderOut videoDecoderOut; in HWTEST_F() local
350 FromJson(jsonObject, videoDecoderOut); in HWTEST_F()
351 EXPECT_TRUE(videoDecoderOut.mime.empty()); in HWTEST_F()
354 FromJson(jsonObject, videoDecoderOut); in HWTEST_F()
356 EXPECT_EQ(VIDEO_DECODEROUT_MIME, videoDecoderOut.mime); in HWTEST_F()
357 EXPECT_TRUE(videoDecoderOut.pixel_fmt.empty()); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/
H A Dhistreamer_ability_querier.h140 void ToJson(cJSON *jsonObject, const VideoDecoderOut &videoDecoderOut);
141 void FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut);
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/
H A Dhistreamer_ability_querier_test.cpp557 * @tc.desc: Verify the FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut) function.
565 VideoDecoderOut videoDecoderOut; in HWTEST_F() local
567 FromJson(jsonObject, videoDecoderOut); in HWTEST_F()
568 EXPECT_TRUE(videoDecoderOut.mime.empty()); in HWTEST_F()
574 FromJson(jsonObject2, videoDecoderOut); in HWTEST_F()
575 EXPECT_EQ(VIDEO_DECODEROUT_MIME, videoDecoderOut.mime); in HWTEST_F()
576 EXPECT_TRUE(videoDecoderOut.pixel_fmt.empty()); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp320 void FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut) in FromJson() argument
330 videoDecoderOut.mime = cJSON_GetObjectItem(jsonObject, MIME.c_str())->valuestring; in FromJson()
333 DHLOGE("videoDecoderOut VIDEO_PIXEL_FMT is invalid!"); in FromJson()
340 videoDecoderOut.pixel_fmt.push_back((VideoPixelFormat)(fmt->valuedouble)); in FromJson()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp828 void ToJson(cJSON *jsonObject, const VideoDecoderOut &videoDecoderOut) in ToJson() argument
833 cJSON_AddStringToObject(jsonObject, MIME.c_str(), videoDecoderOut.mime.c_str()); in ToJson()
838 for (auto &fmt : videoDecoderOut.pixel_fmt) { in ToJson()
844 void FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut) in FromJson() argument
857 videoDecoderOut.mime = mimeObj->valuestring; in FromJson()
867 videoDecoderOut.pixel_fmt.push_back(static_cast<VideoPixelFormat>(fmtInfo->valueint)); in FromJson()
/foundation/distributedhardware/distributed_hardware_fwk/utils/include/
H A Dhistreamer_ability_parser.h345 void FromJson(const cJSON *jsonObject, VideoDecoderOut &videoDecoderOut);

Completed in 6 milliseconds