Ignore:
Timestamp:
Apr 22, 2011, 4:12:48 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: remove dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/image.h

    r521 r523  
    1919#define MAX_DIRTY 200
    2020
    21 extern char const *imerr_messages[];  // correspond to imERRORS
    22 #define imREAD_ERROR            1
    23 #define imINCORRECT_FILETYPE   2
    24 #define imFILE_CORRUPTED       3
    25 #define imFILE_NOT_FOUND       4
    26 #define imMEMORY_ERROR         5
    27 #define imNOT_SUPPORTED        6
    28 #define imWRITE_ERROR          7
    29 #define imMAX_ERROR            7
    30 
    31 int16_t current_error();
    32 void clear_errors();
    33 void set_error(int16_t x);
    34 int16_t last_error();
    3521void image_init();
    3622void image_uninit();
    3723extern linked_list image_list;
    38 
    39 typedef struct image_color_t
    40 {
    41     uint16_t r;
    42     uint16_t g;
    43     uint16_t b;
    44 } image_color;
    45 
    46 class filter;
    47 
    4824
    4925class dirty_rect : public linked_node
     
    11793    image_descriptor *m_special;
    11894
    119     image(spec_entry *e, bFILE *fp);
    120     image(bFILE *fp);
     95    image(bFILE *fp, spec_entry *e = NULL);
    12196    image(vec2i size, uint8_t *page_buffer = NULL, int create_descriptor = 0);
    12297    ~image();
     
    136111        return last_scan + m_size.x;
    137112    }
    138     int32_t total_pixels(uint8_t background=0);
    139113    image *copy(); // makes a copy of an image
    140114    void clear(int16_t color = -1); // -1 is background color
    141     void to_24bit(palette &pal);
    142115
    143116    vec2i Size() const { return m_size; }
     
    197170    image *create_smooth(int16_t smoothness = 1); // 0 no smoothness
    198171    void unpack_scanline(int16_t line, char bitsperpixel = 1);
    199     uint8_t brightest_color(palette *pal);
    200172    void flip_x();
    201173    void flip_y();
    202     uint8_t darkest_color(palette *pal, int16_t noblack = 0);
    203174};
    204175
Note: See TracChangeset for help on using the changeset viewer.