Skip to content

Commit 2579aba

Browse files
committed
Add getStreamFrameCount to retrieve captured frame count
1 parent 6c22e46 commit 2579aba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/main/java/io/github/doblon8/openpnp/capture/CaptureStream.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ public boolean hasNewFrame() {
6464
return result == 1;
6565
}
6666

67+
/**
68+
* Get the number of frames captured during the lifetime of the stream.
69+
*
70+
* @return the number of frames captured during the lifetime of the stream.
71+
*/
72+
public int getStreamFrameCount() {
73+
return Cap_getStreamFrameCount(context.getSegment(), id);
74+
}
75+
6776
/**
6877
* Check if a stream is open, i.e. is capturing data.
6978
*

0 commit comments

Comments
 (0)