hi_v200_vpss_mdy

Description

Defines the 3DNR motion detection parameter.

Prototype

typedef struct {
    hi_u16  madz0   : 9,   mai00 : 2,  mai01  : 2, mai02 : 2, reserved : 1;
    hi_u16  madz1   : 9,   mai10 : 2,  mai11  : 2, mai12 : 2, reserved_1 : 1;
    hi_u8  mabr0, mabr1;
    hi_u16  math0   : 10,  mate0 : 4,  matw   : 2;
    hi_u16  math_d0  : 10,  reserved_2 : 6;
    hi_u16  math1   : 10,  reserved_3 : 6;
    hi_u16  math_d1  : 10,  reserved_4 : 6;
    hi_u8  masw    :  4,  mate1 : 4;
    hi_u8  mabw0   :  4,  mabw1 : 4;
    hi_u16  adv_math : 1,   adv_th : 12, reserved_5  : 3;
} hi_v200_vpss_mdy;

Members

Member

Description

mai00, mai01, mai02

Which temporal filter and spatial filter are selected for mixing (channel 0).

Value range: [0, 3].

mai10, mai11, mai12

Which temporal filter and spatial filter are selected for mixing (channel 1).

Value range: [0, 3].

madz0

Upper limit of the image variance, according to which the mai01 result is mixed in mai02.

Value range: [0, 511].

madz1

Upper limit of the image variance, according to which the mai11 result is mixed in mai12.

Value range: [0, 511].

mabr0

Upper limit of the image brightness, according to which the mai01 result is mixed in mai02.

Value range: [0, 255]

mabr1

Upper limit of the image brightness, according to which the mai11 result is mixed in mai12.

Value range: [0, 255]

math0, math_d0

Upper and lower limits of the motion detection threshold (channel 0). math0 indicates the upper limit, and math_d0 indicates the lower limit. The value range of math0 and math_d0 is [0, 999]. math0 must be greater than math_d0. Otherwise, math0 is equal to math_d0 by default.

math1, math_d1

Upper and lower limits of the motion detection threshold (channel 1). math1 indicates the upper limit, and math_d1 indicates the lower limit. The value range of math1 and math_d1 is [0, 999]. math1 must be greater than math_d1. Otherwise, math1 is equal to math_d1 by default.

mate0, mate1

Motion detection index of flat regions in channel 0 and channel 1.

Value range: [0, 8].

matw

Index of trailing suppressing for temporal filtering. A larger value indicates faster motion smearing convergence, and vice versa. You are advised to retain the default value 2.

The value range is [0, 3].

masw

Raindrop prevention index of temporal filtering. A larger value helps reduce the probability of raindrop noises. You are advised not to debug this parameter and set it to the default value 12.

The value range is [0, 15].

mabw0, mabw1

Selection of the window size of the motion detection content in channel 0 and channel 1.

Value range: [0, 9].

adv_math

Enables or disables the advanced MATH mode. 0: disable. 1: enable.

adv_th

Effect of advanced MATH. The value range is [0, 999].

reserved, reserved_1, reserved_2, reserved_3, reserved_4, reserved_5

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.