From 63d7007905047e5f488e179a56d861dfaa17aa90 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 1 Oct 2018 21:19:44 +0800 Subject: data_struct -> graph_struct --- csrc/graph_struct.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 csrc/graph_struct.h (limited to 'csrc/graph_struct.h') diff --git a/csrc/graph_struct.h b/csrc/graph_struct.h new file mode 100644 index 0000000..4859508 --- /dev/null +++ b/csrc/graph_struct.h @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2018 Iru Cai + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include + +struct graph_st +{ + int16_t width; + int16_t height; + int16_t x; + int16_t y; + int16_t * gdata; + int16_t data[0]; +}; + +struct graph_st * allocate_graph_st(int w, int h, int x, int y); +struct graph_st * crop_graph(struct graph_st *a1, struct graph_st *a2, int x, int y, int w, int h); -- cgit v1.2.3