summaryrefslogtreecommitdiffstats
path: root/plug-ins/map-object/map-object-image.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:13:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:13:10 +0000
commit3c57dd931145d43f2b0aef96c4d178135956bf91 (patch)
tree3de698981e9f0cc2c4f9569b19a5f3595e741f6b /plug-ins/map-object/map-object-image.h
parentInitial commit. (diff)
downloadgimp-3c57dd931145d43f2b0aef96c4d178135956bf91.tar.xz
gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.zip
Adding upstream version 2.10.36.upstream/2.10.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plug-ins/map-object/map-object-image.h')
-rw-r--r--plug-ins/map-object/map-object-image.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/plug-ins/map-object/map-object-image.h b/plug-ins/map-object/map-object-image.h
new file mode 100644
index 0000000..189204b
--- /dev/null
+++ b/plug-ins/map-object/map-object-image.h
@@ -0,0 +1,62 @@
+#ifndef __MAPOBJECT_IMAGE_H__
+#define __MAPOBJECT_IMAGE_H__
+
+/* Externally visible variables */
+/* ============================ */
+
+extern gint32 input_drawable_id;
+extern gint32 output_drawable_id;
+extern GeglBuffer *source_buffer;
+extern GeglBuffer *dest_buffer;
+
+extern gint32 box_drawable_ids[6];
+extern GeglBuffer *box_buffers[6];
+
+extern gint32 cylinder_drawable_ids[2];
+extern GeglBuffer *cylinder_buffers[2];
+
+extern guchar *preview_rgb_data;
+extern gint preview_rgb_stride;
+extern cairo_surface_t *preview_surface;
+
+extern glong maxcounter, old_depth, max_depth;
+extern gint width, height, image_id;
+extern GimpRGB background;
+
+extern gint border_x1, border_y1, border_x2, border_y2;
+
+/* Externally visible functions */
+/* ============================ */
+
+extern gint image_setup (gint32 drawable_id,
+ gint interactive);
+extern glong in_xy_to_index (gint x,
+ gint y);
+extern glong out_xy_to_index (gint x,
+ gint y);
+extern gint checkbounds (gint x,
+ gint y);
+extern GimpRGB peek (gint x,
+ gint y);
+extern void poke (gint x,
+ gint y,
+ GimpRGB *color,
+ gpointer user_data);
+extern GimpVector3 int_to_pos (gint x,
+ gint y);
+extern void pos_to_int (gdouble x,
+ gdouble y,
+ gint *scr_x,
+ gint *scr_y);
+
+extern GimpRGB get_image_color (gdouble u,
+ gdouble v,
+ gint *inside);
+extern GimpRGB get_box_image_color (gint image,
+ gdouble u,
+ gdouble v);
+extern GimpRGB get_cylinder_image_color (gint image,
+ gdouble u,
+ gdouble v);
+
+#endif /* __MAPOBJECT_IMAGE_H__ */