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

local filterbank_t* get_fb ( char *  id )

Get filterbank pointer from id

This function gets filterbank pointer from id.

idFilterbank id
Filterbank pointer or NULL if not found

Definition at line 91 of file libmain.c.

References filterbanks.

Referenced by eps_decode_grayscale_block(), eps_decode_truecolor_block(), eps_encode_grayscale_block(), eps_encode_truecolor_block(), read_gs_header(), and read_tc_header().

    int i, n;

    /* Get the number of all available filterbanks */
    for (n = 0; filterbanks[n]; n++);

    /* Find id in the list */
    for (i = 0; i < n; i++) {
        if (strcmp(id, filterbanks[i]->id) == 0) {
            return filterbanks[i];

    return NULL;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index