Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / sushivision / mapping.h
blobf979ca837e7744c970f629e3a0123542a8e914cf
1 /*
3 * sushivision copyright (C) 2006-2007 Monty <monty@xiph.org>
5 * sushivision is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * sushivision is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with sushivision; see the file COPYING. If not, write to the
17 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <sys/types.h>
24 #if __BYTE_ORDER == __LITTLE_ENDIAN
25 typedef struct{
26 unsigned char b;
27 unsigned char g;
28 unsigned char r;
29 unsigned char a;
30 } sv_ccolor_t;
31 #else
32 typedef struct{
33 unsigned char a;
34 unsigned char r;
35 unsigned char g;
36 unsigned char b;
37 } sv_ccolor_t;
38 #endif
40 typedef union {
41 sv_ccolor_t c;
42 u_int32_t u;
43 } sv_ucolor_t;
45 typedef struct{
46 long a;
47 long r;
48 long g;
49 long b;
50 } sv_lcolor_t;
53 typedef struct {
54 int mapnum;
55 float low;
56 float high;
57 float i_range;
59 } sv_mapping_t;
62 extern int _sv_mapping_names();
63 extern char *_sv_mapping_name(int i);
65 extern int _sv_solid_names();
66 extern char *_sv_solid_name(int i);
68 extern void (*mapfunc[])(int, int, sv_lcolor_t *);
69 extern sv_ucolor_t (*mixfunc[])(sv_ucolor_t, sv_ucolor_t);
70 extern sv_propmap_t *mapnames[];
71 extern void (*mapsolid[])(int, int, sv_lcolor_t *);
72 extern sv_ucolor_t (*mixsolid[])(sv_ucolor_t, sv_ucolor_t);
73 extern sv_propmap_t *solidnames[];