From fe9be4a42abe4c7ddc06881efd47cc61d0e60076 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 26 Jan 2023 21:58:22 +0100 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libglitter.h | 2 ++ libglitter_create_render_context.3 | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/libglitter.h b/libglitter.h index 9b2f30f..27dfd0d 100644 --- a/libglitter.h +++ b/libglitter.h @@ -172,6 +172,8 @@ int libglitter_enable_acceleration(uint64_t, int, void (*)(int, int, void *), vo * the other one is 1, `ncellvalues` will not be used as it is preknown * that all its values are 1; in the future this could also happen for * other situations where `noutputs == widthmul * heightmul` + * + * The returned object will contain references to `cellmap` and `ncellvalues` */ LIBGLITTER_RENDER_CONTEXT *libglitter_create_render_context(size_t, size_t, size_t, size_t, const uint8_t *, const uint8_t *); diff --git a/libglitter_create_render_context.3 b/libglitter_create_render_context.3 index 574ccf6..d69c9f7 100644 --- a/libglitter_create_render_context.3 +++ b/libglitter_create_render_context.3 @@ -99,6 +99,13 @@ shall be the number of times the value appears in .IR cellmap . .RE +.PP +The returned object will contain references to +.I cellmap +and +.IR ncellvalues . +This means that they must remain in memory and +unmodified for the lifetime of the returned object. .SH RETURN VALUES The .BR libglitter_create_render_context () -- cgit v1.2.3-70-g09d2