Ignore:
Timestamp:
Jan 4, 2005, 6:06:04 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • fixed a bug in the SDL code: alpha mask should be set to 0.
  • implemented filter_black_stuff to remove black dots.
  • allow threshold to be negative in filter_equalize; in this case, invert colours.
  • implemented filter_crop.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/common.h

    r402 r413  
    2828
    2929/* image operations */
    30 struct image *image_load(char *name);
     30struct image *image_load(const char *name);
    3131struct image *image_new(int width, int height);
    3232void image_free(struct image *img);
     33void image_save(struct image *img, const char *name);
    3334void image_display(struct image *img);
    3435int getgray(struct image *img, int x, int y, int *g);
     
    4041struct image *filter_fill_holes(struct image *img);
    4142struct image *filter_dup(struct image *img);
     43struct image *filter_black_stuff(struct image *img);
    4244struct image *filter_detect_lines(struct image *img);
    4345struct image *filter_equalize(struct image *img, int threshold);
     
    4648struct image *filter_median(struct image *img);
    4749struct image *filter_contrast(struct image *img);
     50struct image *filter_crop(struct image *img,
     51                          int xmin, int ymin, int xmax, int ymax);
    4852int filter_count(struct image *img);
    4953
Note: See TracChangeset for help on using the changeset viewer.