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

Last change on this file since 381 was 381, checked in by Sam Hocevar, 15 years ago
  • first pwntcha commit!
  • Property svn:keywords set to Id
File size: 501 bytes
Line 
1
2/* image structure */
3struct image
4{
5    int width, height, pitch, channels;
6    unsigned char *pixels;
7    void *priv;
8};
9
10/* available CAPTCHA decoders */
11char * slashdot_decode(char *image);
12
13/* image operations */
14struct image * load_image(char *name);
15struct image * new_image(int width, int height);
16int getgray(struct image *img, int x, int y, int *g);
17int getpixel(struct image *img, int x, int y, int *r, int *g, int *b);
18int setpixel(struct image *img, int x, int y, int r, int g, int b);
19
Note: See TracBrowser for help on using the repository browser.