Skip to content

Commit a451393

Browse files
committed
Renamed numFrame method to correspond to OpenCV naming
1 parent cf8d914 commit a451393

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/VideoCaptureWrap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local<Object> target) {
3333
Nan::SetPrototypeMethod(ctor, "setHeight", SetHeight);
3434
Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition);
3535
Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt);
36-
Nan::SetPrototypeMethod(ctor, "nFrames", NumFrames);
36+
Nan::SetPrototypeMethod(ctor, "getFrameCount", GetFrameCount);
3737
Nan::SetPrototypeMethod(ctor, "close", Close);
3838
Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync);
3939
Nan::SetPrototypeMethod(ctor, "grab", Grab);
@@ -95,7 +95,7 @@ NAN_METHOD(VideoCaptureWrap::SetWidth) {
9595
return;
9696
}
9797

98-
NAN_METHOD(VideoCaptureWrap::NumFrames) {
98+
NAN_METHOD(VideoCaptureWrap::GetFrameCount) {
9999
Nan::HandleScope scope;
100100
VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap<VideoCaptureWrap>(info.This());
101101

src/VideoCaptureWrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class VideoCaptureWrap: public Nan::ObjectWrap {
2323

2424
// to set frame position
2525
static NAN_METHOD(SetPosition);
26-
static NAN_METHOD(NumFrames);
26+
static NAN_METHOD(GetFrameCount);
2727

2828
static NAN_METHOD(GetFrameAt);
2929

0 commit comments

Comments
 (0)