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

Last change on this file since 382 was 382, checked in by Sam Hocevar, 18 years ago
  • proper headers.
  • Property svn:keywords set to Id
File size: 851 bytes
Line 
1/*
2 * commin.h: common stuff
3 * $Id: common.h 382 2005-01-03 10:43:31Z 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 * slashdot_decode(char *image);
22
23/* image operations */
24struct image * load_image(char *name);
25struct image * new_image(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
Note: See TracBrowser for help on using the repository browser.