blob: b3a287bb20c6b23f53bb9ec78a0e619bef9296f7 (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#ifndef LIBGLITTER_COMMON_H
#define LIBGLITTER_COMMON_H
#include "libglitter.h"
#include <alloca.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#define RENDER_METHOD_VSTRIPS 0
#define RENDER_METHOD_HSTRIPS 1
#define RENDER_METHOD_SIMPLE 2
#define RENDER_METHOD_GENERIC 3
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
|