summaryrefslogtreecommitdiff
path: root/csrc/mkf/graph_struct.h
blob: 485950817d465a8f25ee945c08585b5ad9b8a5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (C)  2018 Iru Cai <mytbk920423@gmail.com>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include <stdint.h>

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);