Renamed numFrame method to correspond to OpenCV naming

This commit is contained in:
Mikhail Sirotenko 2016-02-07 09:31:29 -05:00
parent cf8d9143f8
commit a45139326d
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local<Object> target) {
Nan::SetPrototypeMethod(ctor, "setHeight", SetHeight); Nan::SetPrototypeMethod(ctor, "setHeight", SetHeight);
Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition); Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition);
Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt); Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt);
Nan::SetPrototypeMethod(ctor, "nFrames", NumFrames); Nan::SetPrototypeMethod(ctor, "getFrameCount", GetFrameCount);
Nan::SetPrototypeMethod(ctor, "close", Close); Nan::SetPrototypeMethod(ctor, "close", Close);
Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync); Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync);
Nan::SetPrototypeMethod(ctor, "grab", Grab); Nan::SetPrototypeMethod(ctor, "grab", Grab);
@ -95,7 +95,7 @@ NAN_METHOD(VideoCaptureWrap::SetWidth) {
return; return;
} }
NAN_METHOD(VideoCaptureWrap::NumFrames) { NAN_METHOD(VideoCaptureWrap::GetFrameCount) {
Nan::HandleScope scope; Nan::HandleScope scope;
VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap<VideoCaptureWrap>(info.This()); VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap<VideoCaptureWrap>(info.This());

View File

@ -23,7 +23,7 @@ public:
// to set frame position // to set frame position
static NAN_METHOD(SetPosition); static NAN_METHOD(SetPosition);
static NAN_METHOD(NumFrames); static NAN_METHOD(GetFrameCount);
static NAN_METHOD(GetFrameAt); static NAN_METHOD(GetFrameAt);