From 4114f87af993991c7aab55ff86be3003d43244f3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 21 Jan 2023 19:30:25 +0100 Subject: Add render context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 common.h (limited to 'common.h') diff --git a/common.h b/common.h new file mode 100644 index 0000000..e53843a --- /dev/null +++ b/common.h @@ -0,0 +1,35 @@ +/* See LICENSE file for copyright and license details. */ +#ifndef LIBGLITTER_COMMON_H +#define LIBGLITTER_COMMON_H + +#include "libglitter.h" +#include +#include +#include +#include + + +#define RENDER_METHOD_VSTRIPS 0 +#define RENDER_METHOD_HSTRIPS 1 +#define RENDER_METHOD_SIMPLE 2 +#define RENDER_METHOD_GENERIC 3 + + +struct libglitter_context { +}; + +struct libglitter_render_context { + const uint8_t *restrict cellmap; + const uint8_t *restrict ncellvalues; + size_t noutputs; + size_t rowsize; + size_t widthmul; + size_t heightmul; + uint8_t render_method; + size_t cells[3][2]; + double *restrict cellweights_double; + float *restrict cellweights_float; +}; + + +#endif -- cgit v1.2.3-70-g09d2