Last change
on this file since 382 was
382,
checked in by Sam Hocevar, 18 years ago
|
|
-
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 */ |
---|
13 | struct image |
---|
14 | { |
---|
15 | int width, height, pitch, channels; |
---|
16 | unsigned char *pixels; |
---|
17 | void *priv; |
---|
18 | }; |
---|
19 | |
---|
20 | /* available CAPTCHA decoders */ |
---|
21 | char * slashdot_decode(char *image); |
---|
22 | |
---|
23 | /* image operations */ |
---|
24 | struct image * load_image(char *name); |
---|
25 | struct image * new_image(int width, int height); |
---|
26 | int getgray(struct image *img, int x, int y, int *g); |
---|
27 | int getpixel(struct image *img, int x, int y, int *r, int *g, int *b); |
---|
28 | int 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.