Home
last modified time | relevance | path

Searched refs:widthRange (Results 1 - 8 of 8) sorted by relevance

/foundation/multimedia/av_codec/frameworks/native/capi/common/
H A Dnative_avcapability.cpp390 OH_AVRange *widthRange) in OH_AVCapability_GetVideoWidthRangeForHeight()
392 CHECK_AND_RETURN_RET_LOG(widthRange != nullptr, AV_ERR_INVALID_VAL, in OH_AVCapability_GetVideoWidthRangeForHeight()
395 widthRange->minVal = 0; in OH_AVCapability_GetVideoWidthRangeForHeight()
396 widthRange->maxVal = 0; in OH_AVCapability_GetVideoWidthRangeForHeight()
402 widthRange->minVal = width.minVal; in OH_AVCapability_GetVideoWidthRangeForHeight()
403 widthRange->maxVal = width.maxVal; in OH_AVCapability_GetVideoWidthRangeForHeight()
431 OH_AVErrCode OH_AVCapability_GetVideoWidthRange(OH_AVCapability *capability, OH_AVRange *widthRange) in OH_AVCapability_GetVideoWidthRange() argument
433 CHECK_AND_RETURN_RET_LOG(widthRange != nullptr, AV_ERR_INVALID_VAL, "Get video width range failed: null input"); in OH_AVCapability_GetVideoWidthRange()
435 widthRange->minVal = 0; in OH_AVCapability_GetVideoWidthRange()
436 widthRange in OH_AVCapability_GetVideoWidthRange()
389 OH_AVCapability_GetVideoWidthRangeForHeight(OH_AVCapability *capability, int32_t height, OH_AVRange *widthRange) OH_AVCapability_GetVideoWidthRangeForHeight() argument
[all...]
/foundation/multimedia/av_codec/interfaces/kits/c/
H A Dnative_avcapability.h233 * @param widthRange Output parameter. Video width range
237 * obtained through {@link OH_AVCapability_GetVideoHeightRange}, or the widthRange is nullptr.
241 OH_AVRange *widthRange);
262 * @param widthRange Output parameter. Video width range
265 * {@link AV_ERR_INVALID_VAL}, the capability is invalid, or the widthRange is nullptr.
268 OH_AVErrCode OH_AVCapability_GetVideoWidthRange(OH_AVCapability *capability, OH_AVRange *widthRange);
/foundation/multimedia/av_codec/test/unittest/codeclist_test/
H A Dcodeclist_unit_test.cpp357 Range widthRange = capability_->GetVideoHeightRangeForWidth(DEFAULT_WIDTH); in HWTEST_F() local
358 EXPECT_EQ(DEFAULT_WIDTH_RANGE.minVal, widthRange.minVal); in HWTEST_F()
359 EXPECT_EQ(DEFAULT_WIDTH_RANGE.maxVal, widthRange.maxVal); in HWTEST_F()
391 Range widthRange = capability_->GetVideoWidthRange(); in HWTEST_F() local
392 EXPECT_EQ(DEFAULT_WIDTH_RANGE.minVal, widthRange.minVal); in HWTEST_F()
393 EXPECT_EQ(DEFAULT_WIDTH_RANGE.maxVal, widthRange.maxVal); in HWTEST_F()
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/
H A Dapi_test.cpp1147 OH_AVRange widthRange; in HWTEST_F() local
1149 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1156 ret = OH_AVCapability_GetVideoWidthRange(capability, &widthRange); in HWTEST_F()
1158 cout << "minval=" << widthRange.minVal << " maxval=" << widthRange.maxVal << endl; in HWTEST_F()
1164 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, widthRange.minVal - 1); in HWTEST_F()
1170 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, widthRange.maxVal + 1); in HWTEST_F()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp135 HdiCodecNamespace::RangeValue widthRange = { in IsHardwareDecodeSupported() local
146 isValidSize = (IsValueInRange(widthToCheck, widthRange) && IsValueInRange(heightToCheck, heightRange)) || in IsHardwareDecodeSupported()
147 (IsValueInRange(heightToCheck, widthRange) && IsValueInRange(widthToCheck, heightRange)); in IsHardwareDecodeSupported()
149 isValidSize = IsValueInRange(widthToCheck, widthRange) && IsValueInRange(heightToCheck, heightRange); in IsHardwareDecodeSupported()
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/
H A Dapi_test.cpp1392 OH_AVRange widthRange; in HWTEST_F() local
1394 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1425 OH_AVRange widthRange; in HWTEST_F() local
1427 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1435 ret = OH_AVCapability_GetVideoWidthRange(capability, &widthRange); in HWTEST_F()
1437 ASSERT_GE(widthRange.minVal, 0); in HWTEST_F()
1438 ASSERT_GT(widthRange.maxVal, 0); in HWTEST_F()
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/
H A Dfunc_test.cpp1204 OH_AVRange widthRange; in HWTEST_F() local
1206 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1212 ret = OH_AVCapability_GetVideoWidthRange(capability, &widthRange); in HWTEST_F()
2212 OH_AVRange widthRange; in HWTEST_F() local
2214 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
2220 ret = OH_AVCapability_GetVideoWidthRange(capability, &widthRange); in HWTEST_F()
2224 ASSERT_GE(widthRange.minVal, 0); in HWTEST_F()
2225 ASSERT_GT(widthRange.maxVal, 0); in HWTEST_F()
/foundation/multimedia/av_codec/test/moduletest/vcodec/hevcswdecoder/src/
H A Dapi_test.cpp1476 OH_AVRange widthRange; in HWTEST_F() local
1478 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1513 OH_AVRange widthRange; in HWTEST_F() local
1515 memset_s(&widthRange, sizeof(OH_AVRange), 0, sizeof(OH_AVRange)); in HWTEST_F()
1523 ret = OH_AVCapability_GetVideoWidthRange(capability, &widthRange); in HWTEST_F()
1525 ASSERT_GE(widthRange.minVal, 0); in HWTEST_F()
1526 ASSERT_GT(widthRange.maxVal, 0); in HWTEST_F()

Completed in 17 milliseconds