- Timestamp:
- Jan 4, 2005, 2:25:35 AM (18 years ago)
- Location:
- pwntcha/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/common.h
r392 r398 23 23 /* available CAPTCHA decoders */ 24 24 char *decode_phpbb(struct image *img); 25 char *decode_scode(struct image *img); 25 26 char *decode_slashdot(struct image *img); 26 27 char *decode_test(struct image *img); … … 38 39 void filter_flood_fill(struct image *img, int x, int y, int r, int g, int b); 39 40 struct image *filter_fill_holes(struct image *img); 41 struct image *filter_dup(struct image *img); 40 42 struct image *filter_detect_lines(struct image *img); 41 43 struct image *filter_equalize(struct image *img, int threshold); -
pwntcha/trunk/src/filters.c
r389 r398 51 51 if(nextr == oldr && nextg == oldg && nextb == oldb) 52 52 filter_flood_fill(img, x, y - 1, r, g, b); 53 } 54 55 struct image *filter_dup(struct image *img) 56 { 57 struct image *dst; 58 int x, y; 59 int r, g, b; 60 61 dst = image_new(img->width, img->height); 62 63 for(y = 0; y < img->height; y++) 64 for(x = 0; x < img->width; x++) 65 { 66 getpixel(img, x, y, &r, &g, &b); 67 setpixel(dst, x, y, r, g, b); 68 } 69 70 return dst; 53 71 } 54 72
Note: See TracChangeset
for help on using the changeset viewer.