Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (25 sloc) 1.01 KB
#ifndef FIXED_VIDEO_H
#define FIXED_VIDEO_H
#include <node.h>
#include "video_encoder.h"
class FixedVideo : public node::ObjectWrap {
VideoEncoder videoEncoder;
public:
FixedVideo(int width, int height);
static void Initialize(v8::Handle<v8::Object> target);
void NewFrame(const unsigned char *data);
void SetOutputFile(const char *fileName);
void SetQuality(int quality);
void SetFrameRate(int frameRate);
void SetKeyFrameInterval(int keyFrameInterval);
void End();
protected:
static v8::Handle<v8::Value> New(const v8::Arguments &args);
static v8::Handle<v8::Value> NewFrame(const v8::Arguments &args);
static v8::Handle<v8::Value> SetOutputFile(const v8::Arguments &args);
static v8::Handle<v8::Value> SetQuality(const v8::Arguments &args);
static v8::Handle<v8::Value> SetFrameRate(const v8::Arguments &args);
static v8::Handle<v8::Value> SetKeyFrameInterval(const v8::Arguments &args);
static v8::Handle<v8::Value> End(const v8::Arguments &args);
};
#endif