1
2This is a little description of all functions contains into
3the LUG Library. There are more functions but aren't
4significatives for you as user.
5
6
7CONVERT
8=======
9
10  gif.c:
11	read_gif_file( char *file_name, bitmap_hdr *bitmap )
12	read_gif( FILE *handle, bitmap_hdr *bitmap )
13	write_gif_file( char *file_name, bitmap_hdr *bitmap )
14	write_gif( FILE *handle, bitmap_hdr *bitmap )
15
16  hf.c:
17	write_hf_file( char *file_name, bitmap_hdr *bitmap )
18	write_hf( FILE *handle, bitmap_hdr *bitmap )
19
20  jpeg.c:
21        write_jpeg_file( char *name, bitmap_hdr *bitmap )
22        write_jpeg( FILE *handle, bitmap_hdr *bitmap )
23        read_jpeg_file( char *name, bitmap_hdr *bitmap )
24        read_jpeg( FILE *handle, bitmap_hdr *bitmap )
25
26  pbm.c:
27	read_pbm_file( char *file_name, bitmap_hdr *bitmap )
28	read_pbm( FILE *handle, bitmap_hdr *bitmap )
29	write_pbm_file( char *file_name, bitmap_hdr *bitmap )
30	write_pbm( FILE *handle, bitmap_hdr *bitmap )
31
32  pcx.c:
33	read_pcx_file( char *file_name, bitmap_hdr *bitmap )
34	read_pcx( FILE *handle, bitmap_hdr *bitmap )
35	write_pcx_file( char *file_name, bitmap_hdr *bitmap )
36	write_pcx( FILE *handle, bitmap_hdr *bitmap )
37
38  pix.c:
39	read_alias_file( char *file_name, bitmap_hdr *bitmap )
40	read_alias( FILE *handle, bitmap_hdr *bitmap )
41	write_alias_file( char *file_name, bitmap_hdr *bitmap )
42	write_alias( FILE *handle, bitmap_hdr *bitmap )
43
44  ps.c:
45        write_ps_file( char *name, bitmap_hdr *image )
46        write_ps_file_dimensions( char *name, bitmap_hdr *image, double width_cms, double length_cms )
47
48  raw.c:
49	read24bitmap( char *file_name, bitmap_hdr *bitmap )
50	read8bitmap( FILE *handle, bitmap_hdr *bitmap )
51	write24bitmap( char *file_name, bitmap_hdr *bitmap )
52	write8bitmap( FILE *handle, bitmap_hdr *bitmap )
53
54  rgb.c:
55        read_rgb_file( char *name, bitmap_hdr *bitmap, int xsize, int ysize )
56        read_rgb( FILE *handle, bitmap_hdr *bitmap, int xsize, int ysize )
57        write_rgb_file( char *name, bitmap_hdr *image )
58        write_rgb( FILE *handle, bitmap_hdr *bitmap )
59
60  rla.c:
61	read_rla_file( char *file_name, bitmap_hdr *bitmap )
62	read_rla( FILE *handle, bitmap_hdr *bitmap )
63	write_rla_file( char *file_name, bitmap_hdr *bitmap )
64	write_rla( FILE *handle, bitmap_hdr *bitmap )
65
66  rle.c:
67	read_rle_file( char *file_name, bitmap_hdr *bitmap )
68	read_rle( FILE *handle, bitmap_hdr *bitmap )
69	write_rle_file( char *file_name, bitmap_hdr *bitmap )
70	write_rle( FILE *handle, bitmap_hdr *bitmap )
71
72  sgi.c:
73	read_sgi_file( char *file_name, bitmap_hdr *bitmap )
74	write_sgi_file( char *file_name, bitmap_hdr *bitmap )
75
76  tga.c:
77	read_tga_file( char *file_name, bitmap_hdr *bitmap )
78	read_tga( FILE *handle, bitmap_hdr *bitmap )
79	write_tga_file( char *file_name, bitmap_hdr *bitmap )
80	write_tga( FILE *handle, bitmap_hdr *bitmap )
81        write_tga_rle( FILE *handle, bitmap_hdr *bitmap )
82
83  tiff.c:
84	read_tiff_file( char *file_name, bitmap_hdr *bitmap )
85	write_tiff_file( char *file_name, bitmap_hdr *bitmap )
86
87
88
89
90INTERNAL LIBRARY
91================
92
93  bitmap.c:
94	allocatebitmap( bitmap_hdr *image, int xsize, int ysize, int depth, int colors )
95	freebitmap( bitmap_hdr *image )
96	copy_bitmap( bitmap_hdr *source, bitmap_hdr *target )
97
98  general.c:
99	int no_bits( int colors )
100	char *basename( char *string )
101	short *bytetoshort( byte *source, short *target, int size )
102	byte *shorttobyte( short *source, byte *target, int size )
103	byte *floattobyte( float *source, byte *target, int size )
104	float *bytetofloat( byte *source, float *target, int size )
105	int Atoi( char *string )
106	double Atod( char *string )
107	isnumber( char *string )
108	Uncompress( char *name, char *tmp_file_name )
109	Compress( char *name )
110	compute_levels( int colors )
111
112  in_out.c:
113	FILE *Fopen( char *name, char *mode )
114	Fclose( FILE *handle )
115	rm_compress()
116	char *read_file( FILE *handle, int *lenght )
117	long filelen( FILE *handle )
118
119  memory.c:
120	char *Malloc( int size )
121	Free( void *ptr )
122
123
124
125
126VIEWERS
127=======
128
129  hp.c:
130	show_bitmap( char *name, bitmap_hdr *bitmap, int ditherflag )
131
132  linux.c:
133	show_bitmap( char *name, bitmap_hdr *bitmap, int ditherflag )
134
135  pc.c:
136	show_bitmap( char *name, bitmap_hdr *bitmap, int ditherflag )
137
138  sgi.c:
139	show_bitmap( char *name, bitmap_hdr *bitmap, int ditherflag )
140
141  vfr.c: ( SGI )
142	write_vfr( bitmap_hdr *bitmap, resetVFR, char *VFRbuffername )
143
144  x11.c:
145	show_bitmap_x11( char *name, bitmap_hdr *bitmap )
146
147
148
149
150UTILITIES
151=========
152
153
154  adjust.c:
155	adjust_bitmap( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, int newx, int newy, int noblur )
156
157  blur.c:
158	blur_bitmap( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
159
160  change.c:
161	changecolor( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, int cR, int cG, int cB, int nR, int nG, int nB, int distance )
162
163  chroma.c:
164	chroma_bitmaps( bitmap_hdr *basebitmap, bitmap_hdr *superbitmap, bitmap_hdr *outbitmap )
165	chroma( bitmap_hdr *base, bitmap_hdr *super )
166
167  cut.c:
168	cut_bitmap( bitmap_hdr *outbitmap, bitmap_hdr *inbitmap, int xini, int yini, int xsize, int ysize )
169
170  dither.c:
171	dither_image( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, int levels, int gamma )
172
173  flip.c:
174	flip_image( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
175
176  gamma.c:
177	gamma_correction( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, double gamma )
178
179  histoequal.c:
180	histogram_equalization( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
181
182  hsl.c:
183	hsl_to_rgb_buffer( double *h, double *s, double *l, byte *r, byte *g, byte *b, int size )
184	rgb_to_hsl_buffer( byte *r, byte *g, byte *b, double *h, double *s, double *l, size )
185	RGB_to_HSL( byte r, byte g, byte b, double *h, double *s, double *l )
186	HSL_to_RGB( double h, double s, double l, byte *r, byte *g, byte *b )
187
188  mask.c:
189	chroma_mask( bitmap_hdr *base, bitmap_hdr *mask, bitmap_hdr *super, bitmap_hdr *outbitmap )
190	chroma_shadow_mask( bitmap_hdr *base, bitmap_hdr *mask, bitmap_hdr *super, bitmap_hdr *outbitmap )
191	mask_change_color( bitmap_hdr *base, bitmap_hdr *mask, bitmap_hdr *outbitmap, newr, newg, newb )
192	mask_change_to_bw( bitmap_hdr *base, bitmap_hdr *mask, bitmap_hdr *outbitmap )
193        mask_darken_color( bitmap_hdr *base, bitmap_hdr *mask, bitmap_hdr *outbitmap )
194        fade_mask( bitmap_hdr *base, bitmap_hdr *super, bitmap_hdr *mask, bitmap_hdr *out )
195
196  medianfilter.c:
197	medianfilter( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
198
199  mirror.c:
200	mirror_image( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
201
202  paste.c:
203	paste( bitmap_hdr *base, bitmap_hdr *super, int xpos, int ypos )
204	center_image( bitmap_hdr *base, bitmap_hdr *super )
205
206  quantize.c:
207	quantize( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, int no_colors )
208
209  rotate.c:
210	rotate_bitmap( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap, double degrees )
211	rotate90_image( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
212
213  sharpen.c:
214	sharpen_bitmap( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
215
216  solid.c:
217	create_solid_image( bitmap_hdr *image, int xsize, int ysize, int r, int g, int b )
218
219  to24.c:
220	to24( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
221
222  tobw.c:
223	tobw( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
224	byte *create_bw_pallete()
225	byte *cmap_to_bw( bitmap_hdr *image )
226	rgbtobw( r, g, b, position, size )
227
228  tohalftone.c:
229	tohalftone( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
230	bw_to_halftone( int x, int y, int position )
231
232  toinverse.c:
233	toinverse( bitmap_hdr *inbitmap, bitmap_hdr *outbitmap )
234	byte *cmap_to_inverse( bitmap_hdr *image )
235
236
237-----
238
239I don't know if I'll update this file in upcoming releases. Now, there
240is a manual (wow!) so ... read it!, please.
241
242If you get some bug, have some sugestion or you add new functions,
243please contact with me.
244
245
246Cheers.
247
248
249--
250
251                     ===================================
252                                 Raul Rivero
253                        Vicerrectorado de Estudiantes
254                            Universidad de Oviedo
255                              Arguelles, 39, 2o.
256                                33003 - Oviedo
257                                    Spain
258                      ---------------------------------
259                          rivero@pinon.ccu.uniovi.es
260                      ---------------------------------
261                        "Es muy duro ser romantica  y
262                         ninfomana a la vez", Ariadna
263                         Gil en el corto El Columpio.
264                     ===================================
265