-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfile-raw-load.h
56 lines (50 loc) · 1.34 KB
/
file-raw-load.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Copyright (C) 2011 Marcel Tunnissen
*
* License: GNU Public License version 2
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not,
* check at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or write to the Free Software Foundation,
*/
#ifndef __FILE_RAW_LOAD_H
#define __FILE_RAW_LOAD_H
#define ERROR -1
#define OK 0
enum pix_fmt {
RGB_565 = 0,
RGBA_5551,
RGBA_4444,
RGB_888,
BGR_888,
RGBX_8888,
RGBA_8888,
UYVY_422,
YUYV_422,
nr_of_pix_fmts,
};
#define SIZE_DIM 2
struct raw_data {
guint size[SIZE_DIM];
gboolean checked;
};
void run(
const gchar* plugin_name,
gint nparams,
const GimpParam* param,
gint* nreturn_vals,
GimpParam** return_vals,
enum pix_fmt fmt,
struct raw_data* img_data
);
#endif