hi_v200_vpss_sfy
Description
Defines the 3DNR spatial filtering parameters.
Prototype
typedef struct {
hi_u8 spn6 : 3, sfr : 5;
hi_u8 sbn6 : 3, pbr6 : 5;
hi_u16 srt0 : 5, srt1 : 5, j_mode : 3, de_idx : 3;
hi_u8 sfr6[4], sbr6[2], de_rate;
hi_u8 sfs1, sft1, sbr1;
hi_u8 sfs2, sft2, sbr2;
hi_u8 sfs4, sft4, sbr4;
hi_u16 sth1 : 9, sfn1 : 3, sfn0 : 3, nr_y_en : 1;
hi_u16 sth_d1 : 9, reserved : 7;
hi_u16 sth2 : 9, sfn2 : 3, k_mode : 3, reserved_1 : 1;
hi_u16 sth_d2 : 9, reserved_2 : 7;
hi_u16 sbs_k[32], sds_k[32];
} hi_v200_vpss_sfy;
Members
Member |
Description |
|---|---|
j_mode |
Spatial mixed mode. Value range: [0, 4] |
spn6, sbn6 |
Filter selection in mixed mode. Value range: [0, 5] |
pbr6 |
Blending ratio of spn6 and sbn6 filtering results. This parameter is valid when the mixed mode j_mode is set to 1. Value range: [0, 15] |
sfr6[4] |
Relative strength after sbn6 and spn6 filtering results are blended. Value range: [0, 31] |
de_idx |
Reserved. Only the default value 4 is allowed. |
de_rate |
Reserved. Only the default value 0 is allowed. |
srt0, srt1 |
Reserved. For sfy[0] and sfy[1], this member can only be set to the default value 16. For sfy[2] to sfy[4], this member can only be set to 0. |
sfr |
Relative strength of the pure spatial filter after the spatial filtering result in SFi or SFk mode is reviewed by four filters. Value range: [0, 31] |
sfs1, sfs2, sfs4 |
Strength of filters 1–4 (The strength of filters 3 and 4 is the same). Value range: [0, 255] |
sft1, sft2, sft4 |
Additional strength of filters 1–4 Value range: [0, 255] |
sbr1, sbr2, sbr4, sbr6[2] |
Asymmetric strength of filters 1–4 and 6. sbr1, sbr2, sbr4 value range: [0, 255] sbr6 value range: [0,15] |
sth1, sth2, sth_d1, sth_d2 |
Upper and lower edge preserving thresholds. A smaller value indicates that more edges are reserved and noise is more obvious. A larger value indicates that only strong edges are reserved. Value range: [0, 511] |
sfn0, sfn1, sfn2 |
Filter type (ID) for different image features corresponding to sth1 and sth2. Value range: [0, 6] |
k_mode |
Mode selection for adjusting the NR strength based on the absolute luminance. Valid only for levels 2 and 3. Value range: [0, 3] |
nr_y_en |
Enables or disables each level of NR. 0: disabled; 1: enabled. |
sbs_k[32], sds_k[32] |
NR strength table for the relative dark regions divided based on the absolute luminance threshold of the image. Valid only for levels 2 and 3. Value range: [0, 8191] |
reserved, reserved_1, reserved_2 |
Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code. |