hi_vpc_scalar

Description

Defines the image components for image processing.

Prototype

typedef struct {
    hi_double val[4];
} hi_vpc_scalar;

Members

Member

Description

val

Value of each component. Must be in the range of [0, 255].

Currently, you can manually store the values of the R, G, and B components or the values of the Y, U, and V components in sequence. That is, val[0] stores the R component or Y component, val[1] stores the G component or U component, val[2] stores the B component or V component, and val[3] is reserved.

If both the input and output images are in YUV format, the YUV component values are used. Otherwise, the RGB component values are used.