hi_v200_vpss_tfy

Description

Defines the 3DNR temporal filtering parameter.

Prototype

typedef struct {
    hi_u16  tfs0 : 4,   tdz0 : 10,  tdx0    : 2;
    hi_u16  tfs1 : 4,   tdz1 : 10,  tdx1    : 2;
    hi_u16  sdz0 : 10,  str0 : 5,   dz_mode0 : 1;
    hi_u16  sdz1 : 10,  str1 : 5,   dz_mode1 : 1;
    hi_u8  tss0 : 4,   tsi0 : 4,  tfr0[6];
    hi_u8  tss1 : 4,   tsi1 : 4,  tfr1[6];
    hi_u8  tfrs : 4,   ted  : 2,   ref    : 1,  reserved : 1;
} hi_v200_vpss_tfy;

Members

Member

Description

tfs0, tfs1

Absolute strength of temporal filtering in channel 0 and channel 1.

dz_mode0, dz_mode1

tdz mode selection in channel 0 and channel 1.

Value range: [0, 1].

tdz0, tdz1

When dz_mode0 and dz_mode1 are 0, the texture of the motion region is protected from being affected by temporal filtering. When tdz is set to a larger value, the texture of the motion region is protected and the temporal filtering strength is weakened. When dz_mode0 and dz_mode1 are set to 1, the temporal filtering strength of the motion region is increased. When tdz is increased, the temporal NR capability of the motion region is enhanced.

Value range: [0, 999].

tdx0, tdx1

You are advised to retain the default value 2.

Value range: [0, 3].

str0, str1

Ratio of the filter effect in channel 0 and channel 1 added to the result. A larger value indicates a higher ratio.

Value range: [0, 31].

tfr0[6], tfr1[6]

Relative strength of temporal filtering for the static region in channel 0 and channel 1.

Value range: [0, 31].

tss0, tss1

Blending ratio of the static region in the time domain to the spatial domain in channel 0 and channel 1.

The value range is [0, 15].

tsi0, tsi1

Selection of spatial filtering in channel 0 and channel 1.

Value range: [0, 1].

ref

Enables or disables the reference frame.

0: disabled

1: enabled.

ted

This member is valid only when the temporal takes effect. It is used to control the new content after motion. 0 indicates that the function is disabled and no processing is performed. 1 and 2 indicate that the spatial method is used for processing. 3 indicates that the temporal method is used for processing.

Value range: [0, 3].

tfrs

TFR strength control mode.

Value range: [0, 15].

sdz0, sdsz1

Strength of the constraint filter in channel 0 and channel 1. A smaller value indicates lower strength.

Value range: [0, 999].

reserved

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.