forked from tmarrinan/node-demux
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnode-videodemux.h
44 lines (34 loc) · 885 Bytes
/
node-videodemux.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
#ifndef NODE_VIDEODEMUX_H
#define NODE_VIDEODEMUX_H
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/imgutils.h>
}
#include <string>
#include <vector>
#include <nan.h>
#include <node.h>
#include <node_buffer.h>
#include "loadworker.h"
#include "demuxworker.h"
#include "seekworker.h"
class VideoDemux : public Nan::ObjectWrap {
public:
static NAN_MODULE_INIT(Init);
private:
explicit VideoDemux();
~VideoDemux();
static NAN_METHOD(New);
static NAN_METHOD(LoadVideo);
static NAN_METHOD(StartDemuxing);
static NAN_METHOD(DemuxFrame);
static NAN_METHOD(PauseDemuxing);
static NAN_METHOD(StopDemuxing);
static NAN_METHOD(SeekVideo);
static NAN_METHOD(On);
static NAN_METHOD(IsBusy);
static v8::Persistent<v8::FunctionTemplate> constructor;
DemuxBaton *baton;
};
#endif // NODE_VIDEODEMUX_H