From 4b28ca5cb1533cec7d5941d5eb1ea2e5a724ae5c Mon Sep 17 00:00:00 2001 From: David Hilvert Date: Thu, 4 Jun 2009 15:46:16 +0000 Subject: [PATCH] include/ale: Update map operations to always explicate sources, and with new nn map. --- include/ale.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/ale.h b/include/ale.h index 9d4fc8f..fb44d18 100644 --- a/include/ale.h +++ b/include/ale.h @@ -249,6 +249,12 @@ ALE_API_PARAMETER_RW(ale_trans, black, double) ale_image ale_new_image(ale_context ac, int format, int type); /* + * Clone a Libale image. + */ + +ale_image ale_clone_image(ale_image source); + +/* * Set a Libale image to a given OpenCL buffer, host buffer, or file buffer. */ @@ -309,14 +315,19 @@ size_t ale_image_get_depth(ale_image ai); * certain more abstract operations, as a higher-level starting point than * plain OpenCL code. * + * NOTE: source and target arguments may be identical, in which case creation + * of new data structures (e.g., for copies) may occur in the implementation + * prior to mapping. + * * XXX: It is possible that minval and maxval would be better implemented * outside of the API, using other, more generic calls. */ int ale_image_map_0(ale_image target0, const char *map); -int ale_image_map_update_2(ale_image target0, ale_image source1, const char *map); +int ale_image_map_2(ale_image target0, ale_image source0, ale_image source1, const char *map); double ale_image_maxval(ale_image source); double ale_image_minval(ale_image source); +int ale_image_nn_fill(ale_image target, ale_image source); /* * Create a Libale incremental renderer, with given invariant. -- 2.11.4.GIT