@lumen5/beamcoder 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +41 -0
- package/.circleci/images/testbeam10-4.1/Dockerfile +12 -0
- package/.circleci/test_image/Dockerfile +14 -0
- package/.circleci/test_image/build.md +13 -0
- package/.eslintrc.js +27 -0
- package/.github/workflows/publish-npm.yml +33 -0
- package/LICENSE +674 -0
- package/README.md +1221 -0
- package/beamstreams.js +692 -0
- package/binding.gyp +103 -0
- package/examples/encode_h264.js +92 -0
- package/examples/jpeg_app.js +55 -0
- package/examples/jpeg_filter_app.js +101 -0
- package/examples/make_mp4.js +123 -0
- package/images/beamcoder_small.jpg +0 -0
- package/index.d.ts +83 -0
- package/index.js +44 -0
- package/install_ffmpeg.js +240 -0
- package/package.json +45 -0
- package/scratch/decode_aac.js +38 -0
- package/scratch/decode_avci.js +50 -0
- package/scratch/decode_hevc.js +38 -0
- package/scratch/decode_pcm.js +39 -0
- package/scratch/make_a_mux.js +68 -0
- package/scratch/muxer.js +74 -0
- package/scratch/read_wav.js +35 -0
- package/scratch/simple_mux.js +39 -0
- package/scratch/stream_avci.js +127 -0
- package/scratch/stream_mp4.js +78 -0
- package/scratch/stream_mux.js +47 -0
- package/scratch/stream_pcm.js +82 -0
- package/scratch/stream_wav.js +62 -0
- package/scripts/install_beamcoder_dependencies.sh +25 -0
- package/src/adaptor.h +202 -0
- package/src/beamcoder.cc +937 -0
- package/src/beamcoder_util.cc +1129 -0
- package/src/beamcoder_util.h +206 -0
- package/src/codec.cc +7386 -0
- package/src/codec.h +44 -0
- package/src/codec_par.cc +1818 -0
- package/src/codec_par.h +40 -0
- package/src/decode.cc +569 -0
- package/src/decode.h +75 -0
- package/src/demux.cc +584 -0
- package/src/demux.h +88 -0
- package/src/encode.cc +496 -0
- package/src/encode.h +72 -0
- package/src/filter.cc +1888 -0
- package/src/filter.h +30 -0
- package/src/format.cc +5287 -0
- package/src/format.h +77 -0
- package/src/frame.cc +2681 -0
- package/src/frame.h +52 -0
- package/src/governor.cc +286 -0
- package/src/governor.h +30 -0
- package/src/hwcontext.cc +378 -0
- package/src/hwcontext.h +35 -0
- package/src/log.cc +186 -0
- package/src/log.h +20 -0
- package/src/mux.cc +834 -0
- package/src/mux.h +106 -0
- package/src/packet.cc +762 -0
- package/src/packet.h +49 -0
- package/test/codecParamsSpec.js +148 -0
- package/test/decoderSpec.js +56 -0
- package/test/demuxerSpec.js +41 -0
- package/test/encoderSpec.js +69 -0
- package/test/filtererSpec.js +47 -0
- package/test/formatSpec.js +343 -0
- package/test/frameSpec.js +145 -0
- package/test/introspectionSpec.js +73 -0
- package/test/muxerSpec.js +34 -0
- package/test/packetSpec.js +122 -0
- package/types/Beamstreams.d.ts +98 -0
- package/types/Codec.d.ts +123 -0
- package/types/CodecContext.d.ts +555 -0
- package/types/CodecPar.d.ts +108 -0
- package/types/Decoder.d.ts +137 -0
- package/types/Demuxer.d.ts +113 -0
- package/types/Encoder.d.ts +94 -0
- package/types/Filter.d.ts +324 -0
- package/types/FormatContext.d.ts +380 -0
- package/types/Frame.d.ts +295 -0
- package/types/HWContext.d.ts +62 -0
- package/types/Muxer.d.ts +121 -0
- package/types/Packet.d.ts +82 -0
- package/types/PrivClass.d.ts +25 -0
- package/types/Stream.d.ts +165 -0
package/src/frame.h
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Aerostat Beam Coder - Node.JS native mappings for FFmpeg.
|
|
3
|
+
Copyright (C) 2019 Streampunk Media Ltd.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
https://www.streampunk.media/ mailto:furnace@streampunk.media
|
|
19
|
+
14 Ormiscaig, Aultbea, Achnasheen, IV22 2JJ U.K.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
#ifndef FRAME_H
|
|
23
|
+
#define FRAME_H
|
|
24
|
+
|
|
25
|
+
#include "node_api.h"
|
|
26
|
+
#include "beamcoder_util.h"
|
|
27
|
+
#include <vector>
|
|
28
|
+
|
|
29
|
+
extern "C" {
|
|
30
|
+
#include <libavcodec/avcodec.h>
|
|
31
|
+
#include <libavutil/imgutils.h>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
void frameFinalizer(napi_env env, void* data, void* hint);
|
|
35
|
+
void frameDataFinalizer(napi_env env, void* data, void* hint);
|
|
36
|
+
void frameBufferFinalizer(napi_env env, void* data, void* hint);
|
|
37
|
+
void frameBufferFree(void* opaque, uint8_t* data);
|
|
38
|
+
|
|
39
|
+
struct frameData {
|
|
40
|
+
AVFrame* frame = nullptr;
|
|
41
|
+
std::vector<napi_ref> dataRefs;
|
|
42
|
+
int32_t extSize = 0;
|
|
43
|
+
~frameData() {
|
|
44
|
+
// printf("Freeing frame with pts = %i\n", frame->pts);
|
|
45
|
+
av_frame_free(&frame);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
napi_value makeFrame(napi_env env, napi_callback_info info);
|
|
50
|
+
napi_status fromAVFrame(napi_env env, frameData* frame, napi_value* result);
|
|
51
|
+
|
|
52
|
+
#endif // FRAME_H
|
package/src/governor.cc
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Aerostat Beam Coder - Node.js native bindings for FFmpeg.
|
|
3
|
+
Copyright (C) 2019 Streampunk Media Ltd.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
https://www.streampunk.media/ mailto:furnace@streampunk.media
|
|
19
|
+
14 Ormiscaig, Aultbea, Achnasheen, IV22 2JJ U.K.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
#include "governor.h"
|
|
23
|
+
#include "adaptor.h"
|
|
24
|
+
|
|
25
|
+
struct readCarrier : carrier {
|
|
26
|
+
~readCarrier() { }
|
|
27
|
+
Adaptor *adaptor;
|
|
28
|
+
uint32_t readLen;
|
|
29
|
+
void *readBuf = nullptr;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
void readFinalizer(napi_env env, void* data, void* hint) {
|
|
33
|
+
free(data);
|
|
34
|
+
|
|
35
|
+
int64_t externalMemory;
|
|
36
|
+
int32_t len = (int32_t)(uint64_t)hint;
|
|
37
|
+
if (BEAMCODER_SUCCESS != napi_adjust_external_memory(env, -len, &externalMemory))
|
|
38
|
+
printf("Error finalising governor read buffer %p, len %d\n", data, len);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void readExecute(napi_env env, void *data) {
|
|
42
|
+
readCarrier* c = (readCarrier*) data;
|
|
43
|
+
size_t bytesRead = 0;
|
|
44
|
+
c->readBuf = c->adaptor->read(c->readLen, &bytesRead);
|
|
45
|
+
c->readLen = bytesRead;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
void readComplete(napi_env env, napi_status asyncStatus, void *data) {
|
|
49
|
+
readCarrier* c = (readCarrier*) data;
|
|
50
|
+
napi_value result;
|
|
51
|
+
int64_t externalMemory;
|
|
52
|
+
|
|
53
|
+
if (asyncStatus != napi_ok) {
|
|
54
|
+
c->status = asyncStatus;
|
|
55
|
+
c->errorMsg = "governor read failed to complete.";
|
|
56
|
+
}
|
|
57
|
+
REJECT_STATUS;
|
|
58
|
+
|
|
59
|
+
c->status = napi_create_external_buffer(env, c->readLen, c->readBuf, readFinalizer, (void*)(uint64_t)c->readLen, &result);
|
|
60
|
+
REJECT_STATUS;
|
|
61
|
+
|
|
62
|
+
c->status = napi_adjust_external_memory(env, c->readLen, &externalMemory);
|
|
63
|
+
REJECT_STATUS;
|
|
64
|
+
|
|
65
|
+
napi_status status;
|
|
66
|
+
status = napi_resolve_deferred(env, c->_deferred, result);
|
|
67
|
+
FLOATING_STATUS;
|
|
68
|
+
|
|
69
|
+
tidyCarrier(env, c);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
napi_value read(napi_env env, napi_callback_info info) {
|
|
73
|
+
napi_value promise;
|
|
74
|
+
readCarrier* c = new readCarrier;
|
|
75
|
+
|
|
76
|
+
c->status = napi_create_promise(env, &c->_deferred, &promise);
|
|
77
|
+
REJECT_RETURN;
|
|
78
|
+
|
|
79
|
+
size_t argc = 1;
|
|
80
|
+
napi_value args[1];
|
|
81
|
+
napi_value governorValue;
|
|
82
|
+
napi_status status = napi_get_cb_info(env, info, &argc, args, &governorValue, nullptr);
|
|
83
|
+
REJECT_RETURN;
|
|
84
|
+
|
|
85
|
+
if (argc < 1) {
|
|
86
|
+
REJECT_ERROR_RETURN("governor read requires a read length as its argument.",
|
|
87
|
+
BEAMCODER_INVALID_ARGS);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
status = napi_get_value_uint32(env, args[0], &c->readLen);
|
|
91
|
+
CHECK_STATUS;
|
|
92
|
+
|
|
93
|
+
napi_value adaptorValue;
|
|
94
|
+
status = napi_get_named_property(env, governorValue, "_adaptor", &adaptorValue);
|
|
95
|
+
CHECK_STATUS;
|
|
96
|
+
|
|
97
|
+
status = napi_get_value_external(env, adaptorValue, (void **)&c->adaptor);
|
|
98
|
+
CHECK_STATUS;
|
|
99
|
+
|
|
100
|
+
napi_value resourceName;
|
|
101
|
+
c->status = napi_create_string_utf8(env, "Read", NAPI_AUTO_LENGTH, &resourceName);
|
|
102
|
+
REJECT_RETURN;
|
|
103
|
+
c->status = napi_create_async_work(env, nullptr, resourceName, readExecute,
|
|
104
|
+
readComplete, c, &c->_request);
|
|
105
|
+
REJECT_RETURN;
|
|
106
|
+
c->status = napi_queue_async_work(env, c->_request);
|
|
107
|
+
REJECT_RETURN;
|
|
108
|
+
|
|
109
|
+
return promise;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
struct writeCarrier : carrier {
|
|
113
|
+
~writeCarrier() { }
|
|
114
|
+
Adaptor *adaptor;
|
|
115
|
+
napi_ref bufRef;
|
|
116
|
+
void *buf;
|
|
117
|
+
size_t bufLen;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
void writeExecute(napi_env env, void *data) {
|
|
121
|
+
writeCarrier* c = (writeCarrier*) data;
|
|
122
|
+
c->adaptor->write(c->bufRef, c->buf, c->bufLen);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
void writeComplete(napi_env env, napi_status asyncStatus, void *data) {
|
|
126
|
+
writeCarrier* c = (writeCarrier*) data;
|
|
127
|
+
napi_value result;
|
|
128
|
+
if (asyncStatus != napi_ok) {
|
|
129
|
+
c->status = asyncStatus;
|
|
130
|
+
c->errorMsg = "governor write failed to complete.";
|
|
131
|
+
}
|
|
132
|
+
REJECT_STATUS;
|
|
133
|
+
|
|
134
|
+
c->status = napi_get_null(env, &result);
|
|
135
|
+
REJECT_STATUS;
|
|
136
|
+
|
|
137
|
+
napi_status status;
|
|
138
|
+
status = napi_resolve_deferred(env, c->_deferred, result);
|
|
139
|
+
FLOATING_STATUS;
|
|
140
|
+
|
|
141
|
+
tidyCarrier(env, c);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
napi_value write(napi_env env, napi_callback_info info) {
|
|
145
|
+
napi_value promise;
|
|
146
|
+
writeCarrier* c = new writeCarrier;
|
|
147
|
+
|
|
148
|
+
c->status = napi_create_promise(env, &c->_deferred, &promise);
|
|
149
|
+
REJECT_RETURN;
|
|
150
|
+
|
|
151
|
+
size_t argc = 1;
|
|
152
|
+
napi_value args[1];
|
|
153
|
+
napi_value governorValue;
|
|
154
|
+
napi_status status = napi_get_cb_info(env, info, &argc, args, &governorValue, nullptr);
|
|
155
|
+
REJECT_RETURN;
|
|
156
|
+
|
|
157
|
+
if (argc < 1) {
|
|
158
|
+
REJECT_ERROR_RETURN("governor write requires a buffer as its argument.",
|
|
159
|
+
BEAMCODER_INVALID_ARGS);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
bool isBuffer;
|
|
163
|
+
c->status = napi_is_buffer(env, args[0], &isBuffer);
|
|
164
|
+
REJECT_RETURN;
|
|
165
|
+
if (!isBuffer) {
|
|
166
|
+
REJECT_ERROR_RETURN("governor write expects a node buffer",
|
|
167
|
+
BEAMCODER_INVALID_ARGS);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
napi_value bufferValue = args[0];
|
|
171
|
+
c->status = napi_create_reference(env, bufferValue, 1, &c->bufRef);
|
|
172
|
+
REJECT_RETURN;
|
|
173
|
+
|
|
174
|
+
c->status = napi_get_buffer_info(env, bufferValue, &c->buf, &c->bufLen);
|
|
175
|
+
REJECT_RETURN;
|
|
176
|
+
|
|
177
|
+
napi_value adaptorValue;
|
|
178
|
+
status = napi_get_named_property(env, governorValue, "_adaptor", &adaptorValue);
|
|
179
|
+
CHECK_STATUS;
|
|
180
|
+
|
|
181
|
+
status = napi_get_value_external(env, adaptorValue, (void **)&c->adaptor);
|
|
182
|
+
CHECK_STATUS;
|
|
183
|
+
|
|
184
|
+
napi_value resourceName;
|
|
185
|
+
c->status = napi_create_string_utf8(env, "Write", NAPI_AUTO_LENGTH, &resourceName);
|
|
186
|
+
REJECT_RETURN;
|
|
187
|
+
c->status = napi_create_async_work(env, nullptr, resourceName, writeExecute,
|
|
188
|
+
writeComplete, c, &c->_request);
|
|
189
|
+
REJECT_RETURN;
|
|
190
|
+
c->status = napi_queue_async_work(env, c->_request);
|
|
191
|
+
REJECT_RETURN;
|
|
192
|
+
|
|
193
|
+
return promise;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
napi_value finish(napi_env env, napi_callback_info info) {
|
|
197
|
+
size_t argc = 0;
|
|
198
|
+
napi_value governorValue;
|
|
199
|
+
napi_status status = napi_get_cb_info(env, info, &argc, nullptr, &governorValue, nullptr);
|
|
200
|
+
CHECK_STATUS;
|
|
201
|
+
|
|
202
|
+
napi_value adaptorValue;
|
|
203
|
+
status = napi_get_named_property(env, governorValue, "_adaptor", &adaptorValue);
|
|
204
|
+
CHECK_STATUS;
|
|
205
|
+
|
|
206
|
+
Adaptor *adaptor = nullptr;
|
|
207
|
+
status = napi_get_value_external(env, adaptorValue, (void **)&adaptor);
|
|
208
|
+
CHECK_STATUS;
|
|
209
|
+
|
|
210
|
+
adaptor->finish();
|
|
211
|
+
|
|
212
|
+
napi_value result;
|
|
213
|
+
napi_get_undefined(env, &result);
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
void finalizeAdaptor(napi_env env, void* data, void* hint) {
|
|
218
|
+
Adaptor *adaptor = (Adaptor *)data;
|
|
219
|
+
delete adaptor;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
napi_value governor(napi_env env, napi_callback_info info) {
|
|
223
|
+
napi_status status;
|
|
224
|
+
|
|
225
|
+
napi_value args[1];
|
|
226
|
+
size_t argc = 1;
|
|
227
|
+
status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr);
|
|
228
|
+
CHECK_STATUS;
|
|
229
|
+
|
|
230
|
+
if (argc != 1) {
|
|
231
|
+
status = napi_throw_error(env, nullptr, "Wrong number of arguments to create governer.");
|
|
232
|
+
return nullptr;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
napi_value params = args[0];
|
|
236
|
+
napi_valuetype t;
|
|
237
|
+
status = napi_typeof(env, params, &t);
|
|
238
|
+
CHECK_STATUS;
|
|
239
|
+
if (t != napi_object) {
|
|
240
|
+
status = napi_throw_type_error(env, nullptr, "governer parameters must be an object.");
|
|
241
|
+
return nullptr;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
napi_value highWaterMarkVal;
|
|
245
|
+
int32_t highWaterMark = 3;
|
|
246
|
+
status = napi_get_named_property(env, params, "highWaterMark", &highWaterMarkVal);
|
|
247
|
+
CHECK_STATUS;
|
|
248
|
+
status = napi_typeof(env, highWaterMarkVal, &t);
|
|
249
|
+
CHECK_STATUS;
|
|
250
|
+
if (t == napi_number) {
|
|
251
|
+
status = napi_get_value_int32(env, highWaterMarkVal, &highWaterMark);
|
|
252
|
+
CHECK_STATUS;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
napi_value governorObj;
|
|
256
|
+
status = napi_create_object(env, &governorObj);
|
|
257
|
+
CHECK_STATUS;
|
|
258
|
+
|
|
259
|
+
Adaptor *adaptor = new Adaptor(highWaterMark);
|
|
260
|
+
|
|
261
|
+
napi_value adaptorValue;
|
|
262
|
+
status = napi_create_external(env, adaptor, finalizeAdaptor, nullptr, &adaptorValue);
|
|
263
|
+
CHECK_STATUS;
|
|
264
|
+
status = napi_set_named_property(env, governorObj, "_adaptor", adaptorValue);
|
|
265
|
+
CHECK_STATUS;
|
|
266
|
+
|
|
267
|
+
napi_value readValue;
|
|
268
|
+
status = napi_create_function(env, "read", NAPI_AUTO_LENGTH, read, nullptr, &readValue);
|
|
269
|
+
CHECK_STATUS;
|
|
270
|
+
status = napi_set_named_property(env, governorObj, "read", readValue);
|
|
271
|
+
CHECK_STATUS;
|
|
272
|
+
|
|
273
|
+
napi_value writeValue;
|
|
274
|
+
status = napi_create_function(env, "write", NAPI_AUTO_LENGTH, write, nullptr, &writeValue);
|
|
275
|
+
CHECK_STATUS;
|
|
276
|
+
status = napi_set_named_property(env, governorObj, "write", writeValue);
|
|
277
|
+
CHECK_STATUS;
|
|
278
|
+
|
|
279
|
+
napi_value finishValue;
|
|
280
|
+
status = napi_create_function(env, "finish", NAPI_AUTO_LENGTH, finish, nullptr, &finishValue);
|
|
281
|
+
CHECK_STATUS;
|
|
282
|
+
status = napi_set_named_property(env, governorObj, "finish", finishValue);
|
|
283
|
+
CHECK_STATUS;
|
|
284
|
+
|
|
285
|
+
return governorObj;
|
|
286
|
+
}
|
package/src/governor.h
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Aerostat Beam Coder - Node.js native bindings for FFmpeg.
|
|
3
|
+
Copyright (C) 2019 Streampunk Media Ltd.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
https://www.streampunk.media/ mailto:furnace@streampunk.media
|
|
19
|
+
14 Ormiscaig, Aultbea, Achnasheen, IV22 2JJ U.K.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
#ifndef GOVERNER_H
|
|
23
|
+
#define GOVERNER_H
|
|
24
|
+
|
|
25
|
+
#include "beamcoder_util.h"
|
|
26
|
+
#include "node_api.h"
|
|
27
|
+
|
|
28
|
+
napi_value governor(napi_env env, napi_callback_info info);
|
|
29
|
+
|
|
30
|
+
#endif // GOVERNER_H
|