close Warning: Failed to sync with repository "(default)": database is locked; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.

source: pwntcha/trunk/src/common.h @ 387

Last change on this file since 387 was 387, checked in by Sam Hocevar, 15 years ago
  • renamed a few functions
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 * commin.h: common stuff
3 * $Id: common.h 387 2005-01-03 15:29:46Z sam $
4 *
5 * Copyright: (c) 2004 Sam Hocevar <sam@zoy.org>
6 *   This program is free software; you can redistribute it and/or
7 *   modify it under the terms of the Do What The Fuck You Want To
8 *   Public License as published by Banlu Kemiyatorn. See
9 *   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
10 */
11
12/* image structure */
13struct image
14{
15    int width, height, pitch, channels;
16    unsigned char *pixels;
17    void *priv;
18};
19
20/* available CAPTCHA decoders */
21char * decode_slashdot(struct image *img);
22
23/* image operations */
24struct image * image_load(char *name);
25struct image * image_new(int width, int height);
26int getgray(struct image *img, int x, int y, int *g);
27int getpixel(struct image *img, int x, int y, int *r, int *g, int *b);
28int setpixel(struct image *img, int x, int y, int r, int g, int b);
29
30/* image filters */
31void filter_flood_fill(struct image *img, int x, int y, int r, int g, int b);
32struct image *filter_fill_holes(struct image *img);
33struct image *filter_detect_lines(struct image *img);
34struct image *filter_equalize(struct image *img);
35struct image *filter_trick(struct image *img);
36struct image *filter_smooth(struct image *img);
37struct image *filter_median(struct image *img);
38
Note: See TracBrowser for help on using the repository browser.