Logo Search packages:      
Sourcecode: librasterlite version File versions  Download package

local void select_part_type ( pixel_set set )

Select partition type

This function selects type of the set.

Parameters:
setSet
Returns:
VOID

Definition at line 264 of file speck.c.

References TYPE_EMPTY, TYPE_POINT, and TYPE_S.

Referenced by split_set().

{
    /* Guess the set type after split operation */
    if ((set->width == 1) && (set->height == 1)) {
        set->type = TYPE_POINT;
    } else if ((set->width == 0) || (set->height == 0)) {
        set->type = TYPE_EMPTY;
    } else {
        set->type = TYPE_S;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index