-
Notifications
You must be signed in to change notification settings - Fork 0
/
transupp.h.js
84 lines (77 loc) · 1.88 KB
/
transupp.h.js
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* This file was automatically generated. It is better to run the generator again, than to manually edit.
*
* @ffi-packager/ffi-generate v2.0.2
* - git commit v2.0.1-1-g2b4030d on branch develop
* - clang version 9.0.1-16
* https://github.com/node-ffi-packager/node-ffi-generate
*
* File:
* - Name: "transupp.h"
* - SHA256: 49735957158bad336124cda9f00d9986f4a3d461d9d40614dd82c83a1c4c1d6d
*
* Generator options:
* - Library: null
* - Single file: true
* - Prefixes: []
* - Compiler arguments: []
*/
const FFI = require("ffi-napi");
const ref = require("ref-napi");
const ArrayType = require("ref-array-di")(ref);
const Struct = require("ref-struct-di")(ref);
const Union = require("ref-union-di")(ref);
const constants = {
JCOPY_OPTION: {
JCOPYOPT_NONE: 0,
JCOPYOPT_COMMENTS: 1,
JCOPYOPT_ALL: 2,
0: "JCOPYOPT_NONE",
1: "JCOPYOPT_COMMENTS",
2: "JCOPYOPT_ALL",
},
JCROP_CODE: {
JCROP_UNSET: 0,
JCROP_POS: 1,
JCROP_NEG: 2,
JCROP_FORCE: 3,
JCROP_REFLECT: 4,
0: "JCROP_UNSET",
1: "JCROP_POS",
2: "JCROP_NEG",
3: "JCROP_FORCE",
4: "JCROP_REFLECT",
},
JXFORM_CODE: {
JXFORM_NONE: 0,
JXFORM_FLIP_H: 1,
JXFORM_FLIP_V: 2,
JXFORM_TRANSPOSE: 3,
JXFORM_TRANSVERSE: 4,
JXFORM_ROT_90: 5,
JXFORM_ROT_180: 6,
JXFORM_ROT_270: 7,
JXFORM_WIPE: 8,
JXFORM_DROP: 9,
0: "JXFORM_NONE",
1: "JXFORM_FLIP_H",
2: "JXFORM_FLIP_V",
3: "JXFORM_TRANSPOSE",
4: "JXFORM_TRANSVERSE",
5: "JXFORM_ROT_90",
6: "JXFORM_ROT_180",
7: "JXFORM_ROT_270",
8: "JXFORM_WIPE",
9: "JXFORM_DROP",
},
};
// NOTE: defining individual types as "global" constants to be able to reference them without any prefix.
const types = {};
const js_uchar = ref.types.uchar;
types["js_uchar"] = js_uchar;
const functions = new FFI.Library(null, {});
module.exports = {
constants,
types,
functions,
};