hi_vpc_bord_type

Description

Defines the border types for border making.

Prototype

typedef enum {
    HI_BORDER_CONSTANT = 0,
    HI_BORDER_REPLICATE,
    HI_BORDER_REFLECT,
    HI_BORDER_REFLECT_101
} hi_vpc_bord_type;

Members

Member

Description

HI_BORDER_CONSTANT

Constant colored border.

HI_BORDER_REPLICATE

Last element replicated throughout, for example, aaaaaa|a*****h|hhhhhhh, where * indicates any image element.

HI_BORDER_REFLECT

Reflection of border elements (included), for example, ba|abc*******fgh|hg, where * indicates any image element.

HI_BORDER_REFLECT_101

Reflection of border elements (excluded), for example, cb|abc****fgh|gf, where * indicates any image element.

Restrictions

HI_BORDER_REFLECT and HI_BORDER_REFLECT_101 support padding 0–2 pixels only. Separate argument checks are needed. HI_BORDER_CONSTANT and HI_BORDER_REPLICATE allow padding to 4096 x 4096.