blob: 2d20a5e85875d339366ad5be194fd72de88e1210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef RICH4_GRAPH_STRUCT_H_YxnQlWsLYw
#define RICH4_GRAPH_STRUCT_H_YxnQlWsLYw
#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);
#endif
|