Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 1.033 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
Jump to Line
Something went wrong with that request. Please try again.