mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Renamed numFrame method to correspond to OpenCV naming
This commit is contained in:
parent
cf8d9143f8
commit
a45139326d
@ -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());
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user