Skip to content

Commit

Permalink
[VP] EDSR refactor
Browse files Browse the repository at this point in the history
EDSR refactor

Change-Id: I5ceb25bcb7899cabc1b77bd76d6539d59f79a28d
  • Loading branch information
Yanfeng-Mi authored and intel-mediadev committed Dec 28, 2019
1 parent 7808c48 commit e233d25
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions media_driver/agnostic/common/os/mos_utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -3088,6 +3088,24 @@ static MOS_USER_FEATURE_VALUE MOSUserFeatureDescFields[__MOS_USER_FEATURE_KEY_MA
MOS_USER_FEATURE_VALUE_TYPE_UINT32,
"0",
"For debugging purpose. 0 is to use default setting, 1 means FP32 mode, 2 means Hybrid mode, 3 means FP16 mode"),
MOS_DECLARE_UF_KEY(__VPHAL_ENABLE_SUPER_RESOLUTION_EDSR_ID,
"Enable VP Super Resolution EDSR",
__MEDIA_USER_FEATURE_SUBKEY_INTERNAL,
__MEDIA_USER_FEATURE_SUBKEY_REPORT,
"VP",
MOS_USER_FEATURE_TYPE_USER,
MOS_USER_FEATURE_VALUE_TYPE_BOOL,
"0",
"For debugging purpose. true for enabling VPP super resolution EDSR scaling"),
MOS_DECLARE_UF_KEY(__VPHAL_SUPER_RESOLUTION_EDSR_MODE_ID,
"Super Resolution EDSR Mode",
__MEDIA_USER_FEATURE_SUBKEY_INTERNAL,
__MEDIA_USER_FEATURE_SUBKEY_REPORT,
"VP",
MOS_USER_FEATURE_TYPE_USER,
MOS_USER_FEATURE_VALUE_TYPE_UINT32,
"0",
"For debugging purpose. 0 is to use default setting, 1 means 20 channels, 2 means 24 channels, 3 means 25 channels"),
MOS_DECLARE_UF_KEY_DBGONLY(__MEDIA_USER_FEATURE_VALUE_SUPER_RESOLUTION_ENABLE_ID,
"SuperResolutionEnable",
__MEDIA_USER_FEATURE_SUBKEY_INTERNAL,
Expand Down
2 changes: 2 additions & 0 deletions media_driver/agnostic/common/os/mos_utilities_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ typedef enum _MOS_USER_FEATURE_VALUE_ID
__VPHAL_VEBOX_DISABLE_TEMPORAL_DENOISE_FILTER_ID,
__VPHAL_ENABLE_SUPER_RESOLUTION_ID,
__VPHAL_SUPER_RESOLUTION_MODE_ID,
__VPHAL_ENABLE_SUPER_RESOLUTION_EDSR_ID,
__VPHAL_SUPER_RESOLUTION_EDSR_MODE_ID,
#if (_DEBUG || _RELEASE_INTERNAL)
__VPHAL_COMP_8TAP_ADAPTIVE_ENABLE_ID,
__VPHAL_RNDR_FORCE_VP_DECOMPRESSED_OUTPUT_ID,
Expand Down

0 comments on commit e233d25

Please sign in to comment.