annotate src/similar.h @ 15:3263965d5f9e

##### Note: GQview CVS on sourceforge is not always up to date, please use ##### ##### an offical release when making enhancements and translation updates. ##### Thu Mar 3 14:24:58 2005 John Ellis <johne@verizon.net> * filelist.c, info.c, preferences.c, utilops.c: Use doubles instead of floats whenever possible. * ui_utildlg.c (generic_dialog_add_message): Enable line wrap for message body so specifying newlines is no longer needed. * pan-view.c: Display info dialog when thumbnail caching settings are not optimal.
author gqview
date Thu, 03 Mar 2005 19:32:48 +0000
parents d907d608745f
children f6e307c7bad6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
2 * GQview
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
4 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13 #ifndef SIMILAR_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #define SIMILAR_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
17 typedef struct _ImageSimilarityData ImageSimilarityData;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
18 struct _ImageSimilarityData
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
19 {
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20 guint8 avg_r[1024];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21 guint8 avg_g[1024];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22 guint8 avg_b[1024];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24 gint filled;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25 };
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 ImageSimilarityData *image_sim_new(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 void image_sim_free(ImageSimilarityData *sd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 void image_sim_fill_data(ImageSimilarityData *sd, GdkPixbuf *pixbuf);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32 ImageSimilarityData *image_sim_new_from_pixbuf(GdkPixbuf *pixbuf);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34 gdouble image_sim_compare(ImageSimilarityData *a, ImageSimilarityData *b);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 gdouble image_sim_compare_fast(ImageSimilarityData *a, ImageSimilarityData *b, gdouble min);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 void image_sim_alternate_set(gint enable);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 gint image_sim_alternate_enabled(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 void image_sim_alternate_processing(ImageSimilarityData *sd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43 #endif
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44