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

local linked_list** alloc_LIS_slots ( int  channel_size )

Allocate array of LIS slots

This function allocates array of LIS slots.

Parameters:
channel_sizeChannel size
Returns:
Pointer to newly allocated structure

Definition at line 357 of file speck.c.

References alloc_linked_list(), number_of_bits(), and xmalloc().

Referenced by speck_decode(), and speck_encode().

{
    linked_list **LIS_slots;
    int n_slots;
    int i;

    /* Think of this structure as a list of lists. Splitting
     * entire list into several slots speed-ups algorithm:
     * one slot for each scale. */
    n_slots = number_of_bits(channel_size);
    LIS_slots = (linked_list **) xmalloc(n_slots * sizeof(linked_list *));

    for (i = 0; i < n_slots; i++) {
        LIS_slots[i] = alloc_linked_list();
    }

    return LIS_slots;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index